Hoffmann77 / home_assistant_enphase_gateway

A custom integration for Home Assistant to read data from your Enphase Gateway.
Apache License 2.0
0 stars 0 forks source link

only 16 entities reported on a envoy-S metered EU with CT #14

Closed cosmos1978 closed 11 months ago

cosmos1978 commented 1 year ago

I only get 16 entities ( all the inverter stats )

I have a envoy-s metered with ct enabled.

What is going wrong here ?

Hoffmann77 commented 1 year ago

Hey @cosmos1978,

could you post a screenshot?

cosmos1978 commented 1 year ago

I did another restart an now I get 3 more.

image

cosmos1978 commented 1 year ago

But there are still some missing

cosmos1978 commented 1 year ago

Ok I changed the entityID's back to the old names of the core integration. and all seems to work now. Is the maintainer of the core integration aware of your efforts ?

Hoffmann77 commented 1 year ago

Just to learn more about this issue: By missing you mean the data or entities? So you changed the entityID's back to "Envoy" ?

There are several custom integrations aiming to provide support for newer firmware versions. The dev of the core integration doesn't seem to be active anymore so we would need to take actions into our own hands to update the core integration.

cosmos1978 commented 1 year ago

At first it only showed 16 entities later after a nother restart of HA is showed 19 entities including the lifetime production entity which is needed for the energy dashboard. But in order to keep my historical data I changed the entityID back to the "envoy" one

Hoffmann77 commented 1 year ago

Ah I see. Will probably add a toggle during configuration that enables people coming from the core integration to continue using the old entityID. Could you tell me the exact old entityID?

Furthermore would you be willing to post logs? That can help analyse the behavior of the different Enphase installations.

If you don't want your token exposed in the logfile you could use find&replace with your editor and replace the token with something like .

cosmos1978 commented 1 year ago

Sure no problem.

Old entitityID example: sensor.envoy_122131014899_current_power_production sensor.envoy_122131014899_lifetime_energy_production

And here are the logs.

2023-07-10 13:55:20.239 DEBUG (MainThread) [custom_components.enphase_gateway.enphase_token] Preparing Enphase token: None 2023-07-10 13:55:20.239 DEBUG (MainThread) [custom_components.enphase_gateway.enphase_token] Found empty token - Refreshing Enphase token 2023-07-10 13:55:20.239 DEBUG (MainThread) [custom_components.enphase_gateway.enphase_token] Refreshing Enphase Token 2023-07-10 13:55:20.239 DEBUG (MainThread) [custom_components.enphase_gateway.enphase_token] Fetching new token from Enlighten. 2023-07-10 13:55:20.263 DEBUG (MainThread) [custom_components.enphase_gateway.http] HTTP POST Attempt #1: https://enlighten.enphaseenergy.com/login/login.json?: kwargs: {'data': {'user[email]': 'tim.bellen78@gmail.com', 'user[password]': 'AdminComeIn%12'}} 2023-07-10 13:55:24.852 DEBUG (MainThread) [custom_components.enphase_gateway.http] Response: HTTP POST #1: <Response [200 OK]>: {"message":"success","session_id":"0f347aa3d6e030f5f11868e55be3d4f3","manager_token":"*****","is_consumer":true} 2023-07-10 13:55:24.853 DEBUG (MainThread) [custom_components.enphase_gateway.http] Success: HTTP POST Attempt #1 2023-07-10 13:55:24.874 DEBUG (MainThread) [custom_components.enphase_gateway.http] HTTP POST Attempt #1: https://entrez.enphaseenergy.com/tokens: kwargs: {'json': {'session_id': '0f347aa3d6e030f5f11868e55be3d4f3', 'serial_num': '122131014899', 'username': 'tim.bellen78@gmail.com'}} 2023-07-10 13:55:25.317 DEBUG (MainThread) [custom_components.enphase_gateway.http] Response: HTTP POST #1: <Response [200 OK]>: **** 2023-07-10 13:55:25.317 DEBUG (MainThread) [custom_components.enphase_gateway.http] Success: HTTP POST Attempt #1 2023-07-10 13:55:25.318 DEBUG (MainThread) [custom_components.enphase_gateway.enphase_token] Decoding the Enphase token: **** 2023-07-10 13:55:25.318 DEBUG (MainThread) [custom_components.enphase_gateway.enphase_token] New Enphase owner token valid until: 2024-07-09 11:55:25+00:00 2023-07-10 13:55:25.318 DEBUG (MainThread) [custom_components.enphase_gateway.enphase_token] Calling '/auth/check_jwt' to check token 2023-07-10 13:55:25.320 DEBUG (MainThread) [custom_components.enphase_gateway.http] HTTP GET Attempt #1: https://192.168.129.16/auth/check_jwt: kwargs: {'headers': {'Authorization': 'Bearer ****'}} 2023-07-10 13:55:26.074 DEBUG (MainThread) [custom_components.enphase_gateway.http] Response: HTTP GET #1: <Response [200 OK]>: <!DOCTYPE html>

Valid token.

