From a556699597a1b43a06edfce20a8064dafa870b89 Mon Sep 17 00:00:00 2001 From: Krasimir Nedelchev Date: Thu, 12 Mar 2020 22:42:13 +0200 Subject: [PATCH] Fix typos (#480) --- cookbook/sonoff-basic-light-switch.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cookbook/sonoff-basic-light-switch.rst b/cookbook/sonoff-basic-light-switch.rst index b9b0bdb19..ca9eca632 100644 --- a/cookbook/sonoff-basic-light-switch.rst +++ b/cookbook/sonoff-basic-light-switch.rst @@ -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.