arendst/Sonoff-MQTT-OTA-Arduino

New Feature - Sonoff Dual in Toggle mode

Open

#296 创建于 2017年1月31日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)Arduino (195 fork)github user discovery
help wantedwontfix

仓库指标

Star
 (617 star)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南