I have a weather station integration with Tempest into HA. One of the sensors is lux. Based on sunlight/lux I want to trigger an automation to turn on a light. Currently it works when the value drops below the value in the automation, but not when it’s already in the range. Example: lux set to 15,000 or less. It works if lux drops from 16,000 to below 15,000. It doesn’t work if say the lux is already 15,000 or less. I’ve tried both a numeric and device trigger with neither working. I feel like I’m missing something here. Any advice is appreciated. Below is a YAML output of the current automation. Yes I’ve validated the lux sensor is updating correctly in HA.
@tom_l I made the change and waited for the id to update, but the light didn’t trigger. any ideas on my code below? Maybe I’m missing something? If I run the automation manually, the light does turn on.
alias: Lights - Tempest Lux On
description: ""
trigger:
- platform: state
entity_id:
- sensor.butler_tempest_sensors_illuminance
to: null
condition:
- condition: time
after: "08:18:00"
before: "19:00:00"
- condition: numeric_state
entity_id: sensor.butler_tempest_sensors_illuminance
below: 1500
action:
- type: turn_on
device_id: e9f1b5fb28f6bda1f02c6ea54d1563bb
entity_id: e8682277248efc3ce7d96edea184d7be
domain: light
mode: single