I upgraded my HA system (fresh SD card) to OH2. I can control my lights through paper UI just fine.
However, I copied my rules file from OH1 and none of my rules trigger. I removed every rule with the exception of below and it still won’t turn on the light. Any suggestions on what might be missing?
I am using Eclipse SmartHome designer to make sure my syntax is correct.
rule "Lights on"
when
Time cron "0 41 10 ? * SUN-THU *"
then
sendCommand(Desk, ON)
end
I wasn’t sure where the log file moved, so I don’t know the tail command to view it anymore.
I added a pushover command and can now get an alert, but I still can’t get the switch to turn on. Do I need to change how items are defined in my items file? Do I need to remove them from the items file since they are defined in Paper UI?
rule "Lights on"
when
Time cron "0 11 15 * * ?"
then
pushover("Time test")
sendCommand(Karen_Office, ON)
sendCommand(Desk, ON)
end
2017-03-19 15:28:00.588 [INFO ] [smarthome.model.script.Light tripped] - Karen's office Tripped
2017-03-19 15:28:00.591 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule Lights on: An error occured during the script execution: The name 'Desk' cannot be resolved to an item or type.
I checked Paper UI and the Hue light is named “Desk”. I removed it from the items file, so it is only defined in Paper UI.