PiotrMachowski / Home-Assistant-custom-components-Tauron-AMIplus

This sensor uses unofficial API to get energy usage and generation data from https://elicznik.tauron-dystrybucja.pl.
MIT License
138 stars 34 forks source link

Adjust script to new JSON data on Tauron site and ability to red G13 Tariff #10

Closed MrLukson closed 1 year ago

MrLukson commented 3 years ago

Hi Piotr,

I have also access to site E-Licznik and I use tariff G13 and adjust your script to calculate sum of 3 zones and then calculate the costs through zones and calculate sum of it. When listing the zones, I used a for loop. If you want, I can share with you my source code and you can provide in your git source ability to calculate also G13 tariff. I wait for an answer.

Have a nice day :)

Paweł

PiotrMachowski commented 3 years ago

Hi! Sure, it will be a good enhancement :)

MrLukson commented 3 years ago

For your information: I added also average for day, month and year and also predict for month and year. What doesn't work is the calculate zone because Tauron leave it blank, and json can't get it. Perhaps it will be supported later again.

Here is source code. I wait for your judgment :)

sensor.txt

MrLukson commented 3 years ago

What i don't adjust it is tariff G12, but if you want i can adjust it.

PiotrMachowski commented 3 years ago

Can you also attach raw JSONs returned by elicznik (especially for daily chart)? You can send them to my email, if you prefer: piotr.machowski.dev [at] gmail.com

MrLukson commented 3 years ago

Piotr, I sent an email to you with requested charts. In mail you have information about 'zone'.

MrLukson commented 3 years ago

I sent also charts from 27.12 where 'zone' is blank.

PiotrMachowski commented 3 years ago

Great! Thank you very much, I will take a look at them :)

MrLukson commented 3 years ago

Hi Piotr, did you see already my solution related to tariff G13? What do you think?

PiotrMachowski commented 3 years ago

Hi, recently I was working on Xiaomi integration, I hope to check it out soon

zawias commented 3 years ago

Hi, I also have a G13 tariff. I am looking forward to this feature.