Outdoor lamp that should turn on by sunset and off at sunrise
Certain indoor lamps to turn on by sunset
Certain indoor lamps to turn on by me but turn off at specific time example, 23:00
I just can’t figure it out, been reading examples… what am doing wrong ?
automation:
- alias: 'Turn on light when sun sets'
trigger:
platform: sun
event: sunset
offset: '-00:20:00'
action:
service: homeassistant.turn_on
entity_id: switch.ute_trappa
- alias: 'Turn off light when sun raise'
trigger:
platform: sun
event: sunrise
offset: '-00:20:00'
action:
service: homeassistant.turn_off
entity_id: switch.ute_trappa
# automation:
- alias 'Goodnight'
trigger:
- platform: time
after: '23:00'
condition:
condition: state
entity_id: group.all_home
state: on
action:
service: homeassistant.turn_off
entity_id: group.all_home