arendst/Sonoff-MQTT-OTA-Arduino

New Feature - Sonoff Dual in Toggle mode

Open

#296 opened on Jan 31, 2017

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Arduino (195 forks)github user discovery
help wantedwontfix

Repository metrics

Stars
 (617 stars)
PR merge metrics
 (PR metrics pending)

Description

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