Home-Assistant-custom-components-Tauron-AMIplus icon indicating copy to clipboard operation
Home-Assistant-custom-components-Tauron-AMIplus copied to clipboard

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

Open MrLukson opened this issue 4 years ago • 10 comments

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ł

MrLukson avatar Dec 30 '20 14:12 MrLukson

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

PiotrMachowski avatar Dec 30 '20 14:12 PiotrMachowski

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 avatar Dec 30 '20 14:12 MrLukson

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

MrLukson avatar Dec 30 '20 14:12 MrLukson

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

PiotrMachowski avatar Dec 30 '20 15:12 PiotrMachowski

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

MrLukson avatar Dec 30 '20 19:12 MrLukson

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

MrLukson avatar Dec 30 '20 19:12 MrLukson

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

PiotrMachowski avatar Dec 31 '20 01:12 PiotrMachowski

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

MrLukson avatar Jan 16 '21 09:01 MrLukson

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

PiotrMachowski avatar Jan 16 '21 13:01 PiotrMachowski

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

zawias avatar Mar 22 '21 17:03 zawias