Control pool pump with solar panels when sun is shining

I want to start the pool pump when the Hue motion detector detects enough light (sun) so the pump starts working and pumps through the solar panels. If there is no sun the pump should stop to avoid cooling down the water.
To prevent flipping when cloudy weather there should be a timer that detects after a few minutes the situation is still to change.
The Hue Lux detection can only be used as a starter (IF). So I was thinking to use variables to set if the two measurements are YES and then START or STOP the pool pump.
For some reason that I do not get both measurements never happen togheter so the pump never starts or stops.
I build in some push notifications to know what is happening.
Can someone give a golden hint to fix this flow?

Two triggers before a ā€˜ALL’-card will never work.

Try a logic-card ā€˜tag is greater then… ā€˜. Tap the tag symbol and type the device name of the luxsensor in the searchfield.

1 Like

Tnx, that was the feature that I was looking for!

The logic is much easier now. And working :ok_hand:

You might consider to turn the pump at 650 lux and turn it off at 600 lux to reduce the fluctuations.