on-off lamp problem

Moderator: leecollings

Post Reply
diman27
Posts: 6
Joined: Sunday 30 August 2020 16:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Russian
Contact:

on-off lamp problem

Post by diman27 »

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.
2020-09-01_20-56-11.png
2020-09-01_20-56-11.png (18.51 KiB) Viewed 459 times
besix
Posts: 99
Joined: Friday 25 January 2019 11:33
Target OS: Linux
Domoticz version: beta
Location: Poland
Contact:

Re: on-off lamp problem

Post by besix »

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
diman27
Posts: 6
Joined: Sunday 30 August 2020 16:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Russian
Contact:

Re: on-off lamp problem

Post by diman27 »

Is this the problem of the blockly itself or am I doing it wrong?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest