swartjean / ha-eskom-loadshedding

Fetches loadshedding data from Eskom
Apache License 2.0
71 stars 19 forks source link

Area Name Update #39

Open adiweps opened 10 months ago

adiweps commented 10 months ago

Good day,

Is there a way to update your area? ESP yesterday released new schedules and area names have changed.

Dyltong commented 10 months ago

Same here

RaidersPlay commented 10 months ago

What I tried. Does not work Maybe someone else have better luck...

As far as I can figure out \\HomeAssistant\config\.storage\core.config_entries needs to be modified. The variable "area_id" needs to be updated.

The ID can be obtain by going to https://reqbin.com/curl Run script (from ESP) curl --location --request GET 'https://developer.sepush.co.za/business/2.0/areas_search?text=Johannesburg' \ --header 'token:YourID'

Dyltong commented 10 months ago

Under settings, devices and services, eskom integration (http://homeassistant.local:8123/config/integrations/integration/eskom_loadshedding)

I clicked "add entry", used the same API key as before, and then found my area in joburg which had "new" at the end.

I then deleted the old entry.

This worked.

RaidersPlay commented 10 months ago

Might be that the servers are being overloaded at the moment. After a few retires, I got it to update via the eskom integration guid. But still waiting for the schedule to update.

Was giving this originally... image

adiweps commented 10 months ago

Under settings, devices and services, eskom integration (http://homeassistant.local:8123/config/integrations/integration/eskom_loadshedding)

I clicked "add entry", used the same API key as before, and then found my area in joburg which had "new" at the end.

I then deleted the old entry.

This worked.

This worked, thank you