wernerhp / ha.integration.load_shedding

A Home Assistant integration to track your load schedding schedule.
MIT License
113 stars 21 forks source link

Calendar/Schedule not updating on long running HA instance #61

Open tinuva opened 1 year ago

tinuva commented 1 year ago

I find that if my HA is not restarted for a long period, the calendar/schedule eventually stops updating.

In the area/zone entity sensor.load_shedding_area_capetown_6_durbanville, I see the following attributes:

Forecast
- stage: 1
start_time: '2023-03-29T03:00:00+00:00'
end_time: '2023-03-29T04:30:00+00:00'

Last update
March 23, 2023 at 8:53:59 AM

I seem to be on version 1.3.0

See the difference between HA and ESP: HA Screenshot_20230330-064246 ESP Screenshot_20230330-064319

wernerhp commented 1 year ago

Hmm...anything in the Logs?
What's the attributes for the stage and area sensors in Dev Tools?

tinuva commented 1 year ago

Havent seen anything in the logs.

The stage sensor was up to date. the attributes for hte area is in the OP.

wernerhp commented 1 year ago

Hmm...I see...not updating the forecast, because the area schedule is not updating every day as it should. I wonder if it has something to do with it being the end of the month. Will check if it updates tomorrow.

image

wernerhp commented 1 year ago

Interesting that yours and mine both were last updated March 23, 2023 🤔

kolakidd commented 1 year ago

I've had the same issue before and had it again this week, this evening, I hit reload, and it sorted it out, and it loaded the latest schedules. It does feel like a month-end issue because I have tried that before to no avail.

charliesjc commented 1 year ago

Mine was doing the same thing with my area sensor, I see the last update was on 26 March, I hit reload under Devices and it's working again. The Eskom load shedding sensor kept updating correctly, though.

wernerhp commented 1 year ago

I suppose the workaround in the meantime is to set up an automation to reload the integration every 3-5 days

crashza commented 7 months ago

Same issue here.

Mephisto-za commented 7 months ago

yup here as well, thanks for the reload tip.