I’m having an issue with the rule below, I get the below error in the openhab.org logfile. Have I done something stupid or am I just missing something.
[ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule ‘Arriving Home From Work’: An error occurred during the script execution: Couldn’t invoke ‘assignValueTo’ for feature JvmVoid: (eProxyURI: Kitchen.rules#|::0.2.5.2.0.3.2.0.0::0::/1)
rule "Arriving Home From Work"
when
Item Kitchen_ZD2102_Sensor changed or
Item Kitchen_SP3102_Motion changed
then
if(now.getHourOfDay < 15) return;
if(Kitchen_ZD2102_Sensor.state != OPEN || Kitchen_SP3102_Motion.state != ON) return;
logInfo("org.openhab","Kitchen: The Back Door is {} and the Motion Sensor is {}", Kitchen_ZD2102_Sensor.state, Kitchen_SP3102_Motion.state)
if(now.getHourOfDay < 18) {
announcement = "Good Afternoon, Welcome back home. It looks like " + Sonarr.state + " recently."
} else {
announcement = "Good Evening, Welcome home. I thought you might like to know that " + Sonarr.state + " recently."
}
say(announcement)
end
Thanks for advice.
Regards,
Garry