I’m trying to figure out why this automation isn’t getting triggered. I just want to turn off a light if the light level is above the minimum value. The lowest value it ever shows is 1.0, and the highest value is 1500.0. In the overview, the illuminance is showing “62.0 lx” right now. The automation doesn’t get triggered and traces show “No traces found”.
One question I have is: When you have a trigger based on a numeric state, how often does HA check if it should trigger an automation?
alias: Turn LR light off when illuminance above 1
description: ""
triggers:
- trigger: numeric_state
entity_id:
- sensor.aqara_motion_and_light_sensor_p2_illuminance
above: 1
conditions:
- condition: device
type: is_on
device_id: 975ff7eefa829cdf55c6f703909f8a00
entity_id: 31f15bbdcddd4a4f47836c650f87a6b2
domain: light
enabled: false
actions:
- action: light.turn_off
metadata: {}
data: {}
target:
entity_id: light.lr_talllamp
mode: single