Hello
I’ve tried setting up an automation to use my Aqara motion sensor lux to trigger an automation but running into issues where its not running. Hoping someone can see where I’m missing out on having it trigger properly
id: ‘1642903736907’
alias: Evening Lights
description: ‘’
trigger:
- type: illuminance
platform: device
device_id: 12111acfd9369299ed9bf28876794038
entity_id: sensor.living_room_motion_sensor_illuminance_lux
domain: sensor
below: 45
for:
hours: 0
minutes: 0
seconds: 0
id: Lights On - platform: time
at: ‘00:30:00’
id: Lights Off
condition: - condition: time
before: ‘23:30:00’
after: ‘15:30:00’
action: - choose:
- conditions:
- condition: trigger
id: Lights On
sequence: - service: light.turn_on
data:
brightness_pct: 20
target:
entity_id: light.tv_stand_lighting - service: light.turn_on
data: {}
target:
entity_id:
- light.dining_room_light
- light.living_room_light
enabled: true
- condition: trigger
- conditions:
- condition: trigger
id: Lights Off
sequence: - service: light.turn_off
data: {}
target:
entity_id: light.tv_stand_lighting
default: []
mode: single
- condition: trigger
- conditions:
Thanks in advance