r/HomeAssistantEDF • u/Jay638 • 5d ago
Off peak sensor just failed
Has anyone else got the Off Peak Electricity sensor stuck off since 23:00?
1
Upvotes
r/HomeAssistantEDF • u/Jay638 • 5d ago
Has anyone else got the Off Peak Electricity sensor stuck off since 23:00?
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 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 5d ago
Mines good!