Hi All,
Trying to line my AC zone and Power, but it keeps throwing an error despite the items having a valid state. I’m not sure what I’m doing wrong here, any tips? Thanks!
rule "Turn on Daikin Power when Zone Changes to ON"
when
Member of gDaikinZones changed
then
val zone = triggeringItem.name
if(HouseAir_MasterSwitch.state == OFF && triggeringItem.state == ON){
zone.sendCommand(ON)
HouseAir_MasterSwitch.SendCommand(ON)
} else if (HouseAir_MasterSwitch.state == ON && triggeringItem.state == ON){
HouseAir_MasterSwitch.sendCommand(OFF)
zone.sendCommand(OFF)
}
end
Console shows:
Script execution of rule with UID 'climate-3' failed: An error occurred during the script execution: Could not invoke method: org.openhab.core.model.script.actions.BusEvent.sendCommand(java.lang.String,java.lang.String) on instance: null in climate