on-off lamp problem
Moderator: leecollings
-
- Posts: 6
- Joined: Sunday 30 August 2020 16:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Russian
- Contact:
on-off lamp problem
Hello to all. Help solve the problem. The light blinks and sometimes turns off. And it also blinks and turns on. If you select different buttons, then everything works, one does not work. Show an example of how to do it. Sorry for my bad english.
-
- Posts: 99
- Joined: Friday 25 January 2019 11:33
- Target OS: Linux
- Domoticz version: beta
- Location: Poland
- Contact:
Re: on-off lamp problem
Hey
This script is in a loop, you have to add a user variable whatever you want and check the state of that variable
IF selector = Double Clic AND lampa1 = On AND variable = 0
SET variable = 1
SET Lampa 1 = Off after 1 sec
ElseIF selector = Double Clic AND lampa1 = Off AND variable = 1
SET variable = 0
SET Lampa 1 = On after 1 sec
This script is in a loop, you have to add a user variable whatever you want and check the state of that variable
IF selector = Double Clic AND lampa1 = On AND variable = 0
SET variable = 1
SET Lampa 1 = Off after 1 sec
ElseIF selector = Double Clic AND lampa1 = Off AND variable = 1
SET variable = 0
SET Lampa 1 = On after 1 sec
-
- Posts: 6
- Joined: Sunday 30 August 2020 16:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Russian
- Contact:
Re: on-off lamp problem
Is this the problem of the blockly itself or am I doing it wrong?
Who is online
Users browsing this forum: No registered users and 1 guest