arendst/Sonoff-MQTT-OTA-Arduino

New Feature - Sonoff Dual in Toggle mode

Open

#296 aperta il 31 gen 2017

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)Arduino (195 fork)github user discovery
help wantedwontfix

Metriche repository

Star
 (617 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Hi ,

I need to configure the Sonoff Dual in Toggle mode as per drive (for example) a rotation of a motor or a blind window.

all the possible state I want to have are :

Power 1 On ---> will result Power 2 = OFF and then Power 1 = ON Power 2 On ---> will result Power 1 = OFF and then Power 2= ON Power 1 = Power 2 = OFF

Two questions @ Theo Arends (great work done !!)

  1. is there any directive to address this Toggle mode I haven't found ?
  2. in case I would touch the code which module do suggest to modify ? where is located the business logic state of the two relay?

Of course I know I can implement an outside logic (eg. MQTT based) and I know that it exists a specific Sonoff device https://www.itead.cc/motor-reversing-wifi-wireless-switch.html. But my idea it have a simple way of doing the Toggle mode with the Dual.

Thanks a lot to all who can help/suggest any solution

Ale.

Guida contributor