Help with helper and automation

Hi,

I have a multiple automations base on LUX value, now is it possible to changes these values inside automation with number helper?

AUtomation example:

alias: All lights OFF High 400 LUX
description: ‘’
trigger:

  • type: illuminance
    platform: device
    device_id: 9d61e44621fc8da35aa705620029b3e3
    entity_id: sensor.lux_illuminance
    domain: sensor
    above: 400
    for:
    hours: 0
    minutes: 5
    seconds: 0
    condition: []
    action:
  • service: light.turn_off
    data: {}
    target:
    entity_id: light.xalllights
    mode: single

Yes, if you use a Numeric State Trigger.

Example:

alias: All lights OFF High 400 LUX
description: ''
trigger:
  - platform: numeric_state
    entity_id: sensor.lux_illuminance
    above: input_number.whatever
    for:
      minutes: 5
condition: []
action:
  - service: light.turn_off
    target:
      entity_id: light.xalllights
mode: single
1 Like