I use some MQTT Ligths (Dimmers) with no state topic but only a brigthness topic. What is the best way to configure these lights to show only a slider or to automatically show the state ON if the brigthness is greater than 0 %?
I was looking for a similar answer while I came across your (unanswered) post. Meanwhile I figured it out:
This works for me, the light only gives brightness states (0-100), no on/off. I use the same topic for brightness and on/off state just as you. What you’re missing is a state_value_template, returning just 2 outcomes from the brightness value. 0 representing OFF, and any other numeric value representing ON.