vk2him / Enphase-Envoy-mqtt-json

Takes real time stream from Enphase Envoy and publishes to mqtt broker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting other data from enphase

FoliniC opened this issue · comments

Great! I'm using it in my ha...
I'm also interested in getting other data that comes from enphase. In particular panels data.
Did you plan to publish those data in the future?
Data that came from my endpoints (taken in the evening so no production from my 17 panels):

http:///home.json
{
...."alerts":.[
....],
...."comm":.{
........"acb":.{
............"level":.0,
............"num":.0
........},
........"level":.0,
........"nsrb":.{
............"level":.5,
............"num":.1
........},
........"num":.1,
........"pcu":.{
............"level":.0,
............"num":.0
........}
....},
...."current_date":."02/16/2023",
...."current_time":."21:43",
...."db_percent_full":."5",
...."db_size":."20.MB",
...."is_nonvoy":.false,
...."network":.{
........"ever_reported_to_enlighten":.true,
........"interfaces":.[
............{
................"carrier":.true,
................"dhcp":.false,
................"interface":."eth0",
................"ip":."192.168.0.2",
................"mac":."00:11:11:11:11:11",
................"signal_strength":.1,
................"signal_strength_max":.1,
................"type":."ethernet"
............},
............{
................"carrier":.false,
................"configured":.true,
................"dhcp":.true,
................"interface":."wlan0",
................"ip":.null,
................"mac":."48:11:11:11:11:11",
................"present":.true,
................"signal_strength":.0,
................"signal_strength_max":.0,
................"status":."connecting",
................"supported":.true,
................"type":."wifi"
............}
........],
........"last_enlighten_report_time":.1676579382,
........"primary_interface":."eth0",
........"web_comm":.true
....},
...."software_build_epoch":.1622651920,
...."tariff":."none",
...."timezone":."Europe/Rome",
...."update_status":."not-satisfied"
}
http:///ivp/meters

