arendst/Sonoff-MQTT-OTA-Arduino

New Feature - Sonoff Dual in Toggle mode

Open

#296 geöffnet am 31. Jan. 2017

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Arduino (195 Forks)github user discovery
help wantedwontfix

Repository-Metriken

Stars
 (617 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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.

Contributor Guide