Variable "when" is not activating flow

Hi there, i have a flow based on lux to turn on or of the lights. This worked in the past but now not so much. For some reason the variable tricker doesnt start the flow anymore. I put a countdown between it to check every 30 seconds, that works but i dont get why i need suddenly need that. Normally it would start when the “if” was changing. Hope someone can help me out. Thanks in advance!

My thoughts based on your flow:

  • You’ll need a WHEN card in top part that triggers when the brightness changes (should be a card related to your motion sensor device). That replaces the ‘Every 30 seconds’ card. The top flow on the canvas will update your variable based on the brightness;
  • The link between the current (to be replaced) ‘Every 30 seconds’ card and the second flow on the bottom part of the canvas should be removed;
  • The bottom flow triggers when you update the variable in the top flow.

Thank you so much! The problem was that i updated from philips hue app to matter and for some reason the motion sensors (that also sense the Lux) where not working correctly. Thanks again, now its working fine :slight_smile:

Same functionality but 6 cards instead of 11.

Ahh thanks Wim, that looks a lot easier! Gonna try that, maybe you have a tip too built a delay in there as well? Now the lights turn on and of the whole time