How to switch lights based on motion and sunrise/set

I’m struggling to make this work, any clues?

I have motion detectors to turn on lights, works perfectly. I don’t want them to turn on during daylight because of energy saving. But how?

Tried it with setting a time when to be active. Which works, but not a great solution because I have to change it now and then.

Tried to make a different scene that only runs when the sun is set or risen and calls the other scene with the motion detection actions. But then it runs the motion detected/lights on one anyways.

What am I missing here? Or is the logic simply not implemented yet?

most sensors also report lux so you can set the trigger to only operate if lux is below a certain value, what sensors do you have

Yes, some have indeed. Good call.

I can get the device value, but if I use the condition box it doesn’t have a variable.

How does the variable thing work?

Couldn’t find an English explanation sadly

1 Like

You can use the “Continue Only If” condition and inject a variable here :slight_smile:

Here is an example in the documentation:

Tried that already, also in the past, but never a variable shows up. What an I doing wrong here?

There is an empty dropdownmenu with the text ”No options".
Also when I select other sensors or lamps.

Can you show us a screenshot of your scene here ?

Yes. Here you go.



@iZi Actions in a group are executed in parallel, you need to put the “continue only if” in the next action group so the result is available :slight_smile:

Hell yeah! Working, thnx!

1 Like