PIR notification
Moderator: leecollings
-
remko2000
- Posts: 182
- Joined: Thursday 28 December 2017 14:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Broek op Langedijk
- Contact:
PIR notification
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?
- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: PIR notification
You don't
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.
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.
-
remko2000
- Posts: 182
- Joined: Thursday 28 December 2017 14:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Broek op Langedijk
- Contact:
Re: PIR notification
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:
-
tozzke
- Posts: 135
- Joined: Friday 02 January 2015 9:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands
- Contact:
Re: PIR notification
perfectly doable with Blockly and a user variable
If PIR = On and var Pir_motion = 0
Do
If PIR = On and var Pir_motion = 0
Do
- Set var PIR_motion = 1
- Set var PIR_motion = 0 after 300 seconds
- Send notification...
-
remko2000
- Posts: 182
- Joined: Thursday 28 December 2017 14:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Broek op Langedijk
- Contact:
Re: PIR notification
thx, this does the trick! Works fine.
Who is online
Users browsing this forum: No registered users and 1 guest