Hi all, new to HA (slowly migrating from HomeKit) and running into an annoying issue.
I have a porch light that is connected to a new Decora Wifi Switch. I have the automation set up to turn on at Sunset and turn off at Sunrise but the light is not turning on or off automatically. I am able to use the HA app to turn the light on or off though.
Here is the log from the changed variables page:
this:
entity_id: automation.turn_on_front_porch_light
state: ‘on’
attributes:
id: ‘1762207727375’
last_triggered: ‘2025-11-19T21:48:18.269115+00:00’
mode: single
current: 0
friendly_name: Turn on Front Porch Light
last_changed: ‘2025-11-03T22:08:57.109856+00:00’
last_reported: ‘2025-11-19T21:48:18.271134+00:00’
last_updated: ‘2025-11-19T21:48:18.271134+00:00’
context:
id: 01KAF1DZEWQ08R6EDX6FAEASMT
parent_id: null
user_id: null
trigger:
id: ‘0’
idx: ‘0’
alias: null
platform: sun
event: sunset
offset:
__type: <class ‘datetime.timedelta’>
total_seconds: 0
description: sunset
and here is the Automation Config:
id: ‘1762207727375’
alias: Turn on Front Porch Light
description: ‘’
triggers:
- trigger: sun
event: sunset
offset: 0
conditions:
actions: - type: turn_on
device_id: 2973a462dfa62171e4ca65e8a17f5650
entity_id: ae6bc5f39591455788fcfaae534aa6bf
domain: light
mode: single
Any help would be greatly appreciated!