Some of my MQTT lights are dimmable and have a “switch” and “level” MQTT topic.
However, the “on” and “off” switch set the brightness to 100% and 0% respectively. The “level” topic will accept numbers from 0-100.
If I try to set a brightness level within HA, it sends the “on” switch and the brightness level, but the switch command of “on” overrides the brightness every time, setting it to max.
Is there a way to add conditional programming so that if I set a brightness, it won’t send a switch command?
If you’re comfortable doing it, feel free to grab that update and test it out. I’d also recommend reading the issues referenced in that request - you can see the discussions that led up to the fix.