2023-07-10 13:55:26.074 DEBUG (MainThread) [custom_components.enphase_gateway.http] Success: HTTP GET Attempt #1 2023-07-10 13:55:26.075 DEBUG (MainThread) [custom_components.enphase_gateway.enphase_token] Token is valid 2023-07-10 13:55:26.076 DEBUG (MainThread) [custom_components.enphase_gateway.gateway_reader.gateway_reader] Trying to detect Enphase gateway 2023-07-10 13:55:26.077 DEBUG (MainThread) [custom_components.enphase_gateway.http] HTTP GET Attempt #1: https://192.168.129.16/production.json: kwargs: {'headers': {'Authorization': 'Bearer ****'}, 'cookies': <Cookies[<Cookie sessionId=0IM6clrA94cJIc5Tb9bdU7AzCIIhsuBX for 192.168.129.16 />]>, 'follow_redirects': False} 2023-07-10 13:55:26.510 DEBUG (MainThread) [custom_components.enphase_gateway.http] Response: HTTP GET #1: <Response [200 OK]>: {"production":[{"type":"inverters","activeCount":16,"readingTime":1688990106,"wNow":3011,"whLifetime":47714},{"type":"eim","activeCount":0,"measurementType":"production","readingTime":1688990126,"wNow":-3.775,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":0.336,"rmsVoltage":707.462,"reactPwr":-0.0,"apprntPwr":79.198,"pwrFactor":-0.1,"whToday":0.0,"whLastSevenDays":0.0,"vahToday":0.0,"varhLeadToday":0.0,"varhLagToday":0.0}],"consumption":[{"type":"eim","activeCount":0,"measurementType":"total-consumption","readingTime":1688990126,"wNow":-4.537,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":-0.085,"rmsVoltage":707.114,"reactPwr":-0.597,"apprntPwr":-19.925,"pwrFactor":-1.0,"whToday":0.0,"whLastSevenDays":0.0,"vahToday":0.0,"varhLeadToday":0.0,"varhLagToday":0.0},{"type":"eim","activeCount":0,"measurementType":"net-consumption","readingTime":1688990126,"wNow":-0.762,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":-0.421,"rmsVoltage":707.114,"reactPwr":-0.597,"apprntPwr":-99.154,"pwrFactor":0.0,"whToday":0,"whLastSevenDays":0,"vahToday":0,"varhLeadToday":0,"varhLagToday":0}],"storage":[{"type":"acb","activeCount":0,"readingTime":0,"wNow":0,"whNow":0,"state":"idle"}]} 2023-07-10 13:55:26.510 DEBUG (MainThread) [custom_components.enphase_gateway.http] Success: HTTP GET Attempt #1 2023-07-10 13:55:26.513 DEBUG (MainThread) [custom_components.enphase_gateway.http] HTTP GET Attempt #1: https://192.168.129.16/production.json: kwargs: {'headers': {'Authorization': 'Bearer ****'}, 'cookies': <Cookies[<Cookie sessionId=0IM6clrA94cJIc5Tb9bdU7AzCIIhsuBX for 192.168.129.16 />]>, 'follow_redirects': False} 2023-07-10 13:55:27.378 DEBUG (MainThread) [custom_components.enphase_gateway.http] Response: HTTP GET #1: <Response [200 OK]>: {"production":[{"type":"inverters","activeCount":16,"readingTime":1688990106,"wNow":3011,"whLifetime":47714},{"type":"eim","activeCount":0,"measurementType":"production","readingTime":1688990127,"wNow":-3.292,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":0.335,"rmsVoltage":707.52,"reactPwr":-0.0,"apprntPwr":79.257,"pwrFactor":-0.09,"whToday":0.0,"whLastSevenDays":0.0,"vahToday":0.0,"varhLeadToday":0.0,"varhLagToday":0.0}],"consumption":[{"type":"eim","activeCount":0,"measurementType":"total-consumption","readingTime":1688990127,"wNow":-4.054,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":-0.086,"rmsVoltage":707.201,"reactPwr":-0.597,"apprntPwr":-20.095,"pwrFactor":-1.0,"whToday":0.0,"whLastSevenDays":0.0,"vahToday":0.0,"varhLeadToday":0.0,"varhLagToday":0.0},{"type":"eim","activeCount":0,"measurementType":"net-consumption","readingTime":1688990127,"wNow":-0.762,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":-0.421,"rmsVoltage":707.201,"reactPwr":-0.597,"apprntPwr":-99.097,"pwrFactor":0.0,"whToday":0,"whLastSevenDays":0,"vahToday":0,"varhLeadToday":0,"varhLagToday":0}],"storage":[{"type":"acb","activeCount":0,"readingTime":0,"wNow":0,"whNow":0,"state":"idle"}]} 2023-07-10 13:55:27.378 DEBUG (MainThread) [custom_components.enphase_gateway.http] Success: HTTP GET Attempt #1 2023-07-10 13:55:27.380 DEBUG (MainThread) [custom_components.enphase_gateway.http] HTTP GET Attempt #1: https://192.168.129.16/ivp/ensemble/inventory: kwargs: {'headers': {'Authorization': 'Bearer ****'}, 'cookies': <Cookies[<Cookie sessionId=0IM6clrA94cJIc5Tb9bdU7AzCIIhsuBX for 192.168.129.16 />]>, 'follow_redirects': False} 2023-07-10 13:55:27.608 DEBUG (MainThread) [custom_components.enphase_gateway.http] Response: HTTP GET #1: <Response [200 OK]>: [] 2023-07-10 13:55:27.608 DEBUG (MainThread) [custom_components.enphase_gateway.http] Success: HTTP GET Attempt #1 2023-07-10 13:55:27.610 DEBUG (MainThread) [custom_components.enphase_gateway.http] HTTP GET Attempt #1: https://192.168.129.16/home.json: kwargs: {'headers': {'Authorization': 'Bearer ..-'}, 'cookies': <Cookies[<Cookie sessionId=0IM6clrA94cJIc5Tb9bdU7AzCIIhsuBX for 192.168.129.16 />]>, 'follow_redirects': False} 2023-07-10 13:55:29.431 DEBUG (MainThread) [custom_components.enphase_gateway.http] Response: HTTP GET #1: <Response [200 OK]>: {"software_build_epoch":1687430621,"timezone":"Europe/Brussels","current_date":"07/10/2023","current_time":"13:55","network":{"web_comm":true,"ever_reported_to_enlighten":true,"last_enlighten_report_time":1688986737,"primary_interface":"wlan0","interfaces":[{"type":"ethernet","interface":"eth0","mac":"00:1D:C0:78:20:17","dhcp":true,"ip":"169.254.120.1","signal_strength":0,"signal_strength_max":1,"carrier":false},{"signal_strength":3,"signal_strength_max":5,"type":"wifi","interface":"wlan0","mac":"FC:45:C3:95:05:84","dhcp":true,"ip":"192.168.129.16","carrier":true,"supported":true,"present":true,"configured":true,"status":"connected"}]},"tariff":"single_rate","comm":{"num":17,"level":5,"pcu":{"num":16,"level":5},"acb":{"num":0,"level":0},"nsrb":{"num":1,"level":5},"esub":{"num":0,"level":0},"encharge":[{"num":0,"level":0,"level_24g":0,"level_subg":0}]},"wireless_connection":[{"signal_strength":0,"signal_strength_max":0,"type":"zigbee","connected":false},{"signal_strength":0,"signal_strength_max":0,"type":"subghz","connected":false}]} 2023-07-10 13:55:29.431 DEBUG (MainThread) [custom_components.enphase_gateway.http] Success: HTTP GET Attempt #1 2023-07-10 13:55:29.433 DEBUG (MainThread) [custom_components.enphase_gateway.http] HTTP GET Attempt #1: https://192.168.129.16/api/v1/production/inverters: kwargs: {'headers': {'Authorization': 'Bearer ****'}, 'cookies': <Cookies[<Cookie sessionId=0IM6clrA94cJIc5Tb9bdU7AzCIIhsuBX for 192.168.129.16 />]>, 'auth': <httpx.DigestAuth object at 0x7f1dc76e39d0>} 2023-07-10 13:55:29.670 DEBUG (MainThread) [custom_components.enphase_gateway.http] Response: HTTP GET #1: <Response [200 OK]>: [ { "serialNumber": "122119035145", "lastReportDate": 1688989835, "devType": 1, "lastReportWatts": 176, "maxReportWatts": 275 }, { "serialNumber": "122119035700", "lastReportDate": 1688989926, "devType": 1, "lastReportWatts": 183, "maxReportWatts": 275 }, { "serialNumber": "122119035191", "lastReportDate": 1688990045, "devType": 1, "lastReportWatts": 184, "maxReportWatts": 277 }, { "serialNumber": "122119035324", "lastReportDate": 1688990076, "devType": 1, "lastReportWatts": 187, "maxReportWatts": 278 }, { "serialNumber": "122119034577", "lastReportDate": 1688990106, "devType": 1, "lastReportWatts": 185, "maxReportWatts": 275 }, { "serialNumber": "122119035139", "lastReportDate": 1688989234, "devType": 1, "lastReportWatts": 199, "maxReportWatts": 276 }, { "serialNumber": "122119034886", "lastReportDate": 1688989235, "devType": 1, "lastReportWatts": 117, "maxReportWatts": 160 }, { "serialNumber": "122119035713", "lastReportDate": 1688989237, "devType": 1, "lastReportWatts": 200, "maxReportWatts": 278 }, { "serialNumber": "122119035325", "lastReportDate": 1688989237, "devType": 1, "lastReportWatts": 195, "maxReportWatts": 269 }, { "serialNumber": "122119035189", "lastReportDate": 1688989238, "devType": 1, "lastReportWatts": 196, "maxReportWatts": 271 }, { "serialNumber": "122119035676", "lastReportDate": 1688989265, "devType": 1, "lastReportWatts": 198, "maxReportWatts": 271 }, { "serialNumber": "122119032035", "lastReportDate": 1688989324, "devType": 1, "lastReportWatts": 197, "maxReportWatts": 266 }, { "serialNumber": "122119035711", "lastReportDate": 1688989354, "devType": 1, "lastReportWatts": 199, "maxReportWatts": 273 }, { "serialNumber": "122119035710", "lastReportDate": 1688989355, "devType": 1, "lastReportWatts": 199, "maxReportWatts": 273 }, { "serialNumber": "122119035150", "lastReportDate": 1688989357, "devType": 1, "lastReportWatts": 199, "maxReportWatts": 275 }, { "serialNumber": "122119034718", "lastReportDate": 1688989266, "devType": 1, "lastReportWatts": 196, "maxReportWatts": 273 } ]

