arendst/Sonoff-MQTT-OTA-Arduino

New Feature - Sonoff Dual in Toggle mode

Open

#296 ouverte le 31 janv. 2017

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)Arduino (195 forks)github user discovery
help wantedwontfix

Métriques du dépôt

Stars
 (617 stars)
Métriques de merge PR
 (Métriques PR en attente)

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.

Guide contributeur