Switches Looping

Moderator: leecollings

Post Reply
levynger
Posts: 87
Joined: Wednesday 21 December 2016 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Israel
Contact:

Switches Looping

Post by levynger »

i assume this was asked previously - couldnt find any post on this tough..

Due to last changes in release in MQTT out - no longer broadcasted
i have to create for multiple switches different IDX in domoticz
untill now, 1 switch connected to the light, and other acting as 2/3 ways - so i have used the same IDX for all the siwtches that controls it.
since domoticz/out used to broadcast all changes - it would update the rest of the physical switches.

so to create the same behaviour - i have for example 2 switches - each has different IDX
with LUA/Blocky/DZvent - when one is on or off - i want to update the other one.

in this case - it would create endless loop of On/ Off commands - perhaps due to the fact that the trigger switch yet to be updated in domoticz?

even with 2 seconds delay - i ended in loop ON-Off sequence commands..
Capture.PNG
Capture.PNG (32.12 KiB) Viewed 560 times
AllesVanZelf
Posts: 265
Joined: Monday 05 February 2018 8:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 12467
Location: Netherlands, near Haarlem
Contact:

Re: Switches Looping

Post by AllesVanZelf »

I do no fully understand what you what to achieve, but [else if 1] is actually the same as [else if 2]. So same condition, but conflicting action [On/Off].
These 3 [Else if's] is too much conflict.
Domoticz 2020.1 (12230) on Raspberry Pi 3B with Raspian Buster. Besides Domoticz, Rpi is running Pi-Hole.
Gerwin
Posts: 84
Joined: Friday 12 August 2016 13:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Switches Looping

Post by Gerwin »

blockly.png
blockly.png (190.98 KiB) Viewed 524 times
i think you are using the wrong time block if you want 2 sec put only 2 in the block
if you are using a block out logic you can't use a block in the same rule out the time

Gerwin
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest