blockly: user variable set for time, don't work?

Moderator: leecollings

Post Reply
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

blockly: user variable set for time, don't work?

Post by Evelen »

Ok, i want to set my user varibale to "timer_on" for 3 minutes when a lamp is on, than back, but it don't work, the variable don't change to "timer_on".

why?
støvsuger.png
støvsuger.png (25.69 KiB) Viewed 2806 times
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

Re: blockly: user variable set for time, don't work?

Post by Evelen »

bumping
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

Re: blockly: user variable set for time, don't work?

Post by Evelen »

bump
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

Re: blockly: user variable set for time, don't work?

Post by Evelen »

bump
Philosifer
Posts: 17
Joined: Thursday 07 January 2016 18:38
Target OS: Linux
Domoticz version: 2.4223
Location: United Kingdom
Contact:

Re: blockly: user variable set for time, don't work?

Post by Philosifer »

I've been struggling to get events that mention only user variables to trigger at all.

Event that check changes of system states (e.g. security status) seem ok but if they only have user variables in the if clause they seem not to run.

Maybe add a write to the debug log in your do clause to see if your event is running or not.
krollebol
Posts: 1
Joined: Friday 06 November 2015 17:07
Target OS: Linux
Domoticz version:
Location: Belgium
Contact:

Re: blockly: user variable set for time, don't work?

Post by krollebol »

Indeed, I've also noticed that an event with only a user variable in the 'if' doesn't work. But you could probably add an AND with an additional condition that's always true, such as "time > 00:00". Then the event will run every minute. Of course that's not useful if you want to trigger immediately when a user variable changes.

Also setting a user variable for X minutes doesn't work. The value will never be set. Probably this set for X minutes only works for toggling a switch :-(
sorampage
Posts: 13
Joined: Friday 16 September 2016 11:18
Target OS: Raspberry Pi / ODroid
Domoticz version: LastStab
Location: France
Contact:

Re: blockly: user variable set for time, don't work?

Post by sorampage »

Hi all,


Indeed, an event does not start on the simple change of state of a variable. And this can be a problem ...
sorampage
Posts: 13
Joined: Friday 16 September 2016 11:18
Target OS: Raspberry Pi / ODroid
Domoticz version: LastStab
Location: France
Contact:

Re: blockly: user variable set for time, don't work?

Post by sorampage »

Evelen wrote:Ok, i want to set my user varibale to "timer_on" for 3 minutes when a lamp is on, than back, but it don't work, the variable don't change to "timer_on".

why?

støvsuger.png

You can use hidden dummy switch .. :)
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

Re: blockly: user variable set for time, don't work?

Post by Evelen »

sorampage wrote:
Evelen wrote:Ok, i want to set my user varibale to "timer_on" for 3 minutes when a lamp is on, than back, but it don't work, the variable don't change to "timer_on".

why?

støvsuger.png

You can use hidden dummy switch .. :)
have already solved the problem, but just wondering, what is a hidden dummy?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest