Happy St. Andrew's Day

Happy St. Andrew’s Day to everyone in Scotland! I hope you’re having a great day. HOWEVER…

I use the workday sensor in my automations for my morning alarm. I’ve added my own leave calendar from work as well. However this morning the automation didn’t trigger. My first thought was that I had somehow got an item in my leave calendar but when I checked it was the workday binary sensor that was set to off. As per the title, the day was St. Andrew’s day, which of course in England is still a workday.

My question is, does anyone else use the workday sensor in this fashion? I’ve had a brief look at the Python on GitHub (I don’t know Python) and it looks like there isn’t an easy solution to this as there is no way to return ‘England’ as a specific entity and thus remove holidays from our friends over the borders.

Not a big issue by any means, and of course python-holidays is not meant specifically for HA, so I can understand how it may not exactly suit the use case we have but it seems a shame we can’t tap into this in a way in which it seems to be intended.

Workday sensor is on for me today

  - platform: workday
    country: England

Thanks for the reply Graham I clearly didn’t read things properly!

1 Like