I’m trying to get my caseta dimmer lights (main_lights) to turn on when the Abode alarm changes from Home mode to Disarmed, but only if it’s after the sun has gone down… and this doesn’t seem to be working…
alias: turn on lights when alarm is disarmed at night
trigger:
entity_id: alarm_control_panel.abode_alarm
from: ‘armed_home’
platform: state
to: ‘disarmed’
condition:
condition: sun
after: sunset
action:
entity_id: light.main_lights
service: light.turn_on
I think the problem may be in the condition; I always use state, sun.sun, and below_sunset like so:
- alias: turn on lights when alarm is disarmed at night
trigger:
platform: state
entity_id: alarm_control_panel.abode_alarm
from: armed_home
to: disarmed
condition:
condition: state
entity_id: sun.sun
state: below_horizon
action:
service: light.turn_on
entity_id: light.main_lights
wow, i really have no clue what im doing with these tags haha…
i dont think it’s the indentation, since it loads fine and doesn’t throw any errors, i think its with the condition statement, so I’ll try what marthocoo said above and see if that works.