Hi,
I created an automation where motion and the light level of a hue motion sensor are configured as trigger.
The automation works as ist should, but I think there is a problem with the „light level below 1“-trigger. Even if the light level is above 1 lx the automation is turning on the lights. Am I using a wrong value?
Can someone help me?
alias: Badezimmer Nachtlicht
description: ""
trigger:
- platform: state
from: "off"
entity_id:
- binary_sensor.motion
to: "on"
- platform: numeric_state
entity_id: sensor.light_level
below: 1
attribute: light_level
condition:
- condition: not
conditions:
- condition: state
entity_id: light.badezimmer_1
state: "on"
action:
- service: scene.turn_on
target:
entity_id: scene.badezimmer_nachtlicht
metadata: {}
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- if:
- condition: numeric_state
entity_id: light.badezimmer_1
attribute: brightness
above: 10
then:
- stop: Licht manuell eingeschaltet
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- if:
- condition: numeric_state
entity_id: light.badezimmer_1
attribute: brightness
above: 10
then:
- stop: Licht manuell eingeschaltet
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- if:
- condition: numeric_state
entity_id: light.badezimmer_1
attribute: brightness
above: 10
then:
- stop: Licht manuell eingeschaltet
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- if:
- condition: numeric_state
entity_id: light.badezimmer_1
attribute: brightness
above: 10
then:
- stop: Licht manuell eingeschaltet
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- if:
- condition: numeric_state
entity_id: light.badezimmer_1
attribute: brightness
above: 10
then:
- stop: Licht manuell eingeschaltet
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- if:
- condition: numeric_state
entity_id: light.badezimmer_1
attribute: brightness
above: 10
then:
- stop: Licht manuell eingeschaltet
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- if:
- condition: numeric_state
entity_id: light.badezimmer_1
attribute: brightness
above: 10
then:
- stop: Licht manuell eingeschaltet
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- if:
- condition: numeric_state
entity_id: light.badezimmer_1
attribute: brightness
above: 10
then:
- stop: Licht manuell eingeschaltet
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- if:
- condition: numeric_state
entity_id: light.badezimmer_1
attribute: brightness
above: 10
then:
- stop: Licht manuell eingeschaltet
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- if:
- condition: numeric_state
entity_id: light.badezimmer_1
attribute: brightness
above: 10
then:
- stop: Licht manuell eingeschaltet
- delay:
hours: 0
minutes: 0
seconds: 20
milliseconds: 0
- if:
- condition: numeric_state
entity_id: light.badezimmer_1
attribute: brightness
above: 10
then:
- stop: Licht manuell eingeschaltet
- delay:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
- if:
- condition: numeric_state
entity_id: light.badezimmer_1
attribute: brightness
above: 10
then:
- stop: Licht manuell eingeschaltet
- delay:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
- if:
- condition: numeric_state
entity_id: light.badezimmer_1
attribute: brightness
above: 10
then:
- stop: Licht manuell eingeschaltet
- delay:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
- if:
- condition: numeric_state
entity_id: light.badezimmer_1
attribute: brightness
above: 10
then:
- stop: Licht manuell eingeschaltet
- delay:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
- if:
- condition: numeric_state
entity_id: light.badezimmer_1
attribute: brightness
above: 10
then:
- stop: Licht manuell eingeschaltet
- delay:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
- if:
- condition: numeric_state
entity_id: light.badezimmer_1
attribute: brightness
above: 10
then:
- stop: Licht manuell eingeschaltet
- delay:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
- if:
- condition: numeric_state
entity_id: light.badezimmer_1
attribute: brightness
above: 10
then:
- stop: Licht manuell eingeschaltet
- delay:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
- if:
- condition: numeric_state
entity_id: light.badezimmer_1
attribute: brightness
above: 10
then:
- stop: Licht manuell eingeschaltet
- delay:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
- if:
- condition: numeric_state
entity_id: light.badezimmer_1
attribute: brightness
above: 10
then:
- stop: Licht manuell eingeschaltet
- delay:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
- if:
- condition: numeric_state
entity_id: light.badezimmer_1
attribute: brightness
above: 10
then:
- stop: Licht manuell eingeschaltet
- type: turn_off
device_id: dda0f10a184ec55d7e53b53a2616e58b
entity_id: light.badezimmer_1
domain: light
- type: turn_off
device_id: 6e5648bd086539dfd0dc30efc566fe0d
entity_id: light.badezimmer_2
domain: light
- type: turn_off
device_id: 0a791ea33fde0e692918defecb1cc778
entity_id: light.badezimmer_3
domain: light
- type: turn_off
device_id: d61ec63f404a6a952b6d94dcf4e4f13a
entity_id: light.badezimmer_4
domain: light
- type: turn_off
device_id: 9b68b2e089f2c5870b2ed887f41e246a
entity_id: light.badezimmer_5
domain: light
- type: turn_off
device_id: a51d1e2340fa9785a739f76c11ee4f10
entity_id: light.badezimmer_6
domain: light
- type: turn_off
device_id: 801117c24019958a0d9927e5df70a239
entity_id: light.badezimmer_7
domain: light
- type: turn_off
device_id: bbbe35d59e9819a2a928b068c434a364
entity_id: light.badezimmer_8
domain: light
mode: single