I am getting these errors to switch on and off my sonoff powerstrips
2018-11-16 14:01:50.080 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model ‘home.rules’ has errors, therefore ignoring it: [39,2]: mismatched input ‘Item’ expecting ‘end’
[48,2]: mismatched input ‘Item’ expecting ‘end’
[57,2]: mismatched input ‘Item’ expecting ‘end’
[66,2]: mismatched input ‘Item’ expecting ‘end’
[74,2]: mismatched input ‘Item’ expecting ‘end’
[82,2]: mismatched input ‘Item’ expecting ‘end’
home.rules
rule “Frontdesk Powerstrip to OFF”
when
Time cron “0 0 19 1/1 * ? *”
then
Item sonoffps.sendCommand(“OFF”)
logInfo("info","Frontdesk Powerstrip OFF Rule fired")
end
rule “UPS1000 Powerstrip to OFF”
when
Time cron “0 0 19 1/1 * ? *”
then
Item sonoffps2.sendCommand(“OFF”)
logInfo("info","UPS1000 Powerstrip OFF Rule fired")
end
rule “Frontdesk Powerstrip to ON”
when
Time cron “0 0 7 ? * MON-SAT *”
then
Item sonoffps.sendCommand(“ON”)
logInfo(“Info”,“Frontdesk Powerstrip ON Rule fired”)
end
rule “UPS1000 Powerstrip to ON”
when
Time cron “0 0 7 ? * MON-SAT *”
then
Item sonoffps2.sendCommand(“ON”)
logInfo(“Info”,“UPS1000 Powerstrip ON Rule fired”)
end
What am I doing wrong?