HOW TO send an email after, for example, 3min.
Moderator: leecollings
-
- Posts: 7
- Joined: Wednesday 11 October 2017 23:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
HOW TO send an email after, for example, 3min.
IS there a way to send a email after, for example, 3 minutes when a switch is triggerd.
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: HOW TO send an email after, for example, 3min.
There are probably more ways to accomplish this. My solution that works with dzVents >= 2.4.0 :
Code: Select all
--[[
Delayed Email test ( dzVents >= 2.4.0 )
]]--
return {
on = {
devices = { 'emailTestSwitch'} ,
variables = { 'emailTrigger'}
},
execute = function(domoticz, trigger)
if trigger.isVariable then
domoticz.email('Hey', 'The Switch state was updated', 'your Email adress')
domoticz.variables('emailTrigger').set(0).silent()
else
domoticz.variables('emailTrigger').set(1).afterSec(5)
end
end
}
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 1601
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: HOW TO send an email after, for example, 3min.
mmm is there a option to use this script for sending 1 mail instead of multiple.
I mean now i set my X sensor to send a mail when setpoint y is reached...
Only Domoticz kept sending mails.
I like to use a option to send a mail when setpoint x is reached.
And then perhaps after 10 minutes again when the setpoint is still reached.
Or net when the setpoint is lower then i want..
Hope
Thanks !!
I mean now i set my X sensor to send a mail when setpoint y is reached...
Only Domoticz kept sending mails.
I like to use a option to send a mail when setpoint x is reached.
And then perhaps after 10 minutes again when the setpoint is still reached.
Or net when the setpoint is lower then i want..
Hope
Thanks !!
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: HOW TO send an email after, for example, 3min.
I am not quite sure that I understand what you want but from the sound of it, I guess it should be doable.
If settings -> notifications -> notification intervals does not serve your needs then please elaborate a bit more what you try to achieve
If settings -> notifications -> notification intervals does not serve your needs then please elaborate a bit more what you try to achieve
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki