Hi
I need help you!
Can I ask for example events in wicht I send notification in few minutes after events?
THX
How send notification few minutes after events_
Moderator: leecollings
-
- Posts: 673
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.2
- Location: Geleen
- Contact:
Re: How send notification few minutes after events_
Easiest way (I think) would be start a bash script, wait the desired time and sens the notification via json.
- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: How send notification few minutes after events_
To be clear: if an event (motion, contact whatever) occurs, you want to wait several minutes before sending the notification? Does the event still need to be 'actual' at that point?
I think you need to explain a bit more the situation. I want notification to be sent asap, before burglars might cut the power.
I think you need to explain a bit more the situation. I want notification to be sent asap, before burglars might cut the power.
-
- Posts: 17
- Joined: Wednesday 26 August 2015 23:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2.2563
- Location: Poland
- Contact:
Re: How send notification few minutes after events_
Yes, if an event (motion, contact whatever) occurs, I want to wait several minutes before sending the notification! For example when my door garage stay open for 5 minutes I want get notification of them.Egregius wrote:To be clear: if an event (motion, contact whatever) occurs, you want to wait several minutes before sending the notification? Does the event still need to be 'actual' at that point?
I think you need to explain a bit more the situation. I want notification to be sent asap, before burglars might cut the power.
-
- Posts: 17
- Joined: Wednesday 26 August 2015 23:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2.2563
- Location: Poland
- Contact:
Re: How send notification few minutes after events_
Maybe but I don't know how I can dojannl wrote:Easiest way (I think) would be start a bash script, wait the desired time and sens the notification via json.

-
- Posts: 673
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.2
- Location: Geleen
- Contact:
Re: How send notification few minutes after events_
I would have to google a lot as well, nothing I did yet.
But I think there example scripts for what you want in wiki
But I think there example scripts for what you want in wiki
-
- Posts: 229
- Joined: Wednesday 30 April 2014 20:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: The Netherlands
- Contact:
Re: How send notification few minutes after events_
You can create an virtual switch (for example named notification). Set on delay of this switch as you wish and off delay at for example 5 sec.
Blockly
if ... (trigger device) is on
do set notification on
if notification is on
do sent notification
Blockly
if ... (trigger device) is on
do set notification on
if notification is on
do sent notification
- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: How send notification few minutes after events_
Oh, that way. I have that in my PHP scriptscatman wrote:Egregius wrote:For example when my door garage stay open for 5 minutes I want get notification of them.

Code: Select all
if($Spoort!='Closed') {if(xcache_get('alertpoort')<$time-900&&$STpoort<$time-900) {$msg='Poort Open sinds '.strftime("%H:%M:%S", $STpoort);xcache_set('alertpoort',$time);telegram($msg);}}
-
- Posts: 17
- Joined: Wednesday 26 August 2015 23:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2.2563
- Location: Poland
- Contact:
Re: How send notification few minutes after events_
Jan Jansen wrote:You can create an virtual switch (for example named notification). Set on delay of this switch as you wish and off delay at for example 5 sec.
Blockly
if ... (trigger device) is on
do set notification on
if notification is on
do sent notification
THX I used this advice.
Who is online
Users browsing this forum: No registered users and 1 guest