I am new to Home Assistant; I have HA installed on a Synology NAS; and I’ve migrated all of my Insteon devices to HA.
I need to turn a particular 3-way switch on at sunset and off at sunrise. When run manually, the switch is turned on an off. When automated, the switch turns on at 3:00 PM instead of sunset.
Below are my relevant .yaml files. Any help or insight would be greatly appreciated:
1. configuration.yaml
# Loads default set of integrations. Do not remove.
default_config:
cloud:
homeassistant:
time_zone: America/New_York
# Text to speech
tts:
- platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
# Leviton
light:
- platform: decora_wifi
username: %emailaddress%
password: %password%
2. automations.yaml
- id: '1652655483902'
alias: Lights Off At Sunrise
description: ''
trigger:
- platform: sun
event: sunrise
offset: 0
condition: []
action:
- service: switch.turn_off
data: {}
target:
device_id: 69f7f8f4f0afffff3cb27cd85536e950
mode: single
- id: '1652655778250'
alias: Lights On At Sunset
description: ''
trigger:
- platform: sun
event: sunset
offset: 0
condition: []
action:
- service: switch.turn_on
data: {}
target:
device_id: 69f7f8f4f0afffff3cb27cd85536e950
mode: single