Enphase Envoy-S Solar Power Plugin (with Panel Monitoring)

Posted on
Wed Dec 21, 2016 6:24 pm
GlennNZ offline
User avatar
Posts: 1555
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: Enphase Envoy-S Solar Power Plugin (with Panel Monitorin

Bollar wrote:
GlennNZ wrote:
Bollar wrote:
Neat. I wonder if it works on my legacy Envoy? I'll play with it over the weekend.


Cool,
Let me know how you go.

Yeah, no luck. the local API on my Envoy is quite limited and it doesn't even respond to your plugin.


What model?
The local API on mine is very limited as well - the plugin doesn't use the documented API - rather than undocumented javascript links/json output (hence the panel info)

Glenn

Posted on
Wed Dec 21, 2016 6:27 pm
Bollar offline
Posts: 528
Joined: Aug 11, 2013

Re: Enphase Envoy-S Solar Power Plugin (with Panel Monitorin


Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Posted on
Wed Dec 21, 2016 6:29 pm
GlennNZ offline
User avatar
Posts: 1555
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: Enphase Envoy-S Solar Power Plugin (with Panel Monitorin

Bollar wrote:


Do you have web page access? (seems so some reading)

The basic info on Envoy-S is http://IP/production.json
But if web access - Chrome Debug will point to other links as well (googling as I type)

Glenn

Posted on
Wed Dec 21, 2016 6:33 pm
Bollar offline
Posts: 528
Joined: Aug 11, 2013

Re: Enphase Envoy-S Solar Power Plugin (with Panel Monitorin

GlennNZ wrote:
Bollar wrote:


Do you have web page access? (seems so some reading)

The basic info on Envoy-S is http://IP/production.json
But if web access - Chrome Debug will point to other links as well (googling as I type)

Glenn

Yes, here's a script a wrote a couple of years ago:
Code: Select all
import urllib2
import simplejson

f = urllib2.urlopen('http://envoy.bollar.com/api/v1/production')
json_string = f.read()
parsed_json = simplejson.loads(json_string)

enphaseCurrentPower = parsed_json['wattsNow']
enphaseEnergyLifetime = parsed_json['wattHoursLifetime']
enphaseEnergyToday = parsed_json['wattHoursToday']
enphaseEnergyWeek = parsed_json['wattHoursSevenDays']

indigo.variable.updateValue(1404241247, value=str(enphaseCurrentPower))
indigo.variable.updateValue(1837054298, value=str(enphaseEnergyLifetime))
indigo.variable.updateValue(1329850163, value=str(enphaseEnergyToday))
indigo.variable.updateValue(1342408763, value=str(enphaseEnergyWeek))

f.close()


And the results from the raw call:

Code: Select all
{
  "wattHoursToday": 32167,
  "wattHoursSevenDays": 234269,
  "wattHoursLifetime": 66336922,
  "wattsNow": 0
}


Like I said. Limited. I switched to getting my data from the online version of the API.

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Posted on
Wed Dec 21, 2016 6:37 pm
GlennNZ offline
User avatar
Posts: 1555
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: Enphase Envoy-S Solar Power Plugin (with Panel Monitorin

Bollar wrote:
GlennNZ wrote:
Bollar wrote:


Do you have web page access? (seems so some reading)

The basic info on Envoy-S is http://IP/production.json
But if web access - Chrome Debug will point to other links as well (googling as I type)

Glenn

Yes, here's a script a wrote a couple of years ago:
Code: Select all
import urllib2
import simplejson

f = urllib2.urlopen('http://envoy.bollar.com/api/v1/production')
json_string = f.read()
parsed_json = simplejson.loads(json_string)

enphaseCurrentPower = parsed_json['wattsNow']
enphaseEnergyLifetime = parsed_json['wattHoursLifetime']
enphaseEnergyToday = parsed_json['wattHoursToday']
enphaseEnergyWeek = parsed_json['wattHoursSevenDays']

indigo.variable.updateValue(1404241247, value=str(enphaseCurrentPower))
indigo.variable.updateValue(1837054298, value=str(enphaseEnergyLifetime))
indigo.variable.updateValue(1329850163, value=str(enphaseEnergyToday))
indigo.variable.updateValue(1342408763, value=str(enphaseEnergyWeek))

f.close()


And the results from the raw call:

Code: Select all
{
  "wattHoursToday": 32167,
  "wattHoursSevenDays": 234269,
  "wattHoursLifetime": 66336922,
  "wattsNow": 0
}


Like I said. Limited. I switched to getting my data from the online version of the API.


My version has the same result from that query - but I don't use that API result - because it is so limited.

There is far much more info available through the non-API - straight to what they web client uses such as production.json result above, or
http://ip/inventory.json
&
http://IP/backbone/application.js?version=04.02.43
(for javascript app with all the links buried deep)

Presumably you get nothing with these calls?

Glenn

Posted on
Wed Dec 21, 2016 6:57 pm
Bollar offline
Posts: 528
Joined: Aug 11, 2013

Re: Enphase Envoy-S Solar Power Plugin (with Panel Monitorin

GlennNZ wrote:
Bollar wrote:
GlennNZ wrote:
Bollar wrote:


Do you have web page access? (seems so some reading)

The basic info on Envoy-S is http://IP/production.json
But if web access - Chrome Debug will point to other links as well (googling as I type)

Glenn

Yes, here's a script a wrote a couple of years ago:
Code: Select all
import urllib2
import simplejson

f = urllib2.urlopen('http://envoy.bollar.com/api/v1/production')
json_string = f.read()
parsed_json = simplejson.loads(json_string)

enphaseCurrentPower = parsed_json['wattsNow']
enphaseEnergyLifetime = parsed_json['wattHoursLifetime']
enphaseEnergyToday = parsed_json['wattHoursToday']
enphaseEnergyWeek = parsed_json['wattHoursSevenDays']

indigo.variable.updateValue(1404241247, value=str(enphaseCurrentPower))
indigo.variable.updateValue(1837054298, value=str(enphaseEnergyLifetime))
indigo.variable.updateValue(1329850163, value=str(enphaseEnergyToday))
indigo.variable.updateValue(1342408763, value=str(enphaseEnergyWeek))

f.close()


And the results from the raw call:

Code: Select all
{
  "wattHoursToday": 32167,
  "wattHoursSevenDays": 234269,
  "wattHoursLifetime": 66336922,
  "wattsNow": 0
}


Like I said. Limited. I switched to getting my data from the online version of the API.


My version has the same result from that query - but I don't use that API result - because it is so limited.

There is far much more info available through the non-API - straight to what they web client uses such as production.json result above, or
http://ip/inventory.json
&
http://IP/backbone/application.js?version=04.02.43
(for javascript app with all the links buried deep)

Presumably you get nothing with these calls?

I get nothing (a 404) from the first one, even if I try the api/v1 path but a whole bunch of jquery data from the second.

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Posted on
Wed Dec 21, 2016 6:58 pm
GlennNZ offline
User avatar
Posts: 1555
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: Enphase Envoy-S Solar Power Plugin (with Panel Monitorin

Can you post me the javascript - probably zip and attach.
Its essentially the web code for running the page - and will in there somewhere have the pages with the raw data.

Glenn

Posted on
Wed Dec 21, 2016 7:27 pm
Bollar offline
Posts: 528
Joined: Aug 11, 2013

Re: Enphase Envoy-S Solar Power Plugin (with Panel Monitorin

GlennNZ wrote:
Can you post me the javascript - probably zip and attach.
Its essentially the web code for running the page - and will in there somewhere have the pages with the raw data.

Sure, here you go. It has a .txt extension, but it's a .zip
Attachments
Enphase Local API jquery.txt
(174.12 KiB) Downloaded 176 times

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Posted on
Wed Dec 21, 2016 7:51 pm
GlennNZ offline
User avatar
Posts: 1555
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: Enphase Envoy-S Solar Power Plugin (with Panel Monitorin

Bollar wrote:
GlennNZ wrote:
Can you post me the javascript - probably zip and attach.
Its essentially the web code for running the page - and will in there somewhere have the pages with the raw data.

Sure, here you go. It has a .txt extension, but it's a .zip


Cool
Thanks
Will see what I can find - when back on computer
Glenn


Sent from my iPhone using Tapatalk

Posted on
Wed Dec 21, 2016 8:15 pm
GlennNZ offline
User avatar
Posts: 1555
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: Enphase Envoy-S Solar Power Plugin (with Panel Monitorin

Bollar wrote:
GlennNZ wrote:
Can you post me the javascript - probably zip and attach.
Its essentially the web code for running the page - and will in there somewhere have the pages with the raw data.

Sure, here you go. It has a .txt extension, but it's a .zip


Looking Now (and will edit post) Hard to tell if software is for multiple versions though.
But...

Try
http://IP/inv
http://IP/
http://IP/api/v1/production/inverters
(this should be panel ouput)
might need password
http://ivp/tpm/tpmstatus

Think that is about it -- if they work then you are missing more detailed consumption/production info - but rest depends on output of /inv and /api/v1/production/inverters (if they are similar then could add another device model for this device - and hopefully still get per panel output)

Let me know how you go.

Glenn


Glenn

Posted on
Wed Dec 21, 2016 8:42 pm
Bollar offline
Posts: 528
Joined: Aug 11, 2013

Re: Enphase Envoy-S Solar Power Plugin (with Panel Monitorin

GlennNZ wrote:
Bollar wrote:
GlennNZ wrote:
Can you post me the javascript - probably zip and attach.
Its essentially the web code for running the page - and will in there somewhere have the pages with the raw data.

Sure, here you go. It has a .txt extension, but it's a .zip


Looking Now (and will edit post) Hard to tell if software is for multiple versions though.
But...

Try
http://IP/inv
http://IP/
http://IP/api/v1/production/inverters
(this should be panel ouput)
might need password
http://ivp/tpm/tpmstatus

Think that is about it -- if they work then you are missing more detailed consumption/production info - but rest depends on output of /inv and /api/v1/production/inverters (if they are similar then could add another device model for this device - and hopefully still get per panel output)

Let me know how you go.

Interesting - the password on the two pages that require passwords isn't known to me - I left it at admin/admin and confirmed that I can get into the administration page. I'll have to see if someone has published it somewhere.

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Posted on
Wed Dec 21, 2016 9:15 pm
GlennNZ offline
User avatar
Posts: 1555
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: Enphase Envoy-S Solar Power Plugin (with Panel Monitorin

Password for new system is
envoy (all lowercase)
and

last 6 digits of serial number

Glenn

Posted on
Wed Dec 21, 2016 9:46 pm
Bollar offline
Posts: 528
Joined: Aug 11, 2013

Re: Enphase Envoy-S Solar Power Plugin (with Panel Monitorin

GlennNZ wrote:
Password for new system is
envoy (all lowercase)
and

last 6 digits of serial number

No, that and variations I could think of didn't work - will hunt around.

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Posted on
Thu Dec 22, 2016 9:30 am
midd offline
Posts: 372
Joined: Apr 18, 2010

Re: Enphase Envoy-S Solar Power Plugin (with Panel Monitorin

I must have the Envoy legacy module too because the Envoy in my device column is saying unknown.

Indigo 7, Monterey (12.1) on a 2009 Mac Pro..

Posted on
Thu Dec 22, 2016 9:58 am
Bollar offline
Posts: 528
Joined: Aug 11, 2013

Re: Enphase Envoy-S Solar Power Plugin (with Panel Monitorin

midd wrote:
I must have the Envoy legacy module too because the Envoy in my device column is saying unknown.

The legacy Envoy looks kind of like a pill - rectangular with rounded edges. The Envoy-S is definitely rectangular with sharp edges.

I'd consider upgrading, but it's $500.

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Who is online

Users browsing this forum: No registered users and 2 guests