tronikos / opower-hacs

HACS integration for PG&E via Opower
10 stars 2 forks source link

Costs not populating for PG&E #12

Closed brad-newman closed 1 year ago

brad-newman commented 1 year ago

Usage and estimated usage works, but other fields are not. IMG_2596

tronikos commented 1 year ago

These sensors are populated by the projected bill see image

What data do you see there? In the network tab of your browser developer tools, can you locate the following request:

https://pge.opower.com/ei/edge/apis/bill-forecast-cws-v1/cws/pge/customers/XXX/combined-forecast and inspect its response?

Do you see cost data in the historical energy dashboard?

brad-newman commented 1 year ago

To clarify, as you can see in the image the projected and current usage amounts are being populated. The costs are not. But since you asked, here's what I see on that page. Note that on other PG&E pages like "Energy costs", the data is populating. IMG_2606

tronikos commented 1 year ago

Can you attach the response of https://pge.opower.com/ei/edge/apis/bill-forecast-cws-v1/cws/pge/customers/XXX/combined-forecast where XXX is your customer id. You can find this request in the network tab of your browser developer tools.

brad-newman commented 1 year ago
{"error":{"details":"HTTP 404 Not Found (1400ce3e-5a54-4e0b-8e39-54ba8129d51e)"}}

oddly the account number pulled into HA is not the same as the one that appears on my PG&E account page. tried both in the URL you provided and same response.

tronikos commented 1 year ago

Please use the official integration and open a new issue. The version from this repository is outdated and is missing many fixes.