mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-02-28 03:41:57 +01:00
Fix typos (#480)
This commit is contained in:
parent
065d2314a4
commit
a556699597
@ -25,7 +25,7 @@ light fitting with 5 lamps in it thats 5 expensive smart bulbs to buy just for o
|
||||
clearly have some great advantages, dimmable, colour temperature or even full colour changing. What
|
||||
if all you're after is a cost effective way to turn them on and off?
|
||||
|
||||
The ideal solution would be to reaplce the light switch with one that can be controlled by home
|
||||
The ideal solution would be to replace the light switch with one that can be controlled by home
|
||||
assistant, whilst retaining the ease of use of a standard light that would also continue to work if
|
||||
the network went down, or home assistant failed etc.
|
||||
|
||||
@ -85,13 +85,13 @@ Please make sure you have read up about :doc:`the Sonoff Basic and how to flash
|
||||
As that won't be covered here.Also make sure you know your way around a soldering iron and can find the relevant information
|
||||
about the location of the GPIO pins on the Sonoff Basic if you need to.
|
||||
|
||||
If you have a Sonoff Basic V1 devices GPOI14 is alredy presented on a pin header on the PCB next to the programing pins.
|
||||
If you have a Sonoff Basic V1 devices GPIO14 is alredy presented on a pin header on the PCB next to the programing pins.
|
||||
On the V2 and V3 PCBs, there is a solder pad underneath the PCB that will let you get at this GPIO.
|
||||
|
||||
You have 2 choices when it comes to picking which GPIO to use. GPIO0 or GPIO14. GPIO0 is used by the push button switch on the
|
||||
the PCB so you will need to locate the right pin on the switch and solder a wire onto it if you're going to use that one. Whichever
|
||||
one you pick, you will also need to use the ground or 0v pin for the other side of the switch. Once you have soldered your wires
|
||||
into palce, a handy tip is to add a drop of glue over the wire, a little way away from the solder joint, so give some strain relief
|
||||
into place, a handy tip is to add a drop of glue over the wire, a little way away from the solder joint, so give some strain relief
|
||||
to the joint.
|
||||
|
||||
Now you have a pair of wires from the GPIO and 0v to your retractive switch lets look at the code.
|
||||
@ -152,7 +152,7 @@ if the light switch disconnects for any reason.
|
||||
|
||||
.. note::
|
||||
|
||||
If you wante to use a pull cord switch (in a bathroom for instance) that works like a standard switch and
|
||||
If you wanted to use a pull cord switch (in a bathroom for instance) that works like a standard switch and
|
||||
changes state each pull (as opposed to a retractive switch that you press and let go) then you can change
|
||||
a single line *on_press:* to *on_state:* which will trigger the light toggle everytime the state of the
|
||||
switch changes.
|
||||
|
Loading…
Reference in New Issue
Block a user