I just got all of my switches set up using my Broadlink RM Pro, and can control them with Alexa using the emulated hue. I’m trying to move on to automation and I just can’t figure out where I’m going wrong. I just want my switch to turn on at 6:00 on workdays. Any help is appreciated!
automation:
alias: Weekday Morning Lights
trigger:
platform: time
after: "06:00:00"
condition:
condition: state
entity_id: binary_sensor.workday_sensor
state: on
action:
service: switch.turn_on
entity_id: switch.fish_tank
The time and date sensor is used to format the display of the time/date, but not as a value for a trigger/condition.
The time value can be used for a trigger/condition.
Thank you everyone for your help! I had to make some changes, but also figured out the time on my raspberry pi was not accurate. After changing that, I switched to the regular time trigger. I also was required to have ’ around the sensor and its state. Here’s what worked: