Hi,
does anyone have an idea for the following problem:
i have one or two motion sensors and one light.
if its dark less than 20lux light should going on.
light should without movement be on for 1min if movement occurs light on for the next new minute.
if more than 20lux light should be off.
Problem: if you decide 20lux and the light switch on and provide more than 20lux the motion sensor thinks it bright enough.
my current result:
- alias: FlurEingang_Tag
trigger:
- platform: state
entity_id: binary_sensor.eingang_bewegungsmelder
to: 'on'
condition:
condition: and
conditions:
- condition: sun
after: sunrise
after_offset: "0:30:00"
- condition: sun
before: sunset
- condition: or
conditions:
- condition: state
entity_id: light.eingang_1_2
state: 'on'
- condition: or
conditions:
- condition: sun
after: sunset
after_offset: "0:30:00"
- condition: numeric_state
entity_id: sensor.eingang_bewegungsmelder_2
below: '14'
action:
service: homeassistant.turn_on
data:
entity_id:
- light.eingang_1_2
- light.eingang_2_2
brightness_pct: 100
kelvin: 300
thanks for help