Hi everyone,
I got my automations working but seems that it only trigger ones a day when the sensors goes under 15 lux but I want it to always trigger when the sensor reports under 15 lux and the light is off.
- id: Belysning_Vardagsrum_On
alias: "Belysning - Vardagsrum och m\xF6rkt"
trigger:
- platform: numeric_state
entity_id: sensor.aeotec_zw074_multisensor_gen5_luminance
below: '15'
condition:
- condition: state
entity_id: group.all_devices
state: home
- condition: state
entity_id: input_boolean.natt_mode
state: 'off'
- condition: state
entity_id: light.vardagsrummet_1
state: 'off'
action:
- service: persistent_notification.create
data:
message: "Dags att t\xE4nda lampan i vardagsrummet"
- service: light.turn_on
entity_id:
- light.vardagsrummet_1
data:
brightness: 150