wernerhp / ha.integration.load_shedding

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

City of Tshwane #18

Closed Jacquedebie closed 1 year ago

Jacquedebie commented 2 years ago

Hi, when I'm trying to add Load Shedding to HA it pops up the configuration where I need to search for my suburb. image When I search for my Suburb (Villeria in Pretoria) it doesn't pick it up.

It only show these results. image

Is there any place where I can Edit the Suburb id in code? To use my Suburb ID? Or am I using this wrong? http://loadshedding.eskom.co.za/LoadShedding/GetSurburbData/?pageSize=1000000&pageNum=1&searchTerm=Villeria&id=167 { "Results": [ { "id": "1027184", "text": "Villeria", "Tot": 0 } ], "Total": 1 }

Thx

wernerhp commented 2 years ago

I filter out suburbs where Tot is 0, because this means that it's not an Eskom Direct suburb and there are no schedules for it. You can confirm this by seeing that it's not available on https://loadshedding.eskom.co.za/

image image

Try searching for another suburbs that has the same schedule as yours.

wernerhp commented 2 years ago

Looks like City of Tshwane Schedules will need to be added to https://gitlab.com/wernerhp/load-shedding/-/issues/6

wernerhp commented 2 years ago

No guarantees when that will happen though. Happy to accept pull requests.

Pho3niX90 commented 2 years ago

I would be willing to add a $20 bounty on this, as I don't do python

wernerhp commented 2 years ago

Did some work on using EskomSePush API this weekend. Just need to clean things up a bit.

Pho3niX90 commented 2 years ago

Did some work on using EskomSePush API this weekend. Just need to clean things up a bit.

That is good news! I have tried all of the possible combinations of the other providers, and there is always a deviation from the actual pretoria schedules.

My alternative was just to get a loadshedding sensor, but prefer a software solution.

wernerhp commented 2 years ago

@Pho3niX90 Please try v1.0.0

McGuywer commented 1 year ago

I have installed this addon, I am also in Villieria, Pretoria. It works correctly now.

Jacquedebie commented 1 year ago

Works like a charm thx a lot!