I have 7 items(blinds) I want to time in rules. For some reason, only the first item works. I’m stumped.
//Set Blinds to half At 7 am
rule “Blinds half”
when
Time cron “0 0 7 1/1 * ? *”
then
sendCommand(MKBlindsControl1, 40)
end
//Set Blinds to close At 6 pm
rule “Blinds close”
when
Time cron “0 0 18 1/1 * ? *”
then
sendCommand(MKBlindsControl1, 100)
end
//Set Blinds to half At 7 am
rule “Blinds half”
when
Time cron “0 0 7 1/1 * ? *”
then
sendCommand(MKBlindsControl2, 40)
end
//Set Blinds to close At 6 pm
rule “Blinds close”
when
Time cron “0 0 18 1/1 * ? *”
then
sendCommand(MKBlindsControl2, 100)
end
//Set Blinds to half At 7 am
rule “Blinds half”
when
Time cron “0 0 7 1/1 * ? *”
then
sendCommand(MKBlindsControl3, 40)
end
//Set Blinds to close At 6 pm
rule “Blinds close”
when
Time cron “0 0 18 1/1 * ? *”
then
sendCommand(MKBlindsControl3, 100)
end
//Set Blinds to half At 7 am
rule “Blinds half”
when
Time cron “0 0 7 1/1 * ? *”
then
sendCommand(MKBlindsControl4, 40)
end
//Set Blinds to close At 6 pm
rule “Blinds close”
when
Time cron “0 0 18 1/1 * ? *”
then
sendCommand(MKBlindsControl4, 100)
end
//Set Blinds to half At 7 am
rule “Blinds half”
when
Time cron “0 0 7 1/1 * ? *”
then
sendCommand(MKBlindsControl5, 40)
end
//Set Blinds to close At 6 pm
rule “Blinds close”
when
Time cron “0 0 18 1/1 * ? *”
then
sendCommand(MKBlindsControl5, 100)
end
//Set Blinds to half At 7 am
rule “Blinds half”
when
Time cron “0 0 7 1/1 * ? *”
then
sendCommand(MKBlindsControl6, 40)
end
//Set Blinds to close At 6 pm
rule “Blinds close”
when
Time cron “0 0 18 1/1 * ? *”
then
sendCommand(MKBlindsControl6, 100)
end
//Set Blinds to half At 7 am
rule “Blinds half”
when
Time cron “0 0 7 1/1 * ? *”
then
sendCommand(MKBlindsControl7, 40)
end
//Set Blinds to close At 6 pm
rule “Blinds close”
when
Time cron “0 0 18 1/1 * ? *”
then
sendCommand(MKBlindsControl7, 100)
end
or…
//Set Blinds to half At 7 am
rule “Blinds half”
when
Time cron “0 0 7 1/1 * ? *”
then
sendCommand(MKBlindsControl1, 40)
sendCommand(MKBlindsControl2, 40)
sendCommand(MKBlindsControl3, 40)
sendCommand(MKBlindsControl4, 40)
sendCommand(MKBlindsControl5, 40)
sendCommand(MKBlindsControl6, 40)
sendCommand(MKBlindsControl7, 40)
end
//Set Blinds to close At 6 pm
rule “Blinds close”
when
Time cron “0 0 18 1/1 * ? *”
then
sendCommand(MKBlindsControl1, 100)
sendCommand(MKBlindsControl2, 100)
sendCommand(MKBlindsControl3, 100)
sendCommand(MKBlindsControl4, 100)
sendCommand(MKBlindsControl5, 100)
sendCommand(MKBlindsControl6, 100)
sendCommand(MKBlindsControl7, 100)
end