2023-07-10 13:55:29.670 DEBUG (MainThread) [custom_components.enphase_gateway.http] Success: HTTP GET Attempt #1 2023-07-10 13:55:29.670 DEBUG (MainThread) [custom_components.enphase_gateway.gateway_reader.gateway_reader] Fetched from https://192.168.129.16/api/v1/production/inverters: <Response [200 OK]>: [ { "serialNumber": "122119035145", "lastReportDate": 1688989835, "devType": 1, "lastReportWatts": 176, "maxReportWatts": 275 }, { "serialNumber": "122119035700", "lastReportDate": 1688989926, "devType": 1, "lastReportWatts": 183, "maxReportWatts": 275 }, { "serialNumber": "122119035191", "lastReportDate": 1688990045, "devType": 1, "lastReportWatts": 184, "maxReportWatts": 277 }, { "serialNumber": "122119035324", "lastReportDate": 1688990076, "devType": 1, "lastReportWatts": 187, "maxReportWatts": 278 }, { "serialNumber": "122119034577", "lastReportDate": 1688990106, "devType": 1, "lastReportWatts": 185, "maxReportWatts": 275 }, { "serialNumber": "122119035139", "lastReportDate": 1688989234, "devType": 1, "lastReportWatts": 199, "maxReportWatts": 276 }, { "serialNumber": "122119034886", "lastReportDate": 1688989235, "devType": 1, "lastReportWatts": 117, "maxReportWatts": 160 }, { "serialNumber": "122119035713", "lastReportDate": 1688989237, "devType": 1, "lastReportWatts": 200, "maxReportWatts": 278 }, { "serialNumber": "122119035325", "lastReportDate": 1688989237, "devType": 1, "lastReportWatts": 195, "maxReportWatts": 269 }, { "serialNumber": "122119035189", "lastReportDate": 1688989238, "devType": 1, "lastReportWatts": 196, "maxReportWatts": 271 }, { "serialNumber": "122119035676", "lastReportDate": 1688989265, "devType": 1, "lastReportWatts": 198, "maxReportWatts": 271 }, { "serialNumber": "122119032035", "lastReportDate": 1688989324, "devType": 1, "lastReportWatts": 197, "maxReportWatts": 266 }, { "serialNumber": "122119035711", "lastReportDate": 1688989354, "devType": 1, "lastReportWatts": 199, "maxReportWatts": 273 }, { "serialNumber": "122119035710", "lastReportDate": 1688989355, "devType": 1, "lastReportWatts": 199, "maxReportWatts": 273 }, { "serialNumber": "122119035150", "lastReportDate": 1688989357, "devType": 1, "lastReportWatts": 199, "maxReportWatts": 275 }, { "serialNumber": "122119034718", "lastReportDate": 1688989266, "devType": 1, "lastReportWatts": 196, "maxReportWatts": 273 } ]

