'Turn off' after >60 seconds fails to work, but works <= 60 secs

Moderator: leecollings

Post Reply
Dandoggie
Posts: 3
Joined: Monday 27 February 2017 21:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

'Turn off' after >60 seconds fails to work, but works <= 60 secs

Post by Dandoggie »

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?
bathroom fan timer.PNG
bathroom fan timer.PNG (8.99 KiB) Viewed 2047 times
Lusch
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

Post by Lusch »

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?
Dandoggie
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

Post by Dandoggie »

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.
tozzke
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

Post by tozzke »

setting the off delay @ 'Bathroom Fan' @ switches to 2700 seconds should do the trick
Dandoggie
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

Post by Dandoggie »

tozzke wrote:setting the off delay @ 'Bathroom Fan' @ switches to 2700 seconds should do the trick
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.

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.
nixalsschrott
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

Post by nixalsschrott »

Dandoggie wrote: Monday 27 February 2017 21:55 What's going on...is a max number of seconds a known limitation of this command?

bathroom fan timer.PNG
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 |
Slinkos
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

Post by Slinkos »

nixalsschrott wrote: Tuesday 07 November 2017 19:00
Dandoggie wrote: Monday 27 February 2017 21:55 What's going on...is a max number of seconds a known limitation of this command?

bathroom fan timer.PNG
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
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.
Slinkos
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

Post by Slinkos »

I just thought of another way, Like this:
Attachments
Capture.PNG
Capture.PNG (11.43 KiB) Viewed 1521 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest