I’m not having much luck with sensors this week. I’ve got an automation that I only want to run on weekday mornings, so I’ve added the following to config;
# Workday sensor
binary_sensor:
- platform: workday
country: ES
Then in the automation, which is time triggered, I have added a condition of if it’s a workday, but with the condition in place the automation is not firing, removing it works. Is the sensor entity incorrect in some way? No errors or notifications show up with this:
- id: '123'
alias: Give the Kids a wake up call
description: Wake the kids up at 8:15
trigger:
- at: 08:15
platform: time
condition:
condition: state
entity_id: binary_sensor.workday
state: 'on'
action:
- service: media_player.volume_set
data:
entity_id: media_player.kids_bedroom_speaker
volume_level: '0.50'
- service: tts.google_say
entity_id: media_player.kids_bedroom_speaker
data_template:
message: Hey, it is time to get up!