ESP8266 GPIO inputs generally go LOW (from Vcc to 0v) for ON. If your device has a NC contact you need to connect a 4k7 resistor from Vcc to the GPIO and connect your contact from the GPIO to Vcc. Alternatively you can use a SwitchXi input but you are better to use the pullup resistor.
To get an update on restart you can use an on boot rule.
on system#boot do status 8 end
Regards
Phil K
Sent from Mail for Windows 10
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/d86ddce9-203b-42fa-b3ae-4690000ab14co%40googlegroups.com.
My mistake, forgot that there isn’t an inverted switch. You need to connect the resistor between the GPIO and 0V and the switch between Vcc and the GPIO to get the functionality correct.
From: Ale e Max Terragni - Y2K
Sent: 09 August 2020 10:41
To: Philip Knowles
Cc: TasmotaUsers
Subject: Re: Switch2 status and restart
Ok,
I have no idea what it is but I will Google it.
Thanks
Max
Il dom 9 ago 2020, 21:35 Philip Knowles <knowles...@gmail.com> ha scritto:
Can you take a screenshot of the configuration page? I suspect I know what the issue is.
From: Max
Sent: 09 August 2020 11:47
To: TasmotaUsers
Subject: Re: Switch2 status and restart
Hi Phil,
the connections are already as you describe.
Here in the picture and in attach the console logging.
As you can see the switch already works as inverted.
No problem at all, the problem is only in the status 8 that is not inverted.
Max
Il giorno domenica 9 agosto 2020 22:23:49 UTC+12, Philip Knowles ha scritto:
My mistake, forgot that there isn’t an inverted switch. You need to connect the resistor between the GPIO and 0V and the switch between Vcc and the GPIO to get the functionality correct.
Regards
Phil K
Sent from Mail for Windows 10
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/eae49f1f-65ff-4e17-b31b-c8fe1f240588o%40googlegroups.com.