Hi,
from what i can see this is pretty simple automation which I think i’ve implemeted correctly however it never gets triggered?
- alias: 'Night Lighting'
trigger:
- platform: sun
event: sunset
offset: "-00:50:00"
- platform: state
entity_id: group.all_devices
to: 'home'
condition:
condition: and
conditions:
- condition: state
entity_id: group.all_devcies
state: 'home'
- condition: sun
after: sunset
after_offset: "-00:50:00"
action:
service: scene.turn_on
entity_id: scene.nomal_night
Tinkerer
(aka DubhAd on GitHub)
August 20, 2017, 9:31pm
2
There look to be typing errors in there, your second group.all_devices
says group.all_devcies
. Also, is your scene nomal_night
?
1 Like
Also your conditions duplicate your triggers…
Tinkerer
(aka DubhAd on GitHub)
August 21, 2017, 8:30am
4
I use that in many automations, since the triggers are or
statements. That automation will run the scene when everybody is home, and it’s later than 50 minutes before sunset, regardless of whether people are home at that time, or later.
1 Like
lambtho
(Lambtho)
August 21, 2017, 8:38am
5
There is also a wrong indent below action (not sure if it matters here)
it should be
action:
service: scene.turn_on
entity_id: scene.nomal_night
and not
action:
service: scene.turn_on
entity_id: scene.nomal_night