This object is in archive! 
Help with a motion activated light when alarm is armed
Need Answer
I trying to make a rule work, im still fairly new on the rule creator.
My goal with this rule is to have motion activated lights turned on if its dark and the alarm is armed (outside)
Ive tried several options it seems i cant get it to work.
so if anyone can help me i wil be very happy
No connection
Real-time notifications may not work
Hi,
Try separating alarm and dusk sensor into two IF's. I had to do this to make a similar rule work.
Drop the second JOIN also. So three IF's should work.
Reidar
Hi,
Try separating alarm and dusk sensor into two IF's. I had to do this to make a similar rule work.
Drop the second JOIN also. So three IF's should work.
Reidar
I think my rule in in here, but it's not with a alarm partition but with 2 dependencies.
https://community.zipato.com/topic/rule-examples-that-work-and-ideas-how-to-further-develop-them
I think my rule in in here, but it's not with a alarm partition but with 2 dependencies.
https://community.zipato.com/topic/rule-examples-that-work-and-ideas-how-to-further-develop-them
Ok I wil try that..
Thanks.
Ok I wil try that..
Thanks.
So i think i did what you sayd,
it work ok now when the alarm is armed and the dusk/dawn sensor says dusk.
the problem with this rule is that if the dusk/dawn sensor while the light is on changes to dawn the light stays on.
This is not i big issue, if someone suddenly moves out side and triggers the rule just when its about to get light outside..
I tested with the lights are of and its light outside, then its ok.
Maybe i should have one less if and put a operator block with both sensors in and use the "and"
But i guess this wil do for now..
So i think i did what you sayd,
it work ok now when the alarm is armed and the dusk/dawn sensor says dusk.
the problem with this rule is that if the dusk/dawn sensor while the light is on changes to dawn the light stays on.
This is not i big issue, if someone suddenly moves out side and triggers the rule just when its about to get light outside..
I tested with the lights are of and its light outside, then its ok.
Maybe i should have one less if and put a operator block with both sensors in and use the "and"
But i guess this wil do for now..
Create two variables that are set with simple rules, I called them DarkTimes and AlarmArmed. These can have the values 1 or 0, they act like a flag. (My DarkTimes is set using the sunset/sunrise scheduler). Now it becomes quite easy to test with an IF statement for all kind of rules.
I guess the reason why your rule isn't working is because the IF statement with Partition 1 is only going to work at the time of arming, not when it is already armed before.
Create two variables that are set with simple rules, I called them DarkTimes and AlarmArmed. These can have the values 1 or 0, they act like a flag. (My DarkTimes is set using the sunset/sunrise scheduler). Now it becomes quite easy to test with an IF statement for all kind of rules.
I guess the reason why your rule isn't working is because the IF statement with Partition 1 is only going to work at the time of arming, not when it is already armed before.
Stian,
I think the problem is that you are trying to use and event as a meter. I see you are using IF Alarm is ARM, but that only is true when you change from disarmed to armed. You need to use a meter block with an "equal to" operator and then drag the alarm so you can choose if you want ARMED HOME or ARMED AWAY. Other than that your first rule should work I think.
Stian,
I think the problem is that you are trying to use and event as a meter. I see you are using IF Alarm is ARM, but that only is true when you change from disarmed to armed. You need to use a meter block with an "equal to" operator and then drag the alarm so you can choose if you want ARMED HOME or ARMED AWAY. Other than that your first rule should work I think.
Ok Im not sure what Block you are talking about ( pretty New to this)
Ok Im not sure what Block you are talking about ( pretty New to this)
Replies have been locked on this page!