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?
blockly: user variable set for time, don't work?
Moderator: leecollings
-
- 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?
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.
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.
-
- 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?
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
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

-
- 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?
Hi all,
Indeed, an event does not start on the simple change of state of a variable. And this can be a problem ...
Indeed, an event does not start on the simple change of state of a variable. And this can be a problem ...
-
- 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?
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 ..

-
- 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?
have already solved the problem, but just wondering, what is a hidden dummy?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 ..
Who is online
Users browsing this forum: No registered users and 1 guest