Hello, i am using OH2 with a Raspberry pi and the MAX cube binding. I am trying to set the temperature of one room at 8:30 in the morning using the folowing rule. This is not working, could someone help me out what is wrong with this rule or point me in the right direction?
Thanks
when
Time cron "0 30 8 * * ?"
then
WallmountedThermostatWoonkamerThermostaat_SetpointTemperature.sendCommand(20)
end
There was indeed an error, thanks for pointing this out. The error was:
2019-10-05 08:27:24.132 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model âhome.rulesâ has errors, therefore ignoring it: [134,1]: missing EOF at âwhenâ
Your remark about the rule name made me wonder if it would work if i would make a separate rule file for it. I had added it to an existing rule file now. The code works in the separate rule file, so i had made a mistake when i added this code to an existing rule file. Still donât know what the error was i had made but the rule is working at the moment.