I can’t get HASS to properly detect if my dimmer lights are ON or OFF via MQTT.
I am pretty sure i am overlooking something really simple. I am new to MQTT, so excuse me for asking stupid questions
I have just two MQTT topics:
/service/fhem/gw_keukenkoof/dim
/service/fhem/gw_keukenkoof/cmnd
Publishing any number between 1 and 100 to the /cmnd topic will switch ON my lights (value 1 being the darkest and 100 being the brightest). Publishing a 0 will switch OFF my lights.
The /dim topic just represents the actual status
I am able to set the right dim value via HASS, however I am not able to read it. Even detecting if the lights are ON or OFF is not working for me. So controlling the brightness outside (or on/off state) outside of HASS is not reflected in HASS.
Hi Taras.
Thanks for your reply.
That did a part of the trick!! Thanks. Almost there
The only problem left now, is that when i turn the dimmer into its lowest position, HASS still publishes a “1”, which causes my dimmers not to go off entirely. The goal is to be able to publish a “0”.
Any idea how i can accomplish that?
With all due respect, you have marked your post as the Solution but it reveals no details. That doesn’t help anyone else who may have a similar problem.
The community would appreciate it if you took a moment to show examples of what must be done to correct the problem.
As you can see I have 4 different topics.
One for the state_topic that takes care of on and off. The other takes care of the dimming value.
Originally, there were just two topics, taking care of both on/off and dimming value, which was causing issues in my config.