2023-07-10 13:55:29.671 DEBUG (MainThread) [custom_components.enphase_gateway] Retrieved data from API: {'production': 3011, 'daily_production': 'Daily production data not available for your Envoy device.', 'seven_days_production': 'Seven day production data not available for your Envoy device.', 'lifetime_production': 47714, 'consumption': 'Consumption data not available for your Envoy device.', 'daily_consumption': 'Consumption data not available for your Envoy device.', 'seven_days_consumption': 'Consumption data not available for your Envoy device.', 'lifetime_consumption': 'Consumption data not available for your Envoy device.', 'inverters_production': {'122119035145': [176, '2023-07-10 13:50:35'], '122119035700': [183, '2023-07-10 13:52:06'], '122119035191': [184, '2023-07-10 13:54:05'], '122119035324': [187, '2023-07-10 13:54:36'], '122119034577': [185, '2023-07-10 13:55:06'], '122119035139': [199, '2023-07-10 13:40:34'], '122119034886': [117, '2023-07-10 13:40:35'], '122119035713': [200, '2023-07-10 13:40:37'], '122119035325': [195, '2023-07-10 13:40:37'], '122119035189': [196, '2023-07-10 13:40:38'], '122119035676': [198, '2023-07-10 13:41:05'], '122119032035': [197, '2023-07-10 13:42:04'], '122119035711': [199, '2023-07-10 13:42:34'], '122119035710': [199, '2023-07-10 13:42:35'], '122119035150': [199, '2023-07-10 13:42:37'], '122119034718': [196, '2023-07-10 13:41:06']}, 'grid_status': 'Grid status not available for your Envoy device.'} 2023-07-10 13:55:29.671 DEBUG (MainThread) [custom_components.enphase_gateway] Finished fetching envoy Enphase Gateway data in 9.432 seconds (success: True) 2023-07-10 13:56:29.297 DEBUG (MainThread) [custom_components.enphase_gateway.enphase_token] Preparing Enphase token: ..- 2023-07-10 13:56:29.297 DEBUG (MainThread) [custom_components.enphase_gateway.enphase_token] Token is populated: ..- 2023-07-10 13:56:29.297 DEBUG (MainThread) [custom_components.enphase_gateway.enphase_token] Token expires at: 2024-07-09 11:45:25+00:00 UTC 2023-07-10 13:56:29.298 DEBUG (MainThread) [custom_components.enphase_gateway.http] HTTP GET Attempt #1: https://192.168.129.16/production.json: kwargs: {'headers': {'Authorization': 'Bearer ****'}, 'cookies': <Cookies[<Cookie sessionId=0IM6clrA94cJIc5Tb9bdU7AzCIIhsuBX for 192.168.129.16 />]>, 'follow_redirects': False} 2023-07-10 13:56:29.820 DEBUG (MainThread) [custom_components.enphase_gateway.http] Response: HTTP GET #1: <Response [200 OK]>: {"production":[{"type":"inverters","activeCount":16,"readingTime":1688990170,"wNow":3007,"whLifetime":47995},{"type":"eim","activeCount":0,"measurementType":"production","readingTime":1688990189,"wNow":-4.163,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":0.333,"rmsVoltage":706.485,"reactPwr":-0.0,"apprntPwr":78.568,"pwrFactor":-0.09,"whToday":0.0,"whLastSevenDays":0.0,"vahToday":0.0,"varhLeadToday":0.0,"varhLagToday":0.0}],"consumption":[{"type":"eim","activeCount":0,"measurementType":"total-consumption","readingTime":1688990189,"wNow":-5.331,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":-0.088,"rmsVoltage":706.144,"reactPwr":-0.0,"apprntPwr":-20.588,"pwrFactor":-1.0,"whToday":0.0,"whLastSevenDays":0.0,"vahToday":0.0,"varhLeadToday":0.0,"varhLagToday":0.0},{"type":"eim","activeCount":0,"measurementType":"net-consumption","readingTime":1688990189,"wNow":-1.168,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":-0.421,"rmsVoltage":706.144,"reactPwr":-0.0,"apprntPwr":-98.961,"pwrFactor":0.0,"whToday":0,"whLastSevenDays":0,"vahToday":0,"varhLeadToday":0,"varhLagToday":0}],"storage":[{"type":"acb","activeCount":0,"readingTime":0,"wNow":0,"whNow":0,"state":"idle"}]} 2023-07-10 13:56:29.820 DEBUG (MainThread) [custom_components.enphase_gateway.http] Success: HTTP GET Attempt #1 2023-07-10 13:56:29.821 DEBUG (MainThread) [custom_components.enphase_gateway.http] HTTP GET Attempt #1: https://192.168.129.16/ivp/ensemble/inventory: kwargs: {'headers': {'Authorization': 'Bearer ****'}, 'cookies': <Cookies[<Cookie sessionId=0IM6clrA94cJIc5Tb9bdU7AzCIIhsuBX for 192.168.129.16 />]>, 'follow_redirects': False} 2023-07-10 13:56:30.064 DEBUG (MainThread) [custom_components.enphase_gateway.http] Response: HTTP GET #1: <Response [200 OK]>: [] 2023-07-10 13:56:30.064 DEBUG (MainThread) [custom_components.enphase_gateway.http] Success: HTTP GET Attempt #1 2023-07-10 13:56:30.065 DEBUG (MainThread) [custom_components.enphase_gateway.http] HTTP GET Attempt #1: https://192.168.129.16/home.json: kwargs: {'headers': {'Authorization': 'Bearer ****'}, 'cookies': <Cookies[<Cookie sessionId=0IM6clrA94cJIc5Tb9bdU7AzCIIhsuBX for 192.168.129.16 />]>, 'follow_redirects': False} 2023-07-10 13:56:31.913 DEBUG (MainThread) [custom_components.enphase_gateway.http] Response: HTTP GET #1: <Response [200 OK]>: {"software_build_epoch":1687430621,"timezone":"Europe/Brussels","current_date":"07/10/2023","current_time":"13:56","network":{"web_comm":true,"ever_reported_to_enlighten":true,"last_enlighten_report_time":1688986737,"primary_interface":"wlan0","interfaces":[{"type":"ethernet","interface":"eth0","mac":"00:1D:C0:78:20:17","dhcp":true,"ip":"169.254.120.1","signal_strength":0,"signal_strength_max":1,"carrier":false},{"signal_strength":3,"signal_strength_max":5,"type":"wifi","interface":"wlan0","mac":"FC:45:C3:95:05:84","dhcp":true,"ip":"192.168.129.16","carrier":true,"supported":true,"present":true,"configured":true,"status":"connected"}]},"tariff":"single_rate","comm":{"num":17,"level":5,"pcu":{"num":16,"level":5},"acb":{"num":0,"level":0},"nsrb":{"num":1,"level":5},"esub":{"num":0,"level":0},"encharge":[{"num":0,"level":0,"level_24g":0,"level_subg":0}]},"wireless_connection":[{"signal_strength":0,"signal_strength_max":0,"type":"zigbee","connected":false},{"signal_strength":0,"signal_strength_max":0,"type":"subghz","connected":false}]} 2023-07-10 13:56:31.914 DEBUG (MainThread) [custom_components.enphase_gateway.http] Success: HTTP GET Attempt #1 2023-07-10 13:56:31.915 DEBUG (MainThread) [custom_components.enphase_gateway.http] HTTP GET Attempt #1: https://192.168.129.16/api/v1/production/inverters: kwargs: {'headers': {'Authorization': 'Bearer ****'}, 'cookies': <Cookies[<Cookie sessionId=0IM6clrA94cJIc5Tb9bdU7AzCIIhsuBX for 192.168.129.16 />]>, 'auth': <httpx.DigestAuth object at 0x7f1dc23f2410>} 2023-07-10 13:56:32.164 DEBUG (MainThread) [custom_components.enphase_gateway.http] Response: HTTP GET #1: <Response [200 OK]>: [ { "serialNumber": "122119035145", "lastReportDate": 1688989835, "devType": 1, "lastReportWatts": 176, "maxReportWatts": 275 }, { "serialNumber": "122119035700", "lastReportDate": 1688989926, "devType": 1, "lastReportWatts": 183, "maxReportWatts": 275 }, { "serialNumber": "122119035191", "lastReportDate": 1688990045, "devType": 1, "lastReportWatts": 184, "maxReportWatts": 277 }, { "serialNumber": "122119035324", "lastReportDate": 1688990076, "devType": 1, "lastReportWatts": 187, "maxReportWatts": 278 }, { "serialNumber": "122119034577", "lastReportDate": 1688990106, "devType": 1, "lastReportWatts": 185, "maxReportWatts": 275 }, { "serialNumber": "122119035139", "lastReportDate": 1688990136, "devType": 1, "lastReportWatts": 185, "maxReportWatts": 276 }, { "serialNumber": "122119034886", "lastReportDate": 1688990166, "devType": 1, "lastReportWatts": 111, "maxReportWatts": 160 }, { "serialNumber": "122119035713", "lastReportDate": 1688990168, "devType": 1, "lastReportWatts": 187, "maxReportWatts": 278 }, { "serialNumber": "122119035325", "lastReportDate": 1688990168, "devType": 1, "lastReportWatts": 205, "maxReportWatts": 269 }, { "serialNumber": "122119035189", "lastReportDate": 1688990168, "devType": 1, "lastReportWatts": 207, "maxReportWatts": 271 }, { "serialNumber": "122119035676", "lastReportDate": 1688990170, "devType": 1, "lastReportWatts": 207, "maxReportWatts": 271 }, { "serialNumber": "122119032035", "lastReportDate": 1688989324, "devType": 1, "lastReportWatts": 197, "maxReportWatts": 266 }, { "serialNumber": "122119035711", "lastReportDate": 1688989354, "devType": 1, "lastReportWatts": 199, "maxReportWatts": 273 }, { "serialNumber": "122119035710", "lastReportDate": 1688989355, "devType": 1, "lastReportWatts": 199, "maxReportWatts": 273 }, { "serialNumber": "122119035150", "lastReportDate": 1688989357, "devType": 1, "lastReportWatts": 199, "maxReportWatts": 275 }, { "serialNumber": "122119034718", "lastReportDate": 1688989266, "devType": 1, "lastReportWatts": 196, "maxReportWatts": 273 } ]

