Page 1 of 1

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

Posted: Monday 02 November 2020 18:45
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 493 times
Is there a change to be made to apply this time trigger?
Can you help me, please?
thanks in advance!!

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

Posted: Monday 02 November 2020 21:52
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 486 times
Time triggered Blockly
Antibagno 2.png
Antibagno 2.png (60.34 KiB) Viewed 486 times

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

Posted: Tuesday 03 November 2020 14:07
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 464 times
variable2.JPG
variable2.JPG (25.77 KiB) Viewed 464 times

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

Posted: Tuesday 03 November 2020 14:35
by waaren
foscolino wrote: Tuesday 03 November 2020 14:07 how should i define the two variables?
Type: string
value: Off