wernerhp / ha.integration.load_shedding

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

Schedule Stop working #76

Closed barnwern closed 1 year ago

barnwern commented 1 year ago

My Schedule has stopped updating for a certain area in Cape Town - Area 6 Durbanville.

I use the Free API and is only 19 for the day but it does not update but did work in the beginning - could the area or name of area have changed and where can I test or get the area name exactly.

wernerhp commented 1 year ago

It can happen when Eskom changes areas. You can remove the addon and add it again to go through the setup and search your area again. Can double check in the ESP app to see that the schedule is correct. What area?

wernerhp commented 1 year ago

Also please post any logs

barnwern commented 1 year ago

Hi Werner Durbanville. Area 6 I am sitting in Jhb on trip so can redo next week if it does not fix itself Thx Werner Barnard

tinuva commented 1 year ago

Hi Werner Durbanville. Area 6 I am sitting in Jhb on trip so can redo next week if it does not fix itself Thx Werner Barnard

I am also in Durbanville area 6 and it works fine. I think your issue, is related to the schedule not updating on long running instance.

The work around is an automation which reloads the integration once a day.

wernerhp commented 1 year ago

@barnwern any luck?

barnwern commented 1 year ago

@barnwern any luck?

Sorry @wernerhp I have been busy - I reloaded it and now it seems to work

I just notice that if the schedule changes it takes a day or 2 sometimes before it aligns again - so a daily restart or force would be good

githubfreddieve commented 1 year ago

Lots of effort to reinstall (finding the area again eats up tokens), but the integration doesn't set up the sensor.load_shedding_stage_eskom sensor anymore, so none of the code works

wernerhp commented 1 year ago

@githubfreddieve it would help a lot if you provided more information.

Please post your Settings > System > Logs. Filter by searching for load_shedding. What version of HA are you running? Is it a new problem?

Also send screenshots of Developer tools > Filter entities by sensor.load_shedding

How frequently do you reinstall this integration?

The free ESP API tier allows for 50 credits per day. This integration uses 25 per day once it's set up. Searching for your area uses 5, but this is only required to setup assuming you don't waste API calls by searching around for your area.

githubfreddieve commented 1 year ago

thanks for the reply @wernerhp - been using your work for weeks now and it's awesome, but yesterday it stopped working. In the integration I suddenly had two sensors "not provided by this integration", one of which is sensor.load_shedding_stage_eskom.

Last night was the first time I've ever had to reinstall.

I removed and then reloaded the integration today. Had huge problems with the ESP API token, eventually paid, didn't help. Been using up tokens because it's been difficult to find my area again, but have now. At least I have 3 sensors back.

HA v2023.9.3

image image
wernerhp commented 1 year ago

Did you use more than one ESP API Key? Because that will get both keys banned for 24 hours...

githubfreddieve commented 1 year ago

Yes, multiple... how do I get my sensor.load_shedding_stage_eskom back though? Even if I wait for that unbanning

wernerhp commented 1 year ago

Wait 24hrs for the key to be unbanned...then reload the integration image

or remove and set it up from scratch in 24 hours. If you have issues with the key (which it sounds like you might have since you paid and it sounds like it's banned) then try reaching out to @dan or @herman on the #eskomsepush channel on #zatech https://zatech.co.za/ . They'll be able to sort out your key.

githubfreddieve commented 1 year ago

Wait 24hrs for the key to be unbanned...then reload the integration image

or remove and set it up from scratch in 24 hours. If you have issues with the key (which it sounds like you might have since you paid and it sounds like it's banned) then try reaching out to @dan or @herman on the #eskomsepush channel on #zatech https://zatech.co.za/ . They'll be able to sort out your key.

This worked well. From scratch. Thanks for referral to zatech - useful for future!