2023-07-10 13:56:32.164 DEBUG (MainThread) [custom_components.enphase_gateway.http] Success: HTTP GET Attempt #1 2023-07-10 13:56:32.166 DEBUG (MainThread) [custom_components.enphase_gateway.gateway_reader.gateway_reader] Fetched from https://192.168.129.16/api/v1/production/inverters: <Response [200 OK]>: [ { "serialNumber": "122119035145", "lastReportDate": 1688989835, "devType": 1, "lastReportWatts": 176, "maxReportWatts": 275 }, { "serialNumber": "122119035700", "lastReportDate": 1688989926, "devType": 1, "lastReportWatts": 183, "maxReportWatts": 275 }, { "serialNumber": "122119035191", "lastReportDate": 1688990045, "devType": 1, "lastReportWatts": 184, "maxReportWatts": 277 }, { "serialNumber": "122119035324", "lastReportDate": 1688990076, "devType": 1, "lastReportWatts": 187, "maxReportWatts": 278 }, { "serialNumber": "122119034577", "lastReportDate": 1688990106, "devType": 1, "lastReportWatts": 185, "maxReportWatts": 275 }, { "serialNumber": "122119035139", "lastReportDate": 1688990136, "devType": 1, "lastReportWatts": 185, "maxReportWatts": 276 }, { "serialNumber": "122119034886", "lastReportDate": 1688990166, "devType": 1, "lastReportWatts": 111, "maxReportWatts": 160 }, { "serialNumber": "122119035713", "lastReportDate": 1688990168, "devType": 1, "lastReportWatts": 187, "maxReportWatts": 278 }, { "serialNumber": "122119035325", "lastReportDate": 1688990168, "devType": 1, "lastReportWatts": 205, "maxReportWatts": 269 }, { "serialNumber": "122119035189", "lastReportDate": 1688990168, "devType": 1, "lastReportWatts": 207, "maxReportWatts": 271 }, { "serialNumber": "122119035676", "lastReportDate": 1688990170, "devType": 1, "lastReportWatts": 207, "maxReportWatts": 271 }, { "serialNumber": "122119032035", "lastReportDate": 1688989324, "devType": 1, "lastReportWatts": 197, "maxReportWatts": 266 }, { "serialNumber": "122119035711", "lastReportDate": 1688989354, "devType": 1, "lastReportWatts": 199, "maxReportWatts": 273 }, { "serialNumber": "122119035710", "lastReportDate": 1688989355, "devType": 1, "lastReportWatts": 199, "maxReportWatts": 273 }, { "serialNumber": "122119035150", "lastReportDate": 1688989357, "devType": 1, "lastReportWatts": 199, "maxReportWatts": 275 }, { "serialNumber": "122119034718", "lastReportDate": 1688989266, "devType": 1, "lastReportWatts": 196, "maxReportWatts": 273 } ]

