Hi, I am trying to setup a simple home automation in my bathroom, that when motion is detected, it will turn on the lights. And another that turns off the lights, if no motion is detected for 10 minutes.
I am using the ZHA integration, and an Aqara motion sensor, and a hue light.
Should be simple right?
The issue I am having, is that I can’t get the sensor to trigger the automation. Even though state change is registrered by the sensor.
I am sure I just have to change a bit in the yaml below, but do you know what?
- id: '1595045344214'
alias: Bathroom Motion Trigger On - Day
description: ''
trigger:
- entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_cb8e0304_ias_zone
platform: state
to: 'On'
condition:
- after: '08:00:00'
before: '22:00:00'
condition: time
action:
- brightness_pct: 100
device_id: 3974ff4862ec42ed8fdb23cdc38edaeb
domain: light
entity_id: light.bathroom_panel_level_light_color_on_off
type: turn_on