Hello all,
I am stuck with my automation for my nighlight I used to realize with Node-Red. Since my SD-card broke down, I want to switch to HomeAssistant entirely.
Im my bedroom are 2 Aqara motion sensors on each side of the bed. I want them to turn on the nightlights (Aqara Gateway, WLED-Strip) after dark, once it senses motion.
I have tried the following automation without success, but I don’t know why.
- id: '1593986475252'
alias: Nachtbeleuchtung
description: ''
trigger:
- entity_id: binary_sensor.mtn_mnu_schlafzi_li
from: 'off'
platform: state
to: 'on'
- entity_id: binary_sensor.mtn_mnu_schlafzi_re
from: 'off'
platform: state
to: 'on'
condition:
- after: sunset
after_offset: 0:30
before: sunrise
before_offset: 0:30
condition: sun
action:
- data:
brightness_pct: 10
entity_id: light.mnu_gateway
rgb_color: 0,0,255
service: light.turn_on
- data:
brightness_pct: 10
color_name: blue
entity_id: light.mnu_bettlicht
service: light.turn_on
- delay: 00:05:00
- data: {}
entity_id: light.mnu_bett
service: light.turn_off
- data: {}
entity_id: light.mnu_gateway
service: light.turn_off
The automation is created through the web configuration.
What am I missing or doing wrong?
Regards
manu