2023-07-10 13:56:32.166 DEBUG (MainThread) [custom_components.enphase_gateway] Retrieved data from API: {'production': 3007, 'daily_production': 'Daily production data not available for your Envoy device.', 'seven_days_production': 'Seven day production data not available for your Envoy device.', 'lifetime_production': 47995, 'consumption': 'Consumption data not available for your Envoy device.', 'daily_consumption': 'Consumption data not available for your Envoy device.', 'seven_days_consumption': 'Consumption data not available for your Envoy device.', 'lifetime_consumption': 'Consumption data not available for your Envoy device.', 'inverters_production': {'122119035145': [176, '2023-07-10 13:50:35'], '122119035700': [183, '2023-07-10 13:52:06'], '122119035191': [184, '2023-07-10 13:54:05'], '122119035324': [187, '2023-07-10 13:54:36'], '122119034577': [185, '2023-07-10 13:55:06'], '122119035139': [185, '2023-07-10 13:55:36'], '122119034886': [111, '2023-07-10 13:56:06'], '122119035713': [187, '2023-07-10 13:56:08'], '122119035325': [205, '2023-07-10 13:56:08'], '122119035189': [207, '2023-07-10 13:56:08'], '122119035676': [207, '2023-07-10 13:56:10'], '122119032035': [197, '2023-07-10 13:42:04'], '122119035711': [199, '2023-07-10 13:42:34'], '122119035710': [199, '2023-07-10 13:42:35'], '122119035150': [199, '2023-07-10 13:42:37'], '122119034718': [196, '2023-07-10 13:41:06']}, 'grid_status': 'Grid status not available for your Envoy device.'} 2023-07-10 13:56:32.167 DEBUG (MainThread) [custom_components.enphase_gateway] Finished fetching envoy Enphase Gateway data in 2.870 seconds (success: True) 2023-07-10 13:57:01.077 ERROR (MainThread) [moonraker_api.websockets.websocketclient] Websocket connection error: Cannot connect to host 192.168.129.55:7125 ssl:default [Connect call failed ('192.168.129.55', 7125)] 2023-07-10 13:57:32.297 DEBUG (MainThread) [custom_components.enphase_gateway.enphase_token] Preparing Enphase token: **** 2023-07-10 13:57:32.297 DEBUG (MainThread) [custom_components.enphase_gateway.enphase_token] Token is populated: **** 2023-07-10 13:57:32.297 DEBUG (MainThread) [custom_components.enphase_gateway.enphase_token] Token expires at: 2024-07-09 11:45:25+00:00 UTC 2023-07-10 13:57:32.299 DEBUG (MainThread) [custom_components.enphase_gateway.http] HTTP GET Attempt #1: https://192.168.129.16/production.json: kwargs: {'headers': {'Authorization': 'Bearer ****'}, 'cookies': <Cookies[<Cookie sessionId=0IM6clrA94cJIc5Tb9bdU7AzCIIhsuBX for 192.168.129.16 />]>, 'follow_redirects': False} 2023-07-10 13:57:33.483 DEBUG (MainThread) [custom_components.enphase_gateway.http] Response: HTTP GET #1: <Response [200 OK]>: {"production":[{"type":"inverters","activeCount":16,"readingTime":1688990229,"wNow":3024,"whLifetime":48100},{"type":"eim","activeCount":0,"measurementType":"production","readingTime":1688990253,"wNow":-4.515,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":0.338,"rmsVoltage":705.671,"reactPwr":-0.3,"apprntPwr":79.07,"pwrFactor":0.0,"whToday":0.0,"whLastSevenDays":0.0,"vahToday":0.0,"varhLeadToday":0.0,"varhLagToday":0.0}],"consumption":[{"type":"eim","activeCount":0,"measurementType":"total-consumption","readingTime":1688990253,"wNow":-5.668,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":-0.084,"rmsVoltage":705.337,"reactPwr":-0.48,"apprntPwr":-19.768,"pwrFactor":1.0,"whToday":0.0,"whLastSevenDays":0.0,"vahToday":0.0,"varhLeadToday":0.0,"varhLagToday":0.0},{"type":"eim","activeCount":0,"measurementType":"net-consumption","readingTime":1688990253,"wNow":-1.154,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":-0.422,"rmsVoltage":705.337,"reactPwr":-0.18,"apprntPwr":-98.855,"pwrFactor":0.0,"whToday":0,"whLastSevenDays":0,"vahToday":0,"varhLeadToday":0,"varhLagToday":0}],"storage":[{"type":"acb","activeCount":0,"readingTime":0,"wNow":0,"whNow":0,"state":"idle"}]} 2023-07-10 13:57:33.484 DEBUG (MainThread) [custom_components.enphase_gateway.http] Success: HTTP GET Attempt #1 2023-07-10 13:57:33.485 DEBUG (MainThread) [custom_components.enphase_gateway.http] HTTP GET Attempt #1: https://192.168.129.16/ivp/ensemble/inventory: kwargs: {'headers': {'Authorization': 'Bearer ****'}, 'cookies': <Cookies[<Cookie sessionId=0IM6clrA94cJIc5Tb9bdU7AzCIIhsuBX for 192.168.129.16 />]>, 'follow_redirects': False} 2023-07-10 13:57:33.706 DEBUG (MainThread) [custom_components.enphase_gateway.http] Response: HTTP GET #1: <Response [200 OK]>: [] 2023-07-10 13:57:33.706 DEBUG (MainThread) [custom_components.enphase_gateway.http] Success: HTTP GET Attempt #1 2023-07-10 13:57:33.708 DEBUG (MainThread) [custom_components.enphase_gateway.http] HTTP GET Attempt #1: https://192.168.129.16/home.json: kwargs: {'headers': {'Authorization': 'Bearer ..-'}, 'cookies': <Cookies[<Cookie sessionId=0IM6clrA94cJIc5Tb9bdU7AzCIIhsuBX for 192.168.129.16 />]>, 'follow_redirects': False} 2023-07-10 13:57:37.003 DEBUG (MainThread) [custom_components.enphase_gateway.http] Response: HTTP GET #1: <Response [200 OK]>: {"software_build_epoch":1687430621,"timezone":"Europe/Brussels","current_date":"07/10/2023","current_time":"13:57","network":{"web_comm":true,"ever_reported_to_enlighten":true,"last_enlighten_report_time":1688986737,"primary_interface":"wlan0","interfaces":[{"type":"ethernet","interface":"eth0","mac":"00:1D:C0:78:20:17","dhcp":true,"ip":"169.254.120.1","signal_strength":0,"signal_strength_max":1,"carrier":false},{"signal_strength":3,"signal_strength_max":5,"type":"wifi","interface":"wlan0","mac":"FC:45:C3:95:05:84","dhcp":true,"ip":"192.168.129.16","carrier":true,"supported":true,"present":true,"configured":true,"status":"connected"}]},"tariff":"single_rate","comm":{"num":17,"level":5,"pcu":{"num":16,"level":5},"acb":{"num":0,"level":0},"nsrb":{"num":1,"level":5},"esub":{"num":0,"level":0},"encharge":[{"num":0,"level":0,"level_24g":0,"level_subg":0}]},"wireless_connection":[{"signal_strength":0,"signal_strength_max":0,"type":"zigbee","connected":false},{"signal_strength":0,"signal_strength_max":0,"type":"subghz","connected":false}]} 2023-07-10 13:57:37.003 DEBUG (MainThread) [custom_components.enphase_gateway.http] Success: HTTP GET Attempt #1 2023-07-10 13:57:37.006 DEBUG (MainThread) [custom_components.enphase_gateway.http] HTTP GET Attempt #1: https://192.168.129.16/api/v1/production/inverters: kwargs: {'headers': {'Authorization': 'Bearer ****'}, 'cookies': <Cookies[<Cookie sessionId=0IM6clrA94cJIc5Tb9bdU7AzCIIhsuBX for 192.168.129.16 />]>, 'auth': <httpx.DigestAuth object at 0x7f1dc435e610>} 2023-07-10 13:57:37.262 DEBUG (MainThread) [custom_components.enphase_gateway.http] Response: HTTP GET #1: <Response [200 OK]>: [ { "serialNumber": "122119035145", "lastReportDate": 1688989835, "devType": 1, "lastReportWatts": 176, "maxReportWatts": 275 }, { "serialNumber": "122119035700", "lastReportDate": 1688989926, "devType": 1, "lastReportWatts": 183, "maxReportWatts": 275 }, { "serialNumber": "122119035191", "lastReportDate": 1688990045, "devType": 1, "lastReportWatts": 184, "maxReportWatts": 277 }, { "serialNumber": "122119035324", "lastReportDate": 1688990076, "devType": 1, "lastReportWatts": 187, "maxReportWatts": 278 }, { "serialNumber": "122119034577", "lastReportDate": 1688990106, "devType": 1, "lastReportWatts": 185, "maxReportWatts": 275 }, { "serialNumber": "122119035139", "lastReportDate": 1688990136, "devType": 1, "lastReportWatts": 185, "maxReportWatts": 276 }, { "serialNumber": "122119034886", "lastReportDate": 1688990166, "devType": 1, "lastReportWatts": 111, "maxReportWatts": 160 }, { "serialNumber": "122119035713", "lastReportDate": 1688990168, "devType": 1, "lastReportWatts": 187, "maxReportWatts": 278 }, { "serialNumber": "122119035325", "lastReportDate": 1688990168, "devType": 1, "lastReportWatts": 205, "maxReportWatts": 269 }, { "serialNumber": "122119035189", "lastReportDate": 1688990168, "devType": 1, "lastReportWatts": 207, "maxReportWatts": 271 }, { "serialNumber": "122119035676", "lastReportDate": 1688990170, "devType": 1, "lastReportWatts": 207, "maxReportWatts": 271 }, { "serialNumber": "122119032035", "lastReportDate": 1688990229, "devType": 1, "lastReportWatts": 204, "maxReportWatts": 266 }, { "serialNumber": "122119035711", "lastReportDate": 1688989354, "devType": 1, "lastReportWatts": 199, "maxReportWatts": 273 }, { "serialNumber": "122119035710", "lastReportDate": 1688989355, "devType": 1, "lastReportWatts": 199, "maxReportWatts": 273 }, { "serialNumber": "122119035150", "lastReportDate": 1688989357, "devType": 1, "lastReportWatts": 199, "maxReportWatts": 275 }, { "serialNumber": "122119034718", "lastReportDate": 1688990199, "devType": 1, "lastReportWatts": 206, "maxReportWatts": 273 } ]

