From e7c5d7a6d8ccbee722d8da1f845c918a358389e1 Mon Sep 17 00:00:00 2001 From: arendst Date: Thu, 9 Mar 2017 18:21:36 +0100 Subject: [PATCH] updates --- Expanding-Sonoffs.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Expanding-Sonoffs.md b/Expanding-Sonoffs.md index cf87e4d2..6ff9fc22 100644 --- a/Expanding-Sonoffs.md +++ b/Expanding-Sonoffs.md @@ -39,10 +39,9 @@ If a pin is defined as GPIO_USER in the module template, you can assign it one o # Examples -1. If you take a Sonoff Basic and connect a switch between pin4 (ground) and pin5 (GPIO4) of the 5 pin programming header you now have a second switch connected to the device. You can set this through the module config page or from the command line with - `gpio 4 switch1` +1. If you take a Sonoff Basic and connect a switch between pin4 (ground) and pin5 (GPIO4) of the 5 pin programming header you now have a second switch connected to the device. You can set this through the module config page as option `09 Switch1` or from the command line with `gpio4 9` - If you have fewer than two relays on the module, the additional switch(es) will not show up any different than the built-in switch and will control the single relay unless you set switchtopic to something other than 0 (either 1 or a custom topic). Once this is done the built-in switch will produce POWER1 while the new switch will produce POWER2 + If you have fewer than two relays on the module, the additional switch(es) will not show up any different than the built-in switch and will control the single relay unless you set switchtopic to something other than 0 (either 1 or a custom topic). Once this is done the built-in switch will produce `stat/\/POWER1` while the new switch will produce `cmnd/\/POWER1` With more relays on the modules, the additional switch will create additional POWER\ events without the need to set switchtopic.