but I have a probelm and get an error:
2018-10-25 13:33:25.610 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model ‘heizung.rules’ has errors, therefore ignoring it: [54,5]: no viable alternative at input ‘OR’
rule "Sync Thermostat wohnzimmer mode mit CCU2"
when
Item wohn_heiz_klein_mode OR Item wohn_heiz_gross_mode changed
then
logDebug("heizung", "New control mode sent by CCU2 is '{}'",
wohn_heiz_klein_mode.state.toString);
wohn_heiz_all_Control_Mode_openHAB.sendCommand(wohn_heiz_klein_mode.state.toString)
logDebug("heizung", "New control mode sent by CCU2 is '{}'",
wohn_heiz_gross_mode.state.toString);
wohn_heiz_all_Control_Mode_openHAB.sendCommand(wohn_heiz_gross_mode.state.toString)
end
Thanks for help, butmakes no difference:
2018-10-25 13:44:45.267 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model ‘heizung.rules’ has errors, therefore ignoring it: [54,5]: no viable alternative at input ‘or’
edit:
I changed it in that way, that I created a group which will be triggered:
rule "Sync Thermostat wohnzimmer mode mit CCU2"
when
Member of gHeizungWZ changed
then
logDebug("heizung", "New control mode sent by CCU2 is '{}'",
wohn_heiz_klein_mode.state.toString);
wohn_heiz_all_Control_Mode_openHAB.sendCommand(wohn_heiz_klein_mode.state.toString)
logDebug("heizung", "New control mode sent by CCU2 is '{}'",
wohn_heiz_gross_mode.state.toString);
wohn_heiz_all_Control_Mode_openHAB.sendCommand(wohn_heiz_gross_mode.state.toString)
end