ioBroker / ioBroker.type-detector

Helper module (not adapter) to detect types of devices
MIT License
8 stars 9 forks source link

sonoff Light has 3 power switch #5

Closed TA2k closed 3 years ago

TA2k commented 5 years ago

sonoff lights has 3 states with type power switch. type detector recognize the wrong one https://forum.iobroker.net/assets/uploads/files/1565189289324-sonoff.0.wohnzimmergluehbirne.json

Garfonso commented 4 years ago

I saw this in a different situation, too (I think it was effect or something). Not really sure which way to go here... Maybe best would be to try to change adapters to use "switch.light" or "switch.power" for on/off in the long run. So maybe add an issue in sonoff?

You can try to change the role of "POWER" to "switch.light" which should then be detected as "ON_LIGHT" and used as preferred state (at least in lovelace for example). Maybe that solves the issue already?

GermanBluefox commented 3 years ago

Just remove the role from the wrong one and that is all