Having an issue with dimmer.
It sends this via MQT as you control it. When you more the dimmer it send power and dimmer value. When you just press power it send ON/OFF (not dimmer).
15:16:37.107 MQT: stat/cabin-lights/RESULT = {"POWER":"ON","Dimmer":47}
15:16:37.587 MQT: stat/cabin-lights/RESULT = {"POWER":"ON","Dimmer":34}
15:16:38.038 MQT: stat/cabin-lights/RESULT = {"POWER":"ON","Dimmer":57}
15:16:38.567 MQT: stat/cabin-lights/RESULT = {"POWER":"ON","Dimmer":72}
15:16:39.169 MQT: stat/cabin-lights/RESULT = {"POWER":"ON","Dimmer":47}
15:16:39.918 MQT: stat/cabin-lights/RESULT = {"POWER":"OFF"}
15:16:39.923 MQT: stat/cabin-lights/POWER = OFF
15:16:40.929 MQT: stat/cabin-lights/RESULT = {"POWER":"ON","Dimmer":38}
15:16:41.005 MQT: stat/cabin-lights/RESULT = {"POWER":"OFF"}
15:16:41.009 MQT: stat/cabin-lights/POWER = OFF
15:16:41.021 MQT: stat/cabin-lights/RESULT = {"POWER":"ON"}
15:16:41.026 MQT: stat/cabin-lights/POWER = ON
15:16:41.245 MQT: stat/cabin-lights/RESULT = {"POWER":"ON","Dimmer":56}
I’ve added the channel as;
- id: cabin_lights
channelTypeUID: mqtt:dimmer
label: Cabin Lights
description: ""
configuration:
commandTopic: cmnd/cabin-lights/Dimmer
stateTopic: stat/cabin-lights/RESULT
transformationPattern: REGEX:(.*Dimmer.*)∩JSONPATH:$.Dimmer
off: OFF
on: ON
The item in OH works fine when then slider is moved and % bar moves correcltly. However, when the OFF buttom on the switch, this does not reflect in the OH item, it just stays at the last % value, as below;
How can I get this to show the light it OFF in OH?