tronikos / opower

A Python library for getting historical and forecasted usage/cost from utilities that use opower.com such as PG&E
Apache License 2.0
65 stars 59 forks source link

implement PSE support #1

Closed chen-ye closed 1 year ago

chen-ye commented 1 year ago

nice project! just moved to the seattle area and immediately had a similar idea. I managed to implement support for PSE.

unfortunately the PSE auth system is way weirder, so it depends on parsing html to get the login and bearer tokens (they actually get delivered as hidden input values and as part of an inline script, respectively), however once auth is handled, the rest of the library seems to work in exactly the same way

tronikos commented 1 year ago

Could you please take a look at https://github.com/home-assistant/core/issues/97815? You likely need a fix similar to https://github.com/tronikos/opower/commit/1690f3e2d66f3dbd0aeddb2826a745bac939241a