My goal is to have a switch turn off 30 minutes after I turn it on. The Blockly automation I show here works up to 60 seconds (and perhaps slightly more), but doesn't work when set for 120 seconds or higher.
What's going on...is a max number of seconds a known limitation of this command?
'Turn off' after >60 seconds fails to work, but works <= 60 secs
Moderator: leecollings
-
- Posts: 6
- Joined: Monday 27 February 2017 21:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.5837
- Contact:
Re: 'Turn off' after >60 seconds fails to work, but works <= 60 secs
I guess since this script runs every 2 minutes it validates the bathroom fan = on statement as true again so it startes from scratch with counting?
-
- Posts: 3
- Joined: Monday 27 February 2017 21:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: 'Turn off' after >60 seconds fails to work, but works <= 60 secs
Hmm. I don't know enough to say that's not the case. But it doesn't seem the script runs every two minutes...only that it waits two minutes to complete the "set" command. Right?
Also, that doesn't explain why it works when the timer is set to less than 60 seconds.
Also, that doesn't explain why it works when the timer is set to less than 60 seconds.
-
- Posts: 135
- Joined: Friday 02 January 2015 9:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands
- Contact:
Re: 'Turn off' after >60 seconds fails to work, but works <= 60 secs
setting the off delay @ 'Bathroom Fan' @ switches to 2700 seconds should do the trick
-
- Posts: 3
- Joined: Monday 27 February 2017 21:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: 'Turn off' after >60 seconds fails to work, but works <= 60 secs
I'll try that. I considered doing it previously, but I was concerned it wouldn't allow me to manually turn the fan off when I wanted, preempting the "off delay" if you will.tozzke wrote:setting the off delay @ 'Bathroom Fan' @ switches to 2700 seconds should do the trick
Edit: It works! Thanks for the solution. And it turns out my fears were unfounded; I am able to turn off through Domoticz control panel whenever I wish.
-
- Posts: 39
- Joined: Tuesday 11 July 2017 10:26
- Target OS: NAS (Synology & others)
- Domoticz version: 2020.2
- Location: Germany
- Contact:
Re: 'Turn off' after >60 seconds fails to work, but works <= 60 secs
Hi all,
I only want to trick some led for 5 seconds. My if do for block is only showing minutes instead of seconds. Where to find the shown block or is it possible to adjust?
Kind regards matty
Domoticz Beta | Aeon Labs Z-Wave USB Stick Gen5 | Cyrus SmartHome 4-in-1 Multisensor | Qubino ZMNHCD1 - Roller Shutter | NEO COOLCAM NAS-WR01ZE Power Plug | Fibaro FGRGB-101 | WEMOS D1 MINI (ESP8266) Sensors CO2/TEMP/BARO |
-
- Posts: 81
- Joined: Thursday 10 December 2015 0:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.4834
- Location: Netherlands
- Contact:
Re: 'Turn off' after >60 seconds fails to work, but works <= 60 secs
You could do it with LUA. Or just set it off right away, and put a off delay on your switch. But then the delay is always active on that LED, so that might not work for you.nixalsschrott wrote: ↑Tuesday 07 November 2017 19:00Hi all,
I only want to trick some led for 5 seconds. My if do for block is only showing minutes instead of seconds. Where to find the shown block or is it possible to adjust?
Kind regards matty
-
- Posts: 81
- Joined: Thursday 10 December 2015 0:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.4834
- Location: Netherlands
- Contact:
Re: 'Turn off' after >60 seconds fails to work, but works <= 60 secs
I just thought of another way, Like this:
- Attachments
-
- Capture.PNG (11.43 KiB) Viewed 1521 times
Who is online
Users browsing this forum: No registered users and 1 guest