wernerhp / ha.integration.load_shedding

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

Suburb load-shedding sensor always shows as unavailable. #45

Closed Brumawen closed 9 months ago

Brumawen commented 1 year ago

My suburb's load-shedding sensor always shows as unavailable.

image

wernerhp commented 1 year ago

Looks like you upgraded from an old version to v1.1.0. Please see release notes. There was a breaking change. Basically there will be a new sensor with a different name. If not you can just reconfigure the integration and it should sort you out. https://github.com/wernerhp/ha.integration.load_shedding/releases/tag/v1.1.0

Meyrcr commented 1 year ago

Having the same issue with a new install: image

I tried different Mangaung metro areas with the same outcome. I do see the following errors: imageimage

Please advise.

wernerhp commented 1 year ago

Please go to Developer Tools > States and filter Entity by sensor.load_shedding. Then send screenshots of each of the entities.

Meyrcr commented 1 year ago

image

wernerhp commented 1 year ago

and the one for your area (westdene)?

wernerhp commented 1 year ago

Looks like there maybe be an problem getting the area info from the ESP API. I've reported to EskomSePush on their #eskomsepush Slack channel.

It appears to be an intermittent issue with the API. I got it to return data after trying a few times, but you're going to run out of free (5) API calls for the day soon. It should automatically resolve once the API returns data for the area.

Meyrcr commented 1 year ago

and the one for your area (westdene)?

On ESP app I use "showgrounds (1)", but "westene (1)" has the same schedule. I thought the (1) at the end might be a problem, but looks like you found a error. Thx for the assistance and great integration!

wernerhp commented 1 year ago

@dan from ESP pointed me to the fact that Mangaung only has 4 stages on the ESP API which may lead to issues with the way I calculate the forecast. Will look into this.

vNate007 commented 1 year ago

@wernerhp I have the same issue on a fresh install.... well, several, with restarts inbetween.

image

So not seeing my area sensor at all but I have the entity.

image image

Do I need to do anythning or just wait for the API to pull itself towards itself?

Thanks mate!

vNate007 commented 1 year ago

So by updating the Integration I get it to recoglnise the area but it does not show the stage, alwaus saus "off". I have left it alone for a night, reloaded a couple of times, deleted and reconfigured with different areas... So the sensor state does not update. Some of the attributes do update though.

image