I have a strange situation.
I have a fan switch with dimmer where the fan can be turned on/ off using switch and dimmer.
The dimmer gives like below mqtt state when the fan is ON using dimmer
DIMMER= {“POWER2”:“ON”,“Dimmer”:100}
And similarly the switch gives below mqtt state when the fan is ON using switch
POWER2= ON
But the problem is, if I turn on using the dimmer, the switch state still remains OFF, i.e.
POWER2= OFF.
Similarly, if I turn on fan using switch, the dimmer state still remains OFF, i.e.
DIMMER= {“POWER2”:“OFF”,“Dimmer”:0}
So, this two kind of events are not synchronizing. Also, the mqtt state output from the dimmer is multiple output (one is POWER2 and one is Dimmer). That’s why I cannot simply create a rule and say DIMMER state= POWER2 state or vice versa.
I would be grateful if anyone can help me. I am very new in openhab3 and only have primary knowledge.
Thanks. I can now put two items under one channel.
But in my case the MQTT topic for the dimmer and the switch are different.
For Dimmer the state and command are stat/FANCONTROL/DIMMER and cmnd/FANCONTROL/DIMMER
and for Switch the state and command are stat/FANCONTROL/POWER2 and cmnd/FANCONTROL/POWER2
So is it possible to control two different items of MQTT command under one channel? Or can I send multiple MQTT from one channel?
Forget the power topic and only work with the dimmer topic.
If a switch item in oh is linked to a dimmer channel (representing the dimmer mqtt topic), than oh should automatically convert the on/off commands of the switch to 0/100% dimming
Hi There, strugling with this too. If I add a switch to a dimmer channel, the switch is not following the dimmer, in other words if I use the dimmer slider to go to a certain value, the switch does not go to “ON” . If I switch ON with the switch, dimmer goes to 100, can be changes with the dimmer slider and switched off again with the switch. What is going wrong or do I misunderstand?