2023-07-10 13:57:37.262 DEBUG (MainThread) [custom_components.enphase_gateway.http] Success: HTTP GET Attempt #1 2023-07-10 13:57:37.265 DEBUG (MainThread) [custom_components.enphase_gateway.gateway_reader.gateway_reader] Fetched from https://192.168.129.16/api/v1/production/inverters: <Response [200 OK]>: [ { "serialNumber": "122119035145", "lastReportDate": 1688989835, "devType": 1, "lastReportWatts": 176, "maxReportWatts": 275 }, { "serialNumber": "122119035700", "lastReportDate": 1688989926, "devType": 1, "lastReportWatts": 183, "maxReportWatts": 275 }, { "serialNumber": "122119035191", "lastReportDate": 1688990045, "devType": 1, "lastReportWatts": 184, "maxReportWatts": 277 }, { "serialNumber": "122119035324", "lastReportDate": 1688990076, "devType": 1, "lastReportWatts": 187, "maxReportWatts": 278 }, { "serialNumber": "122119034577", "lastReportDate": 1688990106, "devType": 1, "lastReportWatts": 185, "maxReportWatts": 275 }, { "serialNumber": "122119035139", "lastReportDate": 1688990136, "devType": 1, "lastReportWatts": 185, "maxReportWatts": 276 }, { "serialNumber": "122119034886", "lastReportDate": 1688990166, "devType": 1, "lastReportWatts": 111, "maxReportWatts": 160 }, { "serialNumber": "122119035713", "lastReportDate": 1688990168, "devType": 1, "lastReportWatts": 187, "maxReportWatts": 278 }, { "serialNumber": "122119035325", "lastReportDate": 1688990168, "devType": 1, "lastReportWatts": 205, "maxReportWatts": 269 }, { "serialNumber": "122119035189", "lastReportDate": 1688990168, "devType": 1, "lastReportWatts": 207, "maxReportWatts": 271 }, { "serialNumber": "122119035676", "lastReportDate": 1688990170, "devType": 1, "lastReportWatts": 207, "maxReportWatts": 271 }, { "serialNumber": "122119032035", "lastReportDate": 1688990229, "devType": 1, "lastReportWatts": 204, "maxReportWatts": 266 }, { "serialNumber": "122119035711", "lastReportDate": 1688989354, "devType": 1, "lastReportWatts": 199, "maxReportWatts": 273 }, { "serialNumber": "122119035710", "lastReportDate": 1688989355, "devType": 1, "lastReportWatts": 199, "maxReportWatts": 273 }, { "serialNumber": "122119035150", "lastReportDate": 1688989357, "devType": 1, "lastReportWatts": 199, "maxReportWatts": 275 }, { "serialNumber": "122119034718", "lastReportDate": 1688990199, "devType": 1, "lastReportWatts": 206, "maxReportWatts": 273 } ]

