After a lot of hours of work to set up Home Assistant on RPI3, I now can control my Hue lights, my Toon thermostat and I have my first automations working!
What I’m trying to create now: I would like to turn the lights on when its dark at daytime. Some rules I created so far:
Hue motion sensor detects movement (so someone is at home)
Light level measured bij hue motion sensor is below its setpoint (I’m not sure if this part is working, still need some testing)
Now this means that the lights will stay on for the rest of the day, or untill the next setting is activated. So I would like to get the lights turned off 30 minutes after this automation started.
I cannot get it to work when I add a delay in the automation. I’m also not sure if I can arrange this with an automation or a scrip.
Ok, tanks. I will have a look at entity controller later. I tried shortly, but didn’t manage to install it yet.
But first I prefer to get it working with some own made automations to learn and understand a bit more
I assume you tried to turn off your lights witch turn_off scene.helder, right? The problem is that you can’t turn off scenes. Think about it, say you have a scene where the bulb in the livingroom is turned on at 20% and the bulb in the bedroom is turned off, how would you want to turn off this scene or what behaviour would you expect.
Either create a turned_off scene and turn on this one after the delay or try adding a delay and turn off the lights instead of turning off the scene.
So this works fine to turn the lights off after 30 minutes.
Next thing to add is, I want them only to turn off is no motion is detected for 30 minutes…
(lights can be turned off if no one is at home or upstairs)