If the switch is on for more than two minutes --> Send message

Moderator: leecollings

Post Reply
foscolino
Posts: 20
Joined: Monday 02 November 2020 18:38
Target OS: Windows
Domoticz version: 2.20
Location: Italy
Contact:

If the switch is on for more than two minutes --> Send message

Post by foscolino »

Hello, I have created this blockly structure, but mail was sent immediatly, not after 120 seconds :?
Cattura.JPG
Cattura.JPG (65.35 KiB) Viewed 488 times
Is there a change to be made to apply this time trigger?
Can you help me, please?
thanks in advance!!
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: If the switch is on for more than two minutes --> Send message

Post by waaren »

foscolino wrote: Monday 02 November 2020 18:45 Hello, I have created this blockly structure, but mail was sent immediatly, not after 120 seconds :?

Cattura.JPG

Is there a change to be made to apply this time trigger?
Can you help me, please?
thanks in advance!!
If you want to this in Blockly you probably need an extra variable and two Blockly's
One triggered by the device and another one triggered on time.

device triggered Blockly
Antibagno 1.png
Antibagno 1.png (102.95 KiB) Viewed 481 times
Time triggered Blockly
Antibagno 2.png
Antibagno 2.png (60.34 KiB) Viewed 481 times
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
foscolino
Posts: 20
Joined: Monday 02 November 2020 18:38
Target OS: Windows
Domoticz version: 2.20
Location: Italy
Contact:

Re: If the switch is on for more than two minutes --> Send message

Post by foscolino »

Hi waaren, thank you very much for your support, but i have another question ;)

how should i define the two variables?

Variabile Name= S1 - Antibagno Stato delayed
Variabile Type= ??
Variable Value=??
variable.JPG
variable.JPG (19.14 KiB) Viewed 459 times
variable2.JPG
variable2.JPG (25.77 KiB) Viewed 459 times
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: If the switch is on for more than two minutes --> Send message

Post by waaren »

foscolino wrote: Tuesday 03 November 2020 14:07 how should i define the two variables?
Type: string
value: Off
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest