Add Opower integration for getting electricity/gas usage and cost for many utilities#90489
Conversation
Lash-L
left a comment
There was a problem hiding this comment.
Just a few things I noticed, hope this helps!
|
I would also add into the description why only PG&E is supported and how future utilities could be added |
Updated. |
|
Just following up, @Lash-L any chance we can get this reviewed? :) |
|
@borski I'm not a core maintainer. My review doesn't matter for anything other than just trying to help out |
Fix exception caused by home-assistant#92095 {} is dict but the function expects a set so change it to set()
|
FYI, the underlying library now supports 8 utilities in US. The supported utilities serve over 15 million US households. |
|
That's awesome. If I can express a wish to add support https://www.duquesnelight.com which also supports Opower. The API is at https://duq.opower.com. |
|
Without access to an account I cannot support logging in to other utilities. You are on your own on that. Feel free to send me a PR to the underlying library https://github.com/tronikos/opower if you figure out how to programmatically login to your utility website and get the access token for opower. The current implementation for other utilities should help. |
|
👀 |
use last stat time instead of now when fetching recent usage/cost
MartinHjelmare
left a comment
There was a problem hiding this comment.
Please address the comments in a new PR. Thanks!
|
Thanks. Addressing your comments in #95763 |
Proposed change
Add Opower integration. More than 175 utilities use Opower. Currently the following utilities are supported:
According to wikipedia all the above utilities serve over 15 million households.
Anyone can update the underlying library to support logging in to their utility website and this integration should automatically pick up their utility after bumping the version.
Type of change
Additional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.To help with the load of incoming pull requests: