Page 1 of 1

PIR notification

Posted: Sunday 04 March 2018 13:00
by remko2000
I get a (prowl)message when there is movement in my garage (pir). However, I get several at a time. I would like to receive 1 message and that, for example, there is a pause of 5 minutes before another message is sent with motion. How do I set this up in Blocky?

Re: PIR notification

Posted: Sunday 04 March 2018 17:21
by Egregius
You don't :lol:
Start using scripts and you can do anything you like.
I can imagine you don't want notifications for that when you're at home, or when you don't wanne be disturbed, or ...
For instance: I only get notifications from pirs when I'm away or a sleep, and that only when a summy switch 'notifications' is on. When that switch is off I don't get any messages.

Re: PIR notification

Posted: Friday 09 March 2018 17:11
by remko2000
Ok that's a good suggestion. II now use a blocky to switch my light via the PIR. Would be nice if I can integrate this in a luascript that also sent a message with movement (and when the sun is down). And that no messages will be sent for a few minutes after that message. I am not a boulder in lua. Is there anyone with such a script or can help me on my way? This is the exciting script:

Re: PIR notification

Posted: Friday 09 March 2018 17:35
by tozzke
perfectly doable with Blockly and a user variable

If PIR = On and var Pir_motion = 0
Do
  • Set var PIR_motion = 1
  • Set var PIR_motion = 0 after 300 seconds
  • Send notification...

Re: PIR notification

Posted: Monday 12 March 2018 16:04
by remko2000
thx, this does the trick! Works fine.