Homey Flow causing infinite loop

I have added a LED switch which should turn on multiple lights when pressed. When pressed again it turns all the lights off. However, randomly (about once a week), the lights enter some kind of loop when I turn them on, where all the lights turn on and off continously and the only way to break the loop is for me to reboot the Homey. Anyone know what the problem might be?
I have made an advanced flow, where “when switch is activated, turn on all the lights”, and the same way on switch deactivation. I don`t think the problem is the LED switch itself, because it never happens when I use the switch standalone without using it through a flow.

Show The Flow™

2 Likes

(I have also tried to separate activate/deactivate in each separate flow but it didn`t help at all.)

I have had the same kind of problem with a flow that randomly looped. I added a delay (5s) before the on/off actions and it solved it

thank you. I`ll try to do the same and see if that helps.

I have a flow that should loop, but luckily doesn’t. So I can use it as a ‘hotelswitch’.

When I push the button twice fast it loops.

When this happens I disable the flow and then able it again.

I doesn’t happens often, but often enough to create a flow for it:

Unfortunately, adding delay did not solve the problem. It still turns repetedly on/off, though now with longer delays.

I can trigger the loop by pressing quickly 2 or more times on the switch
The switch has only option to activate or deactivate, or perform a specific action when changing dimming. It has no option to perform a specific action when double pressed.

1 Like

My point was that I don’t reboot the homey. Just disable and able this looping flow. Which I can do I with another flow and another button.

I`ll try to do the same. thanks

What is the brand and type of switch? Is there a dedicated Homey app for your switch? If so, you also might want to mention your issue in the dedicated topic of that Homey app.

Just a though: it sounds like either your switch or the linked Homey app is interpreting you switch action twice (first press for on and second press for off). I had a similar issue with a Tuya based Zigbee scene switch. I had to catch the duplicate action in a flow for it to only execute once. In my case the issue was a bug in the Tuya Zigbee Homey app for my switch model.

Have you tried to switch them on/off in serial rather than in parallel ?

No, how exactly can i do that?

yes. It is a dedicated app for my switch (namron). I have contacted them, but so far not received any solution to the problem, neither what may be the cause of the problem.

I have made the flow work in that way that button press always deactivates the flow and reactivates it again after a few secs. Currently looks like this has solved the issue.

By turning the switch on/off, you are controlling other devices, turning them on/off.
Do you have any flows that are triggered when these devices are turned on/off?
Perhaps the loop is spread across multiple flows. E.g Flow 1 trigger Flow 2 and Flow 2 triggers Flow 1.

no, no flows are triggered when these devices are turned on/off. I have other flows that also turn on/off the same devices, but none of these are triggering devices

what brand/type is the switch? and wich app controlls it?

Namron is the brand/app. The device is 4512751 Namron Zigbee LED Dimmer which is used as a switch. It controls multiple other namrom devices through homey, both zigbee LED dimmers and zigbee switches.

For sure i would use a card in the “and part” of the flow “is on” “is off”

So switch on and is off then do…

Also for the switch off flow and " is on"