The automation does run 18 minutes after sunrise, but the lights are still on. And looking into the history of the devices nothing has happened.
Running the automation with run works. As you can see there are no conditions.
So, I have upgraded the hardware. Now it is running on a Pi 4-8.
Now the 18 minutes before sunset does not trigger…
- id: '1607324439165'
alias: Utebelysning tid pĂĄ
description: ''
trigger:
- platform: sun
event: sunset
offset: -00:18:00
condition: []
action:
- type: turn_on
device_id: d6c8351b17d011eb9ca47195cb70ee77
entity_id: switch.utebelysning_hus
domain: switch
- service: light.turn_on
data:
brightness_pct: 19
target:
device_id: d65e525117d011eb96ef1156e6e6a06c
- type: turn_on
device_id: d696ec4217d011eb8a8d3b6044f39b65
entity_id: switch.gavel
domain: switch
- type: turn_on
device_id: d76309ed17d011ebb7b9ef824d790877
entity_id: switch.staket
domain: switch
mode: single
But sometimes it does...
Very strange!
What approach shall I use "at 18 minutes before sunset" this and this and this occurs, or
"this light turns on at 18 minutes before sunset" ?
It looks like the quotes is accepted by HA, but not the editor.
But what is the best way to go when creating automations?
“when 18 minutes before sunset, do sthis and that and more” or
“turn on outdoor light when 18 minutes before sunset”, “turn on some other lights when 18 minutes before sunset”…?