Hi there,
this is my first post in this forum and normally I try to resolve such problems by myself but this time I would like to ask you guys…
I have Setup openHABian on an RPI 3+ and its running fine, but I dont get why my rule is not working as expected.
I have several Hue Color Lights and this Rule:
rule "Color Sync an"
when
Item Home_Color_Sync changed to ON
then
AT_Studio_Play_R.sendCommand(AT_Studio_Play_L.state as HSBType)
OU_Balcony_LED_L.sendCommand(AT_Studio_Play_L.state as HSBType)
OU_Balcony_LED_M.sendCommand(AT_Studio_Play_L.state as HSBType)
OU_Balcony_LED_R.sendCommand(AT_Studio_Play_L.state as HSBType)
AT_Studio_Stand.sendCommand(AT_Studio_Play_L.state as HSBType)
GF_Bedroom_Stand.sendCommand(AT_Studio_Play_L.state as HSBType)
GF_LivingRoom_Stand.sendCommand(AT_Studio_Play_L.state as HSBType)
end
rule "Color Sync Play L"
when
Item AT_Studio_Play_L received update
then
if (Home_Color_Sync.state==ON) {
AT_Studio_Play_R.sendCommand(AT_Studio_Play_L.state as HSBType)
OU_Balcony_LED_L.sendCommand(AT_Studio_Play_L.state as HSBType)
OU_Balcony_LED_M.sendCommand(AT_Studio_Play_L.state as HSBType)
OU_Balcony_LED_R.sendCommand(AT_Studio_Play_L.state as HSBType)
AT_Studio_Stand.sendCommand(AT_Studio_Play_L.state as HSBType)
GF_Bedroom_Stand.sendCommand(AT_Studio_Play_L.state as HSBType)
GF_LivingRoom_Stand.sendCommand(AT_Studio_Play_L.state as HSBType)
}
end
rule "Color Sync Play R"
when
Item AT_Studio_Play_R received update
then
if (Home_Color_Sync.state==ON) {
AT_Studio_Play_L.sendCommand(AT_Studio_Play_R.state as HSBType)
OU_Balcony_LED_L.sendCommand(AT_Studio_Play_R.state as HSBType)
OU_Balcony_LED_M.sendCommand(AT_Studio_Play_R.state as HSBType)
OU_Balcony_LED_R.sendCommand(AT_Studio_Play_R.state as HSBType)
AT_Studio_Stand.sendCommand(AT_Studio_Play_R.state as HSBType)
GF_Bedroom_Stand.sendCommand(AT_Studio_Play_R.state as HSBType)
GF_LivingRoom_Stand.sendCommand(AT_Studio_Play_R.state as HSBType)
}
end
When it was only one rule it worked, but now the color is not changing at all.
In the documentation it says when I “sendCommand” it does not trigger “received update” … But I think this triggers for every rule on every change now…
What can I do? I want to have the ability to chose the color from any “Sitemap ColorLight” and send this to the others.