Brrr (UK workday sensor)

I woke up this morning to a cold house. Possibilities ran through my mind in the shower: hallway sensor (DS18B20 + ESP8266) broken / offline? Boiler packed up? Alarm clock actually an hour early?

Logged into HA: everything seemed to be working, but the climate was in night-time mode. It turns out that the workday integration thinks that today is a UK holiday, so was assuming I’d be having a lie-in.

It is a holiday in Scotland (St Andrew’s Day), but that doesn’t affect the rest of the UK, and there’s no way to differentiate in the workday configuration.

1 Like

Ah, this is why my alarm didn’t go off this morning as I have that configured to use the workday integration.

:smiley: that’s brave! I was cold, but at least I wasn’t late for work!

Ironically I forgot that I actually have the day off today so luckily the alarm not triggering had no consequences.
That said, there’s still a bug in the workday sensor as it shouldn’t have triggered a holiday.

Must be secretly Scottish.

I’ve updated my config:

- platform: workday
  country: GB
  remove_holidays:
    - '2021-11-30'
    - '2022-11-30'
    - '2023-11-30'

Hopefully the holidays module will have sorted this by 2024.

My system correctly recognises today is a workday (although ironically I have the day off).

Configuration:

  - platform: workday
    country: England
    workdays: [mon,tue,wed,thu,fri]

Oh! The integration docs suggest that a country code is required — but if England works then problem solved!

Thanks!

1 Like

Bingo, my country code is set to UK so no wonder it failed, I’ll set it to England instead. Great tip!

Is anyone else’s workday sensor turned on today (in England) when today is the Early May Bank Holiday, even when using the ‘country: England’ code in their config?

Not here:

image

No not with the config I posted previously.

Mine worked this morning but my config is still set to UK rather than England.

Ahhh…I hadn’t excluded ‘holiday’ from the config. It now works as intended for me. Thanks!