2023-07-10 13:57:37.266 DEBUG (MainThread) [custom_components.enphase_gateway] Retrieved data from API: {'production': 3024, 'daily_production': 'Daily production data not available for your Envoy device.', 'seven_days_production': 'Seven day production data not available for your Envoy device.', 'lifetime_production': 48100, 'consumption': 'Consumption data not available for your Envoy device.', 'daily_consumption': 'Consumption data not available for your Envoy device.', 'seven_days_consumption': 'Consumption data not available for your Envoy device.', 'lifetime_consumption': 'Consumption data not available for your Envoy device.', 'inverters_production': {'122119035145': [176, '2023-07-10 13:50:35'], '122119035700': [183, '2023-07-10 13:52:06'], '122119035191': [184, '2023-07-10 13:54:05'], '122119035324': [187, '2023-07-10 13:54:36'], '122119034577': [185, '2023-07-10 13:55:06'], '122119035139': [185, '2023-07-10 13:55:36'], '122119034886': [111, '2023-07-10 13:56:06'], '122119035713': [187, '2023-07-10 13:56:08'], '122119035325': [205, '2023-07-10 13:56:08'], '122119035189': [207, '2023-07-10 13:56:08'], '122119035676': [207, '2023-07-10 13:56:10'], '122119032035': [204, '2023-07-10 13:57:09'], '122119035711': [199, '2023-07-10 13:42:34'], '122119035710': [199, '2023-07-10 13:42:35'], '122119035150': [199, '2023-07-10 13:42:37'], '122119034718': [206, '2023-07-10 13:56:39']}, 'grid_status': 'Grid status not available for your Envoy device.'} 2023-07-10 13:57:37.266 DEBUG (MainThread) [custom_components.enphase_gateway] Finished fetching envoy Enphase Gateway data in 4.969 seconds (success: True)

Hoffmann77 commented 11 months ago

With version 1.2.0 it's possible to enable the old entity naming schema during integration setup.