[
....{
........"eid":.704643328,
........"state":."enabled",
........"measurementType":."production",
........"phaseMode":."three",
........"phaseCount":.1,
........"meteringStatus":."normal",
........"statusFlags":.[]
....},
....{
........"eid":.704643584,
........"state":."disabled",
........"measurementType":."net-consumption",
........"phaseMode":."three",
........"phaseCount":.1,
........"meteringStatus":."normal",
........"statusFlags":.[]
....}
]
http:///inventory.json
[
....{
........"devices":.[
............{
................"admin_state":.2,
................"chaneid":.1627390225,
................"communicating":.false,
................"created_date":."1666614420",
................"dev_type":.1,
................"device_control":.[
....................{
........................"gficlearset":.false
....................}
................],
................"device_status":.[
...................."envoy.cond_flags.pcu_ctrl.dc-pwr-low",
...................."envoy.cond_flags.obs_strs.failure"
................],
................"img_load_date":."1676100827",
................"img_pnum_running":."520-00082-r01-v04.28.07",
................"installed":."1666614420",
................"last_rpt_date":."1676565516",
................"operating":.false,
................"part_num":."800-01714-r02",
................"producing":.false,
................"provisioned":.false,
................"ptpn":."540-00169-r01-v04.28.93",
................"serial_num":."122104011216"
............},

............{
................"admin_state":.2,
................"chaneid":.1627390481,
................"communicating":.false,
................"created_date":."1666614421",
................"dev_type":.1,
................"device_control":.[
....................{
........................"gficlearset":.false
....................}
................],
................"device_status":.[
...................."envoy.cond_flags.pcu_ctrl.dc-pwr-low",
...................."envoy.cond_flags.obs_strs.failure"
................],
................"img_load_date":."1676100827",
................"img_pnum_running":."520-00082-r01-v04.28.07",
................"installed":."1666614421",
................"last_rpt_date":."1676565517",
................"operating":.false,
................"part_num":."800-01714-r02",
................"producing":.false,
................"provisioned":.false,
................"ptpn":."540-00169-r01-v04.28.93",
................"serial_num":."122104015419"
............},
............{
................"admin_state":.2,
................"chaneid":.1627390737,
................"communicating":.false,
................"created_date":."1666614422",
................"dev_type":.1,
................"device_control":.[
....................{
........................"gficlearset":.false
....................}
................],
................"device_status":.[
...................."envoy.cond_flags.pcu_ctrl.dc-pwr-low",
...................."envoy.cond_flags.obs_strs.failure"
................],
................"img_load_date":."1676100827",
................"img_pnum_running":."520-00082-r01-v04.28.07",
................"installed":."1666614422",
................"last_rpt_date":."1676565519",
................"operating":.false,
................"part_num":."800-01714-r02",
................"producing":.false,
................"provisioned":.false,
................"ptpn":."540-00169-r01-v04.28.93",
................"serial_num":."122104011087"
............},
............{
................"admin_state":.2,
................"chaneid":.1627390993,
................"communicating":.false,
................"created_date":."1666614422",
................"dev_type":.1,
................"device_control":.[
....................{
........................"gficlearset":.false
....................}
................],
................"device_status":.[
...................."envoy.cond_flags.pcu_ctrl.dc-pwr-low",
...................."envoy.cond_flags.obs_strs.failure"
................],
................"img_load_date":."1676100827",
................"img_pnum_running":."520-00082-r01-v04.28.07",
................"installed":."1666614422",
................"last_rpt_date":."1676565521",
................"operating":.false,
................"part_num":."800-01714-r02",
................"producing":.false,
................"provisioned":.false,
................"ptpn":."540-00169-r01-v04.28.93",
................"serial_num":."122105019253"
............},
............{
................"admin_state":.2,
................"chaneid":.1627391249,
................"communicating":.false,
................"created_date":."1666614422",
................"dev_type":.1,
................"device_control":.[
....................{
........................"gficlearset":.false
....................}
................],
................"device_status":.[
...................."envoy.cond_flags.pcu_ctrl.dc-pwr-low",
...................."envoy.cond_flags.obs_strs.failure"
................],
................"img_load_date":."1676100827",
................"img_pnum_running":."520-00082-r01-v04.28.07",
................"installed":."1666614422",
................"last_rpt_date":."1676565522",
................"operating":.false,
................"part_num":."800-01714-r02",
................"producing":.false,
................"provisioned":.false,
................"ptpn":."540-00169-r01-v04.28.93",
................"serial_num":."122104011086"
............},
............{
................"admin_state":.2,
................"chaneid":.1627391505,
................"communicating":.false,
................"created_date":."1666614422",
................"dev_type":.1,
................"device_control":.[
....................{
........................"gficlearset":.false
....................}
................],
................"device_status":.[
...................."envoy.cond_flags.pcu_ctrl.dc-pwr-low",
...................."envoy.cond_flags.obs_strs.failure"
................],
................"img_load_date":."1676100827",
................"img_pnum_running":."520-00082-r01-v04.28.07",
................"installed":."1666614422",
................"last_rpt_date":."1676565524",
................"operating":.false,
................"part_num":."800-01714-r02",
................"producing":.false,
................"provisioned":.false,
................"ptpn":."540-00169-r01-v04.28.93",
................"serial_num":."122105019244"
............},
............{
................"admin_state":.2,
................"chaneid":.1627391761,
................"communicating":.false,
................"created_date":."1666614422",
................"dev_type":.1,
................"device_control":.[
....................{
........................"gficlearset":.false
....................}
................],
................"device_status":.[
...................."envoy.cond_flags.pcu_ctrl.dc-pwr-low",
...................."envoy.cond_flags.obs_strs.failure"
................],
................"img_load_date":."1676100827",
................"img_pnum_running":."520-00082-r01-v04.28.07",
................"installed":."1666614422",
................"last_rpt_date":."1676565527",
................"operating":.false,
................"part_num":."800-01714-r02",
................"producing":.false,
................"provisioned":.false,
................"ptpn":."540-00169-r01-v04.28.93",
................"serial_num":."122105019783"
............},
............{
................"admin_state":.2,
................"chaneid":.1627392017,
................"communicating":.false,
................"created_date":."1666614422",
................"dev_type":.1,
................"device_control":.[
....................{
........................"gficlearset":.false
....................}
................],
................"device_status":.[
...................."envoy.cond_flags.pcu_ctrl.dc-pwr-low",
...................."envoy.cond_flags.obs_strs.failure"
................],
................"img_load_date":."1676100827",
................"img_pnum_running":."520-00082-r01-v04.28.07",
................"installed":."1666614422",
................"last_rpt_date":."1676565528",
................"operating":.false,
................"part_num":."800-01714-r02",
................"producing":.false,
................"provisioned":.false,
................"ptpn":."540-00169-r01-v04.28.93",
................"serial_num":."122104015633"
............},
............{
................"admin_state":.2,
................"chaneid":.1627392273,
................"communicating":.false,
................"created_date":."1666614423",
................"dev_type":.1,
................"device_control":.[
....................{
........................"gficlearset":.false
....................}
................],
................"device_status":.[
...................."envoy.cond_flags.pcu_ctrl.dc-pwr-low",
...................."envoy.cond_flags.obs_strs.failure"
................],
................"img_load_date":."1676100827",
................"img_pnum_running":."520-00082-r01-v04.28.07",
................"installed":."1666614423",
................"last_rpt_date":."1676565530",
................"operating":.false,
................"part_num":."800-01714-r02",
................"producing":.false,
................"provisioned":.false,
................"ptpn":."540-00169-r01-v04.28.93",
................"serial_num":."122104011210"
............},
............{
................"admin_state":.2,
................"chaneid":.1627392529,
................"communicating":.false,
................"created_date":."1666614423",
................"dev_type":.1,
................"device_control":.[
....................{
........................"gficlearset":.false
....................}
................],
................"device_status":.[
...................."envoy.cond_flags.pcu_ctrl.dc-pwr-low",
...................."envoy.cond_flags.obs_strs.failure"
................],
................"img_load_date":."1676100827",
................"img_pnum_running":."520-00082-r01-v04.28.07",
................"installed":."1666614423",
................"last_rpt_date":."1676565533",
................"operating":.false,
................"part_num":."800-01714-r02",
................"producing":.false,
................"provisioned":.false,
................"ptpn":."540-00169-r01-v04.28.93",
................"serial_num":."122104015333"
............},
............{
................"admin_state":.2,
................"chaneid":.1627392785,
................"communicating":.false,
................"created_date":."1666614423",
................"dev_type":.1,
................"device_control":.[
....................{
........................"gficlearset":.false
....................}
................],
................"device_status":.[
...................."envoy.cond_flags.pcu_ctrl.dc-pwr-low",
...................."envoy.cond_flags.obs_strs.failure"
................],
................"img_load_date":."1676100827",
................"img_pnum_running":."520-00082-r01-v04.28.07",
................"installed":."1666614423",
................"last_rpt_date":."1676565534",
................"operating":.false,
................"part_num":."800-01714-r02",
................"producing":.false,
................"provisioned":.false,
................"ptpn":."540-00169-r01-v04.28.93",
................"serial_num":."122104015376"
............},
............{
................"admin_state":.2,
................"chaneid":.1627393041,
................"communicating":.false,
................"created_date":."1666614423",
................"dev_type":.1,
................"device_control":.[
....................{
........................"gficlearset":.false
....................}
................],
................"device_status":.[
...................."envoy.cond_flags.pcu_ctrl.dc-pwr-low",
...................."envoy.cond_flags.obs_strs.failure"
................],
................"img_load_date":."1676100827",
................"img_pnum_running":."520-00082-r01-v04.28.07",
................"installed":."1666614423",
................"last_rpt_date":."1676565536",
................"operating":.false,
................"part_num":."800-01714-r02",
................"producing":.false,
................"provisioned":.false,
................"ptpn":."540-00169-r01-v04.28.93",
................"serial_num":."122105017973"
............},
............{
................"admin_state":.2,
................"chaneid":.1627393297,
................"communicating":.false,
................"created_date":."1666614424",
................"dev_type":.1,
................"device_control":.[
....................{
........................"gficlearset":.false
....................}
................],
................"device_status":.[
...................."envoy.cond_flags.pcu_ctrl.dc-pwr-low",
...................."envoy.cond_flags.obs_strs.failure"
................],
................"img_load_date":."1676100827",
................"img_pnum_running":."520-00082-r01-v04.28.07",
................"installed":."1666614424",
................"last_rpt_date":."1676565539",
................"operating":.false,
................"part_num":."800-01714-r02",
................"producing":.false,
................"provisioned":.false,
................"ptpn":."540-00169-r01-v04.28.93",
................"serial_num":."122105019866"
............},
............{
................"admin_state":.2,
................"chaneid":.1627393553,
................"communicating":.false,
................"created_date":."1666614424",
................"dev_type":.1,
................"device_control":.[
....................{
........................"gficlearset":.false
....................}
................],
................"device_status":.[
...................."envoy.cond_flags.pcu_ctrl.dc-pwr-low",
...................."envoy.cond_flags.obs_strs.failure"
................],
................"img_load_date":."1676100827",
................"img_pnum_running":."520-00082-r01-v04.28.07",
................"installed":."1666614424",
................"last_rpt_date":."1676565539",
................"operating":.false,
................"part_num":."800-01714-r02",
................"producing":.false,
................"provisioned":.false,
................"ptpn":."540-00169-r01-v04.28.93",
................"serial_num":."122105017892"
............},
............{
................"admin_state":.2,
................"chaneid":.1627393809,
................"communicating":.false,
................"created_date":."1666614424",
................"dev_type":.1,
................"device_control":.[
....................{
........................"gficlearset":.false
....................}
................],
................"device_status":.[
...................."envoy.cond_flags.pcu_ctrl.dc-pwr-low",
...................."envoy.cond_flags.obs_strs.failure"
................],
................"img_load_date":."1676100827",
................"img_pnum_running":."520-00082-r01-v04.28.07",
................"installed":."1666614424",
................"last_rpt_date":."1676565542",
................"operating":.false,
................"part_num":."800-01714-r02",
................"producing":.false,
................"provisioned":.false,
................"ptpn":."540-00169-r01-v04.28.93",
................"serial_num":."122104011728"
............},
............{
................"admin_state":.2,
................"chaneid":.1627394065,
................"communicating":.false,
................"created_date":."1666614425",
................"dev_type":.1,
................"device_control":.[
....................{
........................"gficlearset":.false
....................}
................],
................"device_status":.[
...................."envoy.cond_flags.pcu_ctrl.dc-pwr-low",
...................."envoy.cond_flags.obs_strs.failure"
................],
................"img_load_date":."1676100827",
................"img_pnum_running":."520-00082-r01-v04.28.07",
................"installed":."1666614425",
................"last_rpt_date":."1676565544",
................"operating":.false,
................"part_num":."800-01714-r02",
................"producing":.false,
................"provisioned":.false,
................"ptpn":."540-00169-r01-v04.28.93",
................"serial_num":."122105017329"
............},
............{
................"admin_state":.2,
................"chaneid":.1627394321,
................"communicating":.false,
................"created_date":."1666614425",
................"dev_type":.1,
................"device_control":.[
....................{
........................"gficlearset":.false
....................}
................],
................"device_status":.[
...................."envoy.cond_flags.pcu_ctrl.dc-pwr-low",
...................."envoy.cond_flags.obs_strs.failure"
................],
................"img_load_date":."1676100827",
................"img_pnum_running":."520-00082-r01-v04.28.07",
................"installed":."1666614425",
................"last_rpt_date":."1676565545",
................"operating":.false,
................"part_num":."800-01714-r02",
................"producing":.false,
................"provisioned":.false,
................"ptpn":."540-00169-r01-v04.28.93",
................"serial_num":."122105017847"
............}
........],
........"type":."PCU"
....},
....{
........"devices":.[
........],
........"type":."ACB"
....},
....{
........"devices":.[
............{
................"admin_state":.2,
................"chaneid":.1811939601,
................"communicating":.true,
................"created_date":."1666614425",
................"dev_type":.12,
................"device_control":.[
....................{
........................"gficlearset":.false
....................}
................],
................"device_status":.[
...................."envoy.global.ok"
................],
................"img_load_date":."1625075612",
................"img_pnum_running":."520-01794-r01-v01.02.19",
................"installed":."1666614425",
................"last_rpt_date":."1676580366",
................"line1-connected":.true,
................"line2-connected":.false,
................"line3-connected":.false,
................"line-count":.3,
................"operating":.true,
................"part_num":."800-00606-r02",
................"producing":.false,
................"provisioned":.true,
................"ptpn":."540-01794-r01-v01.02.19",
................"reason":."ok",
................"reason_code":.-1,
................"relay":."closed",
................"serial_num":."122139011111"
............}
........],
........"type":."NSRB"
....}
]

The built-in Enphase integration provides per panel data if you use the installer username/password when you set it up. It works well, I can see all 18 of my panels with this. https://www.home-assistant.io/integrations/enphase_envoy/
Image 029

I know that it's possible from the integration, but you get only data every few minutes. I want to check every few seconds. Doing this could reveal "peak" anomaly (like the one I discovered on Q-Relay)

I'm not aware of an endpoint that displays per panel data any quicker than once per 15 minutes - The one I know is this using the installer username. http://your-envoy-ip/api/v1/production/inverters
I believe that url is what the inbuilt integration uses.
This page shows the other endpoints available, there's no other for individual inverters.
https://thecomputerperson.wordpress.com/2016/08/03/enphase-envoy-s-data-scraping/