danimtb / sonoff-danimtb

Alternative firmware for Itead Sonoff (ESP8266/ESP8285 based) devices to use them in Home Assistant
12 stars 3 forks source link

Long Press works for turn-on but not turn-off #29

Closed lasote closed 6 years ago

lasote commented 6 years ago

If I configure the switch channel of a different light as a secondary mqtt action, it works to turn-on the light, but it is not working to turn-off. Tried with classic sonoff and with ewelink touch wall. Any idea?

danimtb commented 6 years ago

My sonoff are working dine with that. That's the purpose of the long press secondary mqtt topic. However I have not tested it with the latest changes.

Will try to make some tests and let you know

danimtb commented 6 years ago

Turned out copy of relay object was not done completely. I switched it to use a pointer, which will be better for memory efficiency too.

danimtb commented 6 years ago

Released in 1.3.0