Can someone help me pinpoint what’s wrong with my setup? I currently am trying to get my cabinet lights on a schedule and can’t seem to.
It’s a pain to test since it’s based on sun & time.
Few notes:
- The weekday (WD) AM ones work.
- All work when manually triggering from web ui.
- Logbook shows them all working correctly, but lights are not on when they should be.
- Can these all be combined into one file?
#My Setup
configuration.yaml
...
automation: !include automation.yaml
...
automation.yaml
...
- !include automation/KTCN_Cabinet-Lights_PM_ON.yaml
- !include automation/KTCN_Cabinet-Lights_PM_OFF.yaml
- !include automation/KTCN_Cabinet-Lights_AM_WD_ON.yaml
- !include automation/KTCN_Cabinet-Lights_AM_WD_OFF.yaml
- !include automation/KTCN_Cabinet-Lights_AM_WE_OFF.yaml
- !include automation/KTCN_Cabinet-Lights_AM_WE_ON.yaml
...
KTCN_Cabinet-Lights_AM_WD_OFF.yaml
alias: "KTCN - Cabinet Lights - Weekday - OFF - 7:30AM"
trigger:
platform: time
after: "07:30:00"
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
service: switch.turn_off
entity_id: switch.rf_outlet_5
KTCN_Cabinet-Lights_AM_WD_ON.yaml
alias: "KTCN - Cabinet Lights - Weekday - ON - 6AM"
trigger:
platform: time
after: "06:00:00"
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
service: switch.turn_on
entity_id: switch.rf_outlet_5
KTCN_Cabinet-Lights_AM_WE_OFF.yaml
alias: "KTCN - Cabinet Lights - Weekend - OFF - Sunrise +1:15hr"
trigger:
platform: sun
event: sunrise
offset: "+01:15:00"
condition:
- condition: time
weekday:
- sat
- sun
action:
service: switch.turn_off
entity_id: switch.rf_outlet_5
KTCN_Cabinet-Lights_AM_WE_ON.yaml
alias: "KTCN - Cabinet Lights - Weekend - ON - Sunrise -1:15hr"
trigger:
platform: sun
event: sunrise
offset: "-01:15:00"
condition:
- condition: time
weekday:
- sat
- sun
action:
service: switch.turn_on
entity_id: switch.rf_outlet_5
KTCN_Cabinet-Lights_PM_OFF.yaml
alias: "KTCN - Cabinet Lights - Every Day - OFF - 11PM"
trigger:
platform: time
after: "23:00"
action:
service: switch.turn_off
entity_id: switch.rf_outlet_5
KTCN_Cabinet-Lights_PM_ON.yaml
alias: "KTCN - Cabinet Lights - Every Day - ON - Sunset -1hr"
trigger:
platform: sun
event: sunset
offset: "-01:00:00"
action:
service: switch.turn_on
entity_id: switch.rf_outlet_5
Thanks in advance