Trigger is not fired

Hello, I don’t understand why the lamps don’t turn off when the lux value is over 5. Although the lux value changes from 0 to 5 in the morning.

alias: wandleuchten_aus
description: Wandleuchten Sonnenaufgang und 0 Uhr aus
trigger:
  - platform: time
    at: "00:00:00"
  - type: value
    platform: device
    device_id: 7e3ef02dc05e914e6d3b894e8635c7bc
    entity_id: a064584cf72d475485a10157dcf2c8f3
    domain: sensor
    below: 0
    above: 5
condition: []
action:
  - target:
      entity_id:
        - light.wandleuchten_dachterasse
        - light.wandleuchten_terrasse
    data: {}
    action: light.turn_off
mode: single

How can the the lux value be below 0 and above 5 at the same time?

That is what your trigger is looking for.

Try just above: 5 This will trigger when the lux value changes from below 5 to above 5.

Also FYI: Why and how to avoid device_ids in automations and scripts

1 Like

Oh yes thank you.

1 Like

Hi thorstenniemann.tn

,
Also if it changes to 5, that is not above 5.
It would need to change to whatever is greater than 5 in your lux scale there or set it to greater than 4.9 kind of thing.