I would like to have it as a switch, would anyone have a code they could share so I can test it further. I have other Sonoff Basics but I am unsure of GPIO pins etc.
The sonoff mini works as a switch, I just need to work out the code to have it toggle rather than switch on/off
[18:28:28][C][api:104]: Address: sonoff_mini.local:6053
[18:28:34][D][binary_sensor:033]: 'Sonoff Mini Switch': Sending state ON
[18:28:34][D][switch:029]: 'Sonoff Mini relay' Toggling OFF.
[18:28:34][D][switch:045]: 'Sonoff Mini relay': Sending state OFF
[18:28:42][D][binary_sensor:033]: 'Sonoff Mini Switch': Sending state OFF
[18:28:44][D][binary_sensor:033]: 'Sonoff Mini Switch': Sending state ON
[18:28:44][D][switch:029]: 'Sonoff Mini relay' Toggling ON.
[18:28:44][D][switch:045]: 'Sonoff Mini relay': Sending state ON
[18:28:49][D][binary_sensor:033]: 'Sonoff Mini Switch': Sending state OFF
Hi,
Very informative thank you. Can anyone advise what GPIO connections are tied to the S1 and S2 connecting points on the Sonoff Mini. I’m writing my own firmware and want to encompass the external switch option. TIA Paul
Apologies to ask a potentially stupid question, but perhaps someone in this thread can help me - is it possible to use the sonoff mini S1/S2 input to read the state of an up / down switch for my roller shutters? I kind of understand that it’s only one GPIO so probably not possible, just wanted to check