-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consumption values wrong when another hybrid inverter is present in the system #44
Comments
If your system is < v7 could you send me the output of `` `` |
Possibly good to get both when exporting power and not exporting power outputs |
1) home.json
{"software_build_epoch":1607591706,"is_nonvoy":false,"db_size":"3 MB","db_percent_full":"0","timezone":"US/Pacific","current_date":"01/08/2023","current_time":"12:51","network":{"web_comm":true,"ever_reported_to_enlighten":true,"last_enlighten_report_time":1673210650,"primary_interface":"wlan0","interfaces":[{"type":"ethernet","interface":"eth0","mac":"00:1D:C0:B0:4F:0D","dhcp":true,"ip":"169.254.120.1","signal_strength":0,"signal_strength_max":1,"carrier":false},{"signal_strength":4,"signal_strength_max":5,"type":"wifi","interface":"wlan0","mac":"B0:B1:13:7F:8C:F0","dhcp":true,"ip":"192.168.10.117","carrier":true,"supported":true,"present":true,"configured":true,"status":"connected"}]},"tariff":"none","comm":{"num":16,"level":5,"pcu":{"num":16,"level":5},"acb":{"num":0,"level":0},"nsrb":{"num":0,"level":0}},"alerts":[],"update_status":"not-satisfied"}
2) inventory
[{"type":"PCU","devices":[{"part_num":"800-00625-r02","installed":"1672080043","serial_num":"202126086069","device_status":["envoy.global.ok"],"last_rpt_date":"1673210702","admin_state":1,"dev_type":1,"created_date":"1672080043","img_load_date":"1583340412","img_pnum_running":"520-00082-r01-v04.18.02","ptpn":"540-00142-r01-v04.18.01","chaneid":1627390225,"device_control":[{"gficlearset":false}],"producing":true,"communicating":true,"provisioned":true,"operating":true},{"part_num":"800-00625-r02","installed":"1672080052","serial_num":"202126086070","device_status":["envoy.global.ok"],"last_rpt_date":"1673210704","admin_state":1,"dev_type":1,"created_date":"1672080052","img_load_date":"1583340412","img_pnum_running":"520-00082-r01-v04.18.02","ptpn":"540-00142-r01-v04.18.01","chaneid":1627390481,"device_control":[{"gficlearset":false}],"producing":true,"communicating":true,"provisioned":true,"operating":true},{"part_num":"800-00625-r02","installed":"1672261375","serial_num":"202126086899","device_status":["envoy.global.ok"],"last_rpt_date":"1673210707","admin_state":1,"dev_type":1,"created_date":"1672261375","img_load_date":"1673110844","img_pnum_running":"520-00082-r01-v04.28.07","ptpn":"540-00142-r01-v04.28.03","chaneid":1627390737,"device_control":[{"gficlearset":false}],"producing":true,"communicating":true,"provisioned":true,"operating":true},{"part_num":"800-00625-r02","installed":"1672261384","serial_num":"202126087006","device_status":["envoy.global.ok"],"last_rpt_date":"1673210708","admin_state":1,"dev_type":1,"created_date":"1672261384","img_load_date":"1673110844","img_pnum_running":"520-00082-r01-v04.28.07","ptpn":"540-00142-r01-v04.28.03","chaneid":1627390993,"device_control":[{"gficlearset":false}],"producing":true,"communicating":true,"provisioned":true,"operating":true},{"part_num":"800-00625-r02","installed":"1672273052","serial_num":"202126013634","device_status":["envoy.global.ok"],"last_rpt_date":"1673210710","admin_state":1,"dev_type":1,"created_date":"1672273052","img_load_date":"1673110844","img_pnum_running":"520-00082-r01-v04.28.07","ptpn":"540-00142-r01-v04.28.03","chaneid":1627391249,"device_control":[{"gficlearset":false}],"producing":true,"communicating":true,"provisioned":true,"operating":true},{"part_num":"800-00625-r02","installed":"1672278753","serial_num":"202126084764","device_status":["envoy.global.ok"],"last_rpt_date":"1673210713","admin_state":2,"dev_type":1,"created_date":"1672278753","img_load_date":"1673110844","img_pnum_running":"520-00082-r01-v04.28.07","ptpn":"540-00142-r01-v04.28.03","chaneid":1627391505,"device_control":[{"gficlearset":false}],"producing":true,"communicating":true,"provisioned":true,"operating":true},{"part_num":"800-00625-r02","installed":"1672278756","serial_num":"202126085949","device_status":["envoy.global.ok"],"last_rpt_date":"1673210714","admin_state":2,"dev_type":1,"created_date":"1672278756","img_load_date":"1673110844","img_pnum_running":"520-00082-r01-v04.28.07","ptpn":"540-00142-r01-v04.28.03","chaneid":1627391761,"device_control":[{"gficlearset":false}],"producing":true,"communicating":true,"provisioned":true,"operating":true},{"part_num":"800-00625-r02","installed":"1672278757","serial_num":"202126086329","device_status":["envoy.global.ok"],"last_rpt_date":"1673210716","admin_state":2,"dev_type":1,"created_date":"1672278757","img_load_date":"1673110844","img_pnum_running":"520-00082-r01-v04.28.07","ptpn":"540-00142-r01-v04.28.03","chaneid":1627392017,"device_control":[{"gficlearset":false}],"producing":true,"communicating":true,"provisioned":true,"operating":true},{"part_num":"800-00625-r02","installed":"1672278758","serial_num":"202126047231","device_status":["envoy.global.ok"],"last_rpt_date":"1673210719","admin_state":2,"dev_type":1,"created_date":"1672278758","img_load_date":"1673110844","img_pnum_running":"520-00082-r01-v04.28.07","ptpn":"540-00142-r01-v04.28.03","chaneid":1627392273,"device_control":[{"gficlearset":false}],"producing":true,"communicating":true,"provisioned":true,"operating":true},{"part_num":"800-00625-r02","installed":"1672278759","serial_num":"202126086883","device_status":["envoy.global.ok"],"last_rpt_date":"1673210719","admin_state":2,"dev_type":1,"created_date":"1672278759","img_load_date":"1673110844","img_pnum_running":"520-00082-r01-v04.28.07","ptpn":"540-00142-r01-v04.28.03","chaneid":1627392529,"device_control":[{"gficlearset":false}],"producing":true,"communicating":true,"provisioned":true,"operating":true},{"part_num":"800-00625-r02","installed":"1672279040","serial_num":"202126084833","device_status":["envoy.global.ok"],"last_rpt_date":"1673210722","admin_state":2,"dev_type":1,"created_date":"1672279040","img_load_date":"1673110844","img_pnum_running":"520-00082-r01-v04.28.07","ptpn":"540-00142-r01-v04.28.03","chaneid":1627392785,"device_control":[{"gficlearset":false}],"producing":true,"communicating":true,"provisioned":true,"operating":true},{"part_num":"800-00625-r02","installed":"1672279042","serial_num":"202126081683","device_status":["envoy.global.ok"],"last_rpt_date":"1673210724","admin_state":2,"dev_type":1,"created_date":"1672279042","img_load_date":"1673110844","img_pnum_running":"520-00082-r01-v04.28.07","ptpn":"540-00142-r01-v04.28.03","chaneid":1627393041,"device_control":[{"gficlearset":false}],"producing":true,"communicating":true,"provisioned":true,"operating":true},{"part_num":"800-00625-r02","installed":"1672279043","serial_num":"202126086675","device_status":["envoy.global.ok"],"last_rpt_date":"1673210725","admin_state":2,"dev_type":1,"created_date":"1672279043","img_load_date":"1673110844","img_pnum_running":"520-00082-r01-v04.28.07","ptpn":"540-00142-r01-v04.28.03","chaneid":1627393297,"device_control":[{"gficlearset":false}],"producing":true,"communicating":true,"provisioned":true,"operating":true},{"part_num":"800-00625-r02","installed":"1672279044","serial_num":"202126082741","device_status":["envoy.global.ok"],"last_rpt_date":"1673210728","admin_state":2,"dev_type":1,"created_date":"1672279044","img_load_date":"1583340412","img_pnum_running":"520-00082-r01-v04.18.02","ptpn":"540-00142-r01-v04.18.01","chaneid":1627393553,"device_control":[{"gficlearset":false}],"producing":true,"communicating":true,"provisioned":true,"operating":true},{"part_num":"800-00625-r02","installed":"1672279046","serial_num":"202126087293","device_status":["envoy.global.ok"],"last_rpt_date":"1673210731","admin_state":2,"dev_type":1,"created_date":"1672279046","img_load_date":"1673110844","img_pnum_running":"520-00082-r01-v04.28.07","ptpn":"540-00142-r01-v04.28.03","chaneid":1627393809,"device_control":[{"gficlearset":false}],"producing":true,"communicating":true,"provisioned":true,"operating":true},{"part_num":"800-00625-r02","installed":"1672279048","serial_num":"202126028004","device_status":["envoy.global.ok"],"last_rpt_date":"1673210731","admin_state":2,"dev_type":1,"created_date":"1672279048","img_load_date":"1673110844","img_pnum_running":"520-00082-r01-v04.28.07","ptpn":"540-00142-r01-v04.28.03","chaneid":1627394065,"device_control":[{"gficlearset":false}],"producing":true,"communicating":true,"provisioned":true,"operating":true},{"part_num":"800-00625-r02","installed":"1672279050","serial_num":"202125045375","device_status":["envoy.cond_flags.obs_strs.failure"],"last_rpt_date":"1673040683","admin_state":2,"dev_type":1,"created_date":"1672279050","img_load_date":"1583340412","img_pnum_running":"520-00082-r01-v04.18.02","ptpn":"540-00142-r01-v04.18.01","chaneid":1627394321,"device_control":[{"gficlearset":false}],"producing":false,"communicating":false,"provisioned":false,"operating":false},{"part_num":"800-00625-r02","installed":"1673049556","serial_num":"202126085193","device_status":["envoy.cond_flags.obs_strs.failure"],"last_rpt_date":"0","admin_state":2,"dev_type":1,"created_date":"1673049556","img_load_date":"0","img_pnum_running":"undetermined","ptpn":"undetermined","chaneid":1627394577,"device_control":[{"gficlearset":false}],"producing":false,"communicating":false,"provisioned":false,"operating":false},{"part_num":"800-00625-r02","installed":"1673049564","serial_num":"202126086417","device_status":["envoy.cond_flags.obs_strs.failure"],"last_rpt_date":"0","admin_state":2,"dev_type":1,"created_date":"1673049564","img_load_date":"0","img_pnum_running":"undetermined","ptpn":"undetermined","chaneid":1627394833,"device_control":[{"gficlearset":false}],"producing":false,"communicating":false,"provisioned":false,"operating":false}]},{"type":"ACB","devices":[]},{"type":"NSRB","devices":[]}]
3)
{"production":[{"type":"inverters","activeCount":19,"readingTime":1673210731,"wNow":2216,"whLifetime":47971},{"type":"eim","activeCount":1,"measurementType":"production","readingTime":1673211225,"wNow":1288.056,"whLifetime":48718.422,"varhLeadLifetime":10171.712,"varhLagLifetime":81871.231,"vahLifetime":130488.498,"rmsCurrent":10.4,"rmsVoltage":248.184,"reactPwr":-77.731,"apprntPwr":1292.805,"pwrFactor":1.0,"whToday":6484.422,"whLastSevenDays":42857.422,"vahToday":9338.498,"varhLeadToday":872.712,"varhLagToday":2744.231,"lines":[{"wNow":642.398,"whLifetime":24320.717,"varhLeadLifetime":5128.858,"varhLagLifetime":40909.442,"vahLifetime":65144.986,"rmsCurrent":5.198,"rmsVoltage":123.879,"reactPwr":-40.559,"apprntPwr":644.977,"pwrFactor":1.0,"whToday":3234.717,"whLastSevenDays":21388.717,"vahToday":4657.986,"varhLeadToday":443.858,"varhLagToday":1369.442},{"wNow":645.658,"whLifetime":24397.704,"varhLeadLifetime":5042.854,"varhLagLifetime":40961.789,"vahLifetime":65343.512,"rmsCurrent":5.203,"rmsVoltage":124.305,"reactPwr":-37.172,"apprntPwr":647.828,"pwrFactor":1.0,"whToday":3249.704,"whLastSevenDays":21468.704,"vahToday":4680.512,"varhLeadToday":428.854,"varhLagToday":1374.789}]}],"consumption":[{"type":"eim","activeCount":1,"measurementType":"total-consumption","readingTime":1673211225,"wNow":-266.115,"whLifetime":38361.565,"varhLeadLifetime":36369.872,"varhLagLifetime":83611.018,"vahLifetime":59059.485,"rmsCurrent":-2.498,"rmsVoltage":248.23,"reactPwr":-56.054,"apprntPwr":-620.173,"pwrFactor":-1.0,"whToday":8154.0,"whLastSevenDays":37502.0,"vahToday":17155.485,"varhLeadToday":6879.872,"varhLagToday":3786.018,"lines":[{"wNow":105.993,"whLifetime":20557.485,"varhLeadLifetime":18244.186,"varhLagLifetime":41361.691,"vahLifetime":29093.147,"rmsCurrent":0.552,"rmsVoltage":123.886,"reactPwr":-104.291,"apprntPwr":68.372,"pwrFactor":1.0,"whToday":7048.0,"whLastSevenDays":20074.0,"vahToday":10089.147,"varhLeadToday":4462.186,"varhLagToday":1571.691},{"wNow":-372.108,"whLifetime":17804.08,"varhLeadLifetime":18125.686,"varhLagLifetime":42249.327,"vahLifetime":29966.339,"rmsCurrent":-3.05,"rmsVoltage":124.344,"reactPwr":48.237,"apprntPwr":-379.283,"pwrFactor":-1.0,"whToday":1106.0,"whLastSevenDays":17428.0,"vahToday":7066.339,"varhLeadToday":2417.686,"varhLagToday":2214.327}]},{"type":"eim","activeCount":1,"measurementType":"net-consumption","readingTime":1673211225,"wNow":-1554.171,"whLifetime":36121.124,"varhLeadLifetime":26198.161,"varhLagLifetime":1739.787,"vahLifetime":59059.485,"rmsCurrent":12.899,"rmsVoltage":248.276,"reactPwr":-133.785,"apprntPwr":1603.443,"pwrFactor":-0.97,"whToday":0,"whLastSevenDays":0,"vahToday":0,"varhLeadToday":0,"varhLagToday":0,"lines":[{"wNow":-536.405,"whLifetime":18651.022,"varhLeadLifetime":13115.328,"varhLagLifetime":452.249,"vahLifetime":29093.147,"rmsCurrent":4.646,"rmsVoltage":123.893,"reactPwr":-144.85,"apprntPwr":578.562,"pwrFactor":-0.92,"whToday":0,"whLastSevenDays":0,"vahToday":0,"varhLeadToday":0,"varhLagToday":0},{"wNow":-1017.766,"whLifetime":17470.102,"varhLeadLifetime":13082.832,"varhLagLifetime":1287.538,"vahLifetime":29966.339,"rmsCurrent":8.253,"rmsVoltage":124.384,"reactPwr":11.065,"apprntPwr":1024.881,"pwrFactor":-0.99,"whToday":0,"whLastSevenDays":0,"vahToday":0,"varhLeadToday":0,"varhLagToday":0}]}],"storage":[{"type":"acb","activeCount":0,"readingTime":0,"wNow":0,"whNow":0,"state":"idle"}]}
4)
1673211285 202114068541 800-00655-r09 D5.0.55 4c8675 0 1 true 500-00001-r01 02.00.00950 500-00011-r01 04.01.15 1905ae 590-00019-r01 02.00.01 1f421b 500-00002-r01 05.00.554f2662 500-00004-r01 01.02.293 9cf065 500-00008-r01 02.01.22 2faa48 500-00010-r0105.00.02 4fe435 500-00013-r01 03.02.07 276642 500-00012-r01 02.02.00 8969f6 500-00016-r01 02.00.00 54a6dc 1607601617 release-5.0.x-106-Dec-10-20-02:30:12
…Sent from my iPhone
On Jan 8, 2023, at 12:15 PM, dlmcpaul ***@***.***> wrote:
Possibly good to get both when exporting power and not exporting power outputs
—
Reply to this email directly, view it on GitHub<#44 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAX4VIMBYJKLJ4KFYEPJFCLWRMN7PANCNFSM6AAAAAATUWCKII>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Thanks I will see if that helps me understand what is happening. Be aware that it may be something special in how your installer wired things up |
Ok, so both your net consumption and total consumption measuring devices in the envoy are returning negative consumption values. For the point in time that the data was captured you had approx Not sure how to interpret that. The basic calculations I do is read production and consumption then export is when production > consumption and import is when consumption > production. consumption should not go negative. You mention you have 2 systems connected up. Since I cannot read the other system then I doubt I can create accurate stats. I have a few choices here, I could zero out negative consumption or treat negative as positive. maybe but I really don't know why consumption is negative. |
So I installed the system myself and i'm the installer. I made sure to check the CTs and it is readying correctly on L1 and L2. The hybrid inverter I have with batteries also has solar so it can be generating solar and pushing back out onto the grid.
I understand it is hard to figure out what the house consumption is because there is another system at play here so maybe an option for just display Gird Import/Export is fine. It will just tell me how much power I am importing or exporting at any given time is sufficient
Cheers,
Kevin
…________________________________
From: dlmcpaul ***@***.***>
Sent: Sunday, January 8, 2023 5:28 PM
To: dlmcpaul/EnphaseCollector ***@***.***>
Cc: goldserve ***@***.***>; Author ***@***.***>
Subject: Re: [dlmcpaul/EnphaseCollector] Consumption values wrong when another hybrid inverter is present in the system (Issue #44)
Ok, so both your net consumption and total consumption measuring devices in the envoy are returning negative consumption values.
For the point in time that the data was captured you had approx
total production=1288W
total consumption=-266W
Not sure how to interpret that. The basic calculations I do is read production and consumption then export is when production > consumption and import is when consumption > production.
consumption should not go negative.
You mention you have 2 systems connected up. Since I cannot read the other system then I doubt I can create accurate stats.
I have a few choices here, I could zero out negative consumption or treat negative as positive. maybe but I really don't know why consumption is negative.
—
Reply to this email directly, view it on GitHub<#44 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAX4VILAFRPYRYKHSQ66B4LWRNSUBANCNFSM6AAAAAATUWCKII>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Unfortunately, the enphase controller doesn't report grid import or export that I know of. It reports production and consumption values and then I calculate import/export. The code is based on reverse engineering the data I see. If you know of a field that supplies grid import/export then I can look at that. Maybe in your scenario a negative consumption is grid export, does that seem right? |
There is a measurementType of total-consumption and net-consumption. I will read this value again but I am exporting solar on both enphase and hybrid inverter array and see which value correlates with my other inverter which also has a CT at the same location and it can show import or export wattage but doesn't have an API to pull this data unfortunately.
Cheers,
Kevin
…________________________________
From: dlmcpaul ***@***.***>
Sent: Sunday, January 8, 2023 9:43 PM
To: dlmcpaul/EnphaseCollector ***@***.***>
Cc: goldserve ***@***.***>; Author ***@***.***>
Subject: Re: [dlmcpaul/EnphaseCollector] Consumption values wrong when another hybrid inverter is present in the system (Issue #44)
Unfortunately, the enphase controller doesn't report grid import or export that I know of. It reports production and consumption values and then I calculate import/export.
The code is based on reverse engineering the data I see. If you know of a field that supplies grid import/export then I can look at that.
Maybe in your scenario a negative consumption is grid export, does that seem right?
—
Reply to this email directly, view it on GitHub<#44 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAX4VIPPWYCQ4Y56LVXHEMLWROQR3ANCNFSM6AAAAAATUWCKII>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I also see realtime readings from this open URL:
http://envoy.local/ivp/meters/readings
apparentEnergy hilighted below seems to be the real-time power infor. Again, I will check again when there is PV production.
[
{
"eid": 704643328,
"timestamp": 1673246459,
"actEnergyDlvd": 51296.894,
"actEnergyRcvd": 0.000,
"apparentEnergy": 135375.794,
"reactEnergyLagg": 84150.883,
"reactEnergyLead": 10359.777,
"instantaneousDemand": -0.000,
"activePower": -0.000,
"apparentPower": 344.493,
"reactivePower": 339.688,
"pwrFactor": 0.000,
"voltage": 245.774,
"current": 2.805,
"freq": 60.000,
"channels": [
{
"eid": 1778385169,
"timestamp": 1673246459,
"actEnergyDlvd": 25608.854,
"actEnergyRcvd": 0.000,
"apparentEnergy": 67585.658,
"reactEnergyLagg": 42049.076,
"reactEnergyLead": 5225.845,
"instantaneousDemand": -0.000,
"activePower": -0.000,
"apparentPower": 171.924,
"reactivePower": 169.707,
"pwrFactor": 0.000,
"voltage": 122.726,
"current": 1.402,
"freq": 60.000
},
{
"eid": 1778385170,
"timestamp": 1673246459,
"actEnergyDlvd": 25688.040,
"actEnergyRcvd": 0.000,
"apparentEnergy": 67790.136,
"reactEnergyLagg": 42101.807,
"reactEnergyLead": 5133.932,
"instantaneousDemand": 0.000,
"activePower": 0.000,
"apparentPower": 172.569,
"reactivePower": 169.981,
"pwrFactor": 0.000,
"voltage": 123.048,
"current": 1.403,
"freq": 60.000
},
{
"eid": 1778385171,
"timestamp": 1673246459,
"actEnergyDlvd": 0.000,
"actEnergyRcvd": 0.000,
"apparentEnergy": 0.000,
"reactEnergyLagg": 0.000,
"reactEnergyLead": 0.000,
"instantaneousDemand": 0.000,
"activePower": 0.000,
"apparentPower": 0.000,
"reactivePower": 0.000,
"pwrFactor": 0.000,
"voltage": 0.000,
"current": 0.000,
"freq": 60.000
}
]
},
{
"eid": 704643584,
"timestamp": 1673246459,
"actEnergyDlvd": 47136.082,
"actEnergyRcvd": 12329.314,
"apparentEnergy": 74436.960,
"reactEnergyLagg": 2001.790,
"reactEnergyLead": 30845.887,
"instantaneousDemand": 1331.855,
"activePower": 1331.855,
"apparentPower": 1552.065,
"reactivePower": -709.217,
"pwrFactor": 0.856,
"voltage": 245.858,
"current": 12.630,
"freq": 60.000,
"channels": [
{
"eid": 1778385425,
"timestamp": 1673246459,
"actEnergyDlvd": 25188.413,
"actEnergyRcvd": 5057.257,
"apparentEnergy": 37770.792,
"reactEnergyLagg": 582.673,
"reactEnergyLead": 16132.798,
"instantaneousDemand": 1003.636,
"activePower": 1003.636,
"apparentPower": 1142.436,
"reactivePower": -488.030,
"pwrFactor": 0.876,
"voltage": 122.802,
"current": 9.284,
"freq": 60.000
},
{
"eid": 1778385426,
"timestamp": 1673246459,
"actEnergyDlvd": 21947.669,
"actEnergyRcvd": 7272.057,
"apparentEnergy": 36666.168,
"reactEnergyLagg": 1419.117,
"reactEnergyLead": 14713.089,
"instantaneousDemand": 328.220,
"activePower": 328.220,
"apparentPower": 409.629,
"reactivePower": -221.187,
"pwrFactor": 0.805,
"voltage": 123.056,
"current": 3.346,
"freq": 60.000
},
{
"eid": 1778385427,
"timestamp": 1673246459,
"actEnergyDlvd": 0.000,
"actEnergyRcvd": 0.000,
"apparentEnergy": 0.000,
"reactEnergyLagg": 0.000,
"reactEnergyLead": 0.000,
"instantaneousDemand": 0.000,
"activePower": 0.000,
"apparentPower": 0.000,
"reactivePower": 0.000,
"pwrFactor": 0.000,
"voltage": 0.000,
"current": 0.000,
"freq": 60.000
}
]
}
]
…________________________________
From: Kevin L ***@***.***>
Sent: Sunday, January 8, 2023 10:26 PM
To: dlmcpaul/EnphaseCollector ***@***.***>; dlmcpaul/EnphaseCollector ***@***.***>
Cc: Author ***@***.***>
Subject: Re: [dlmcpaul/EnphaseCollector] Consumption values wrong when another hybrid inverter is present in the system (Issue #44)
There is a measurementType of total-consumption and net-consumption. I will read this value again but I am exporting solar on both enphase and hybrid inverter array and see which value correlates with my other inverter which also has a CT at the same location and it can show import or export wattage but doesn't have an API to pull this data unfortunately.
Cheers,
Kevin
________________________________
From: dlmcpaul ***@***.***>
Sent: Sunday, January 8, 2023 9:43 PM
To: dlmcpaul/EnphaseCollector ***@***.***>
Cc: goldserve ***@***.***>; Author ***@***.***>
Subject: Re: [dlmcpaul/EnphaseCollector] Consumption values wrong when another hybrid inverter is present in the system (Issue #44)
Unfortunately, the enphase controller doesn't report grid import or export that I know of. It reports production and consumption values and then I calculate import/export.
The code is based on reverse engineering the data I see. If you know of a field that supplies grid import/export then I can look at that.
Maybe in your scenario a negative consumption is grid export, does that seem right?
—
Reply to this email directly, view it on GitHub<#44 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAX4VIPPWYCQ4Y56LVXHEMLWROQR3ANCNFSM6AAAAAATUWCKII>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
The net consumption value is also negative. It is also the sum of production and total consumption if both were negative. total production=1288W The endpoints under the ivp path are supposed to be realtime but require a different password so I never used them as most of the data I needed was under the open endpoints and the other data was protected by a basic scheme. From V7 the ivp endpoints may be broken, there was some discussion on the forums about it but I cannot check. |
Okay, take a look at the following.
The picture is using the CTMeters application to query in real time the meters on the envoy. Looks like I get Grid which is exactly what I want. Compared to the picture on the left which is the hybrid inverter with its own solar production of 0.7kW, I am net selling 0.8kW back to grid and enphase reads this as 856W.
From a production.json standpoint, I am reading this value under "measurementType":"net-consumption", "wNow":-835.975 (values don't match 100% because the readings above are not at the exact same time).
{"production":[{"type":"inverters","activeCount":19,"readingTime":1673290795,"wNow":846,"whLifetime":51263},{"type":"eim","activeCount":1,"measurementType":"production","readingTime":1673290797,"wNow":963.179,"whLifetime":52036.13,"varhLeadLifetime":10433.075,"varhLagLifetime":87747.358,"vahLifetime":139710.566,"rmsCurrent":7.854,"rmsVoltage":248.907,"reactPwr":-149.574,"apprntPwr":977.148,"pwrFactor":0.99,"whToday":740.13,"whLastSevenDays":43694.13,"vahToday":3891.566,"varhLeadToday":75.075,"varhLagToday":3162.358,"lines":[{"wNow":483.465,"whLifetime":25979.977,"varhLeadLifetime":5263.478,"varhLagLifetime":43843.444,"vahLifetime":69748.655,"rmsCurrent":3.926,"rmsVoltage":124.946,"reactPwr":-76.041,"apprntPwr":490.514,"pwrFactor":1.0,"whToday":371.977,"whLastSevenDays":21807.977,"vahToday":1942.655,"varhLeadToday":38.478,"varhLagToday":1578.444},{"wNow":479.714,"whLifetime":26056.152,"varhLeadLifetime":5169.597,"varhLagLifetime":43903.914,"vahLifetime":69961.911,"rmsCurrent":3.928,"rmsVoltage":123.961,"reactPwr":-73.533,"apprntPwr":486.634,"pwrFactor":0.99,"whToday":368.152,"whLastSevenDays":21886.152,"vahToday":1948.911,"varhLeadToday":36.597,"varhLagToday":1583.914}]}],"consumption":[{"type":"eim","activeCount":1,"measurementType":"total-consumption","readingTime":1673290797,"wNow":127.205,"whLifetime":63968.985,"varhLeadLifetime":49146.153,"varhLagLifetime":89857.549,"vahLifetime":92050.49,"rmsCurrent":0.526,"rmsVoltage":248.923,"reactPwr":156.024,"apprntPwr":130.869,"pwrFactor":0.97,"whToday":12097.985,"whLastSevenDays":63002.985,"vahToday":14971.49,"varhLeadToday":6999.153,"varhLagToday":3270.549,"lines":[{"wNow":116.553,"whLifetime":39225.243,"varhLeadLifetime":26624.268,"varhLagLifetime":44457.833,"vahLifetime":50945.604,"rmsCurrent":0.642,"rmsVoltage":124.937,"reactPwr":-27.958,"apprntPwr":80.153,"pwrFactor":1.0,"whToday":9780.243,"whLastSevenDays":38730.243,"vahToday":11064.604,"varhLeadToday":4637.268,"varhLagToday":1609.833},{"wNow":10.651,"whLifetime":24743.743,"varhLeadLifetime":22521.884,"varhLagLifetime":45399.715,"vahLifetime":41104.886,"rmsCurrent":-0.116,"rmsVoltage":123.987,"reactPwr":183.981,"apprntPwr":-14.359,"pwrFactor":1.0,"whToday":2341.0,"whLastSevenDays":24296.0,"vahToday":3906.886,"varhLeadToday":2361.884,"varhLagToday":1660.715}]},{"type":"eim","activeCount":1,"measurementType":"net-consumption","readingTime":1673290797,"wNow":-835.975,"whLifetime":61184.98,"varhLeadLifetime":38713.077,"varhLagLifetime":2110.191,"vahLifetime":92050.49,"rmsCurrent":7.328,"rmsVoltage":248.939,"reactPwr":6.449,"apprntPwr":914.085,"pwrFactor":-0.92,"whToday":0,"whLastSevenDays":0,"vahToday":0,"varhLeadToday":0,"varhLagToday":0,"lines":[{"wNow":-366.912,"whLifetime":36662.852,"varhLeadLifetime":21360.79,"varhLagLifetime":614.389,"vahLifetime":50945.604,"rmsCurrent":3.284,"rmsVoltage":124.927,"reactPwr":-103.999,"apprntPwr":412.538,"pwrFactor":-0.89,"whToday":0,"whLastSevenDays":0,"vahToday":0,"varhLeadToday":0,"varhLagToday":0},{"wNow":-469.063,"whLifetime":24522.128,"varhLeadLifetime":17352.287,"varhLagLifetime":1495.802,"vahLifetime":41104.886,"rmsCurrent":4.044,"rmsVoltage":124.012,"reactPwr":110.448,"apprntPwr":501.547,"pwrFactor":-0.94,"whToday":0,"whLastSevenDays":0,"vahToday":0,"varhLeadToday":0,"varhLagToday":0}]}],"storage":[{"type":"acb","activeCount":0,"readingTime":0,"wNow":0,"whNow":0,"state":"idle"}]}
Seems like could be a mode to just report the enphase grid value (either import or exporting) and not worry about calculating consumption because how would enphase know about an extra 0.7kw being generated by other panels in the system, netting out the load completely and making it look negative.
Cheers,
Kevin
…________________________________
From: dlmcpaul ***@***.***>
Sent: Monday, January 9, 2023 4:17 AM
To: dlmcpaul/EnphaseCollector ***@***.***>
Cc: goldserve ***@***.***>; Author ***@***.***>
Subject: Re: [dlmcpaul/EnphaseCollector] Consumption values wrong when another hybrid inverter is present in the system (Issue #44)
The net consumption value is also negative. It is also the sum of production and total consumption if both were negative.
total production=1288W
total consumption=-266W
net consumption = -1554
The endpoints under the ivp path are supposed to be realtime but require a different password so I never used them as most of the data I needed was under the open endpoints and the other data was protected by a basic scheme.
From V7 the ivp endpoints may be broken, there was some discussion on the forums about it but I cannot check.
—
Reply to this email directly, view it on GitHub<#44 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAX4VINEBP3OKIKLEL6SERDWRP6W5ANCNFSM6AAAAAATUWCKII>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Sorry, no images are shown. Might need to link to them or email direct to dlmcpaul AT gmail.com So what is the ask here.
The second looks cleaner if it's possible. |
Here is the picture attached.
It looks like "measurementType":"net-consumption", "wNow":-835.975 will give Import if positive and export if negative straight up, no calculations required to figure out "consumption".
…________________________________
From: dlmcpaul ***@***.***>
Sent: Monday, January 9, 2023 11:45 AM
To: dlmcpaul/EnphaseCollector ***@***.***>
Cc: goldserve ***@***.***>; Author ***@***.***>
Subject: Re: [dlmcpaul/EnphaseCollector] Consumption values wrong when another hybrid inverter is present in the system (Issue #44)
Sorry, no images are shown. Might need to link to them or email direct to dlmcpaul AT gmail.com
So what is the ask here.
* Treat negative consumption as grid export?
* Have a mode to use ivr stats for consumption instead of net or total consumption?
The second looks cleaner if it's possible.
—
Reply to this email directly, view it on GitHub<#44 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAX4VIKHDZSUNVGUJYNE4HDWRRTEVANCNFSM6AAAAAATUWCKII>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
How do you run the application? Java jar or docker image? Can you see the images in your comments because I don't. > 10Mb perhaps? |
Let's see if you can see this image now?
I run the application via docker image but i'm pretty handy if you need me to make changes in the code to try out.
[cid:ffdcce8c-bb5f-4d98-b95c-4de10bb71bca]
…________________________________
From: dlmcpaul ***@***.***>
Sent: Monday, January 9, 2023 2:26 PM
To: dlmcpaul/EnphaseCollector ***@***.***>
Cc: goldserve ***@***.***>; Author ***@***.***>
Subject: Re: [dlmcpaul/EnphaseCollector] Consumption values wrong when another hybrid inverter is present in the system (Issue #44)
How do you run the application? Java jar or docker image?
Can you see the images in your comments because I don't. > 10Mb perhaps?
—
Reply to this email directly, view it on GitHub<#44 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAX4VIKZ6YRTATPHXX7SPEDWRSGBZANCNFSM6AAAAAATUWCKII>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Ok I have a first cut of something to try. Will build a docker image for you to test with soon. |
There is an experimental docker image that tries to generate the stats while expecting consumption to track import/export You will need something like docker run -it -e TZ=US/Pacific -e ENVOY_CONTROLLER_HOST=XXX -e SPRING_PROFILES_ACTIVE=experimental -p 8080:8080 dlmcpaul/enphasecollector:experimental I have pushed the code I am using under MetricCalculatorNegativeConsumption and that is activated by the experimental profile. Might need to find a better name for the profile if this goes ahead. |
Cool, I just started a new docker instance with this image and will report back when I have good sunshine from both arrays. Cheers!
…________________________________
From: dlmcpaul ***@***.***>
Sent: Friday, January 13, 2023 4:46 PM
To: dlmcpaul/EnphaseCollector ***@***.***>
Cc: goldserve ***@***.***>; Author ***@***.***>
Subject: Re: [dlmcpaul/EnphaseCollector] Consumption values wrong when another hybrid inverter is present in the system (Issue #44)
There is an experimental docker image that tries to generate the stats while expecting consumption to track import/export
You will need something like
docker run -it -e TZ=US/Pacific -e ENVOY_CONTROLLER_HOST=XXX -e SPRING_PROFILES_ACTIVE=experimental -p 8080:8080 dlmcpaul/enphasecollector:experimental
I have pushed the code I am using under MetricCalculatorNegativeConsumption and that is activated by the experimental profile.
Might need to find a better name for the profile if this goes ahead.
—
Reply to this email directly, view it on GitHub<#44 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAX4VIIKUV3UZJDIWGOP55TWSHZPTANCNFSM6AAAAAATUWCKII>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
@goldserve Did the new profile module work for you |
I'm not sure if some math is being preformed but when there is another inverter in the system and enphase is only part of the PV production, when I am exporting power back to grid, the consumption is the total of the export + enphase PV generation which makes consumption way too high. I don't know how to work around this but maybe an option just to show Net Grid import/export instead of trying to show consumption.
The text was updated successfully, but these errors were encountered: