Workday sensor not working

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!

This is my working configuration:

- platform: workday
  country: US
  province: PR
  workdays: [mon, tue, wed, thu, fri]  

Hope it helps.

What is the state of your workday sensor?

Check in developer tools / states.

We might be onto something here, there’s no listing of it in the States page?

This should only appear once in your configuration file:

binary_sensor:
1 Like

Brilliant, thank you, I had another binary_sensor: lower down. All working now.