r/HomeAssistantEDF • • 5d ago

Off peak sensor just failed

Has anyone else got the Off Peak Electricity sensor stuck off since 23:00?

1 Upvotes

8 comments sorted by

3

u/stek2022 4d ago

Sometimes it does fail to turn on - that's usually down to EDF's end.
I never reference the off-peak sensor directly, instead I set up a 'cheap-now' template with the below, then use that as my trigger in automations:

{% set t = now().time() %}

{{

is_state('binary_sensor.edf_energy_electricity_XXXXXXXX_YYYYYYYYYYYY_off_peak', 'on')

or t >= strptime('23:00:00', '%H:%M:%S').time()

or t <= strptime('06:00:00', '%H:%M:%S').time()

}}

1

u/Jay638 4d ago

Really helpful, thank you.

I’m pretty sure this was EDF’s end as you say. It caught up an hour later so I probably wouldn’t have noticed had I not been online at the time.

1

u/stek2022 4d ago

(I used to do the same on Octopus as maybe one time in a few hundred it would also not trigger the off peak sensor)

1

u/Jay638 5d ago

I rebooted, nothing, reconfigured, nothing.

Current rate and smart hours are feeding through the API just fine. But the off peak electricity sensor has become stuck in off. As at 23:00 today, when it should always be on. See below.

I've just had a busy half hour. I now have "current rate electricity" below or above 10p as a trigger to a template helper and my automations are now checking that as well as a backup to the off peak electricity sensor.

Weird, this has been rock solid until now.

1

u/Jay638 4d ago

So mine fixed itself at 00:43 this morning.

1

u/Stripy_badger 4d ago

Can you see what happened in your system logs at that time?

1

u/Stripy_badger 5d ago

Mines good!

1

u/Jay638 4d ago edited 4d ago

So mine fixed itself at 00:00:43 this morning.