For each of the items I can activate the Komfort Mode or the Auto Mode. If I do that, the switch work as a button. Short activaten and the auto deactivation of the button.
Now I want do create a button to activate all heating thermostat with one button. But when I add a button to the items the switches of all heating thermostat hold the state active. I have current no idea to solve this. Have anyone current implement this usecase?
I think I would make a “master” switch Item, and put it on the sitemap. Put all the individual controls in a Group. Add a rule that triggers from the master command, and passes the command to the group.
When I trigger the mode on one single heating thermostat, I press the button an the active state goes fast to deactivate. If I trigger this with an separate switch, the state will stays in active.
rule "Test1"
when
Item Heizung_Konfort_Modus changed from OFF to ON
then
hmHeizung_EG_WOHNZIMMER_TISCH_COMFORT_MODUS .sendCommand(ON)
hmHeizung_EG_WOHNZIMMER_TUER_COMFORT_MODUS.sendCommand(ON)
hmHeizung_EG_WOHNZIMMER_TISCH_COMFORT_MODUS.sendCommand(OFF)
hmHeizung_EG_WOHNZIMMER_TUER_COMFORT_MODUS.sendCommand(OFF)
Heizung_Konfort_Modus.postUpdate(OFF)
end
rule "Test2"
when
Item Heizung_Auto_Modus changed from OFF to ON
then
hmHeizung_EG_WOHNZIMMER_TUER_AUTO_MODE.sendCommand(ON)
hmHeizung_EG_WOHNZIMMER_TISCH_AUTO_MODE.sendCommand(ON)
hmHeizung_EG_WOHNZIMMER_TUER_AUTO_MODE.sendCommand(OFF)
hmHeizung_EG_WOHNZIMMER_TISCH_AUTO_MODE.sendCommand(OFF)
Heizung_Auto_Modus.postUpdate(OFF)
end
Okay, with autoupdate="false" and no other binding on Item Heizung_Konfort_Modus , sending it a command will never change its state. Your rule will not trigger. Your UI display will quickly revert to whatever it was before the switch action.
That’s all working as designed.
You could trigger the rule by using Item Heizung_Konfort_Modus received command ON
It’s not really clear what you want the UI to do though. Would you like the UI to show ON until something else happens, or to show ON for some short time only, or?