AlexxIT / SonoffLAN

Control Sonoff Devices with eWeLink (original) firmware over LAN and/or Cloud from Home Assistant
https://github.com/AlexxIT/Blog
MIT License
2.75k stars 418 forks source link

Fix TX5 effect names #1303

Closed frborda closed 9 months ago

frborda commented 11 months ago

In TX5 the ambient light modes ("lightMode") are between 0 and 7. Mode 0 is one of them.

frborda commented 11 months ago

I have tested it on my TX5

AlexxIT commented 11 months ago

And why previous condition don't work?

frborda commented 11 months ago

because it had the condition of != "0" then modes 1 to 7 worked, but 0 is also a valid option. The device has 8 modes, 0 to 7. To turn off the ambient light it is not mode 0, it is "lightSwitch" to "off"

AlexxIT commented 9 months ago

Thanks!

AlexxIT commented 9 months ago

https://github.com/AlexxIT/SonoffLAN/releases/tag/v3.6.0