@quattro20v wrote:
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)
- Lights are not turned on yet
Automation.yaml:
- id: '1575622289987' alias: licht aan bij beweging description: '' trigger: - device_id: 7a27b17bb7424c7cb4f54a947e030e3c domain: binary_sensor entity_id: binary_sensor.hue_motion_sensor_1_motion platform: device type: motion condition: - condition: state entity_id: light.beneden state: 'off' - below: 500 condition: device device_id: 7a27b17bb7424c7cb4f54a947e030e3c domain: sensor entity_id: sensor.hue_motion_sensor_1_light_level type: is_illuminance action: - scene: scene.helder
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.
Posts: 2
Participants: 2