smartmeter_greenbutton icon indicating copy to clipboard operation
smartmeter_greenbutton copied to clipboard

How to add more providers?

Open ikrowni opened this issue 4 years ago • 6 comments

Hello i would like to add mid-carolina electric coop as a provider to use in the new home assistant energy monitoring dashboard. Could you provide some assistance in doing so?

ikrowni avatar Aug 06 '21 18:08 ikrowni

Do you know how to download the greenbutton data from your provider? The portland code uses selenium to log into the web page and click the relevant buttons to trigger a download. you will need to determine the process to download your data, and then work on scripting selenium to do it for you. If you get lucky, you won't need to deal with javascript and can find a direct link (probably with some authorization or cookie) and won't need selenium at all.

PhracturedBlue avatar Aug 06 '21 22:08 PhracturedBlue

@PhracturedBlue I'd be interested in adding support for conEdison. Any tips on how to get started recreating your dev environment?

d4wud avatar Jun 13 '22 15:06 d4wud

There isn't really much to my development environment. just pip install -r requirements.txt (I typically use a virtual environment)

The code was rewritten to use OAuth (no screen scraping anymore), however, you still need to manually figure out the right URLs and keys. Look at utilities/portland_general_electric.py for some ideas of what you need. Specifically I spend time in Chrome using the network tab in the Inspecter to identify useful calls. you are looking for URLs that pass json data back, and likely contain strings like token or refresh_token

If you can capture the network transactions of you logging in, I can probably help you identify the useful URLs (but make sure to remove any identifying information 1st)

PhracturedBlue avatar Jun 13 '22 17:06 PhracturedBlue

how long does it take for your gas meter to get published and then downloaded?

gbdavidx avatar Jul 16 '22 19:07 gbdavidx

I only have an electric meter. it uploads about data nightly. Sometimes there is additional lag.

PhracturedBlue avatar Jul 16 '22 19:07 PhracturedBlue

Synergy North in Ontario says it supports it, I can do the legwork if you can point me in the direction of what to ask for.....

Wyrez1 avatar May 07 '24 13:05 Wyrez1