[2023-08-28 13:32:36][DEBUG] : Recuperation mesures onduleurs2 [2023-08-28 13:32:36][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1693229611, 'devType': 1, 'lastReportWatts': 89, 'maxReportWatts': 293}, {'serialNumber': '482236085940', 'lastReportDate': 1693228768, 'devType': 1, 'lastReportWatts': 100, 'maxReportWatts': 296}, {'serialNumber': '482236085744', 'lastReportDate': 1693228828, 'devType': 1, 'lastReportWatts': 107, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1693228888, 'devType': 1, 'lastReportWatts': 105, 'maxReportWatts': 296}] [2023-08-28 13:32:36][DEBUG] : Recuperation index [2023-08-28 13:32:36][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:32:36][DEBUG] : send_request_headers.started request= [2023-08-28 13:32:36][DEBUG] : send_request_headers.complete [2023-08-28 13:32:36][DEBUG] : send_request_body.started request= [2023-08-28 13:32:36][DEBUG] : send_request_body.complete [2023-08-28 13:32:36][DEBUG] : receive_response_headers.started request= [2023-08-28 13:32:36][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:32:36][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:34:25 GMT'), (b'Content-Length', b'4850'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:32:36][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-28 13:32:36][DEBUG] : receive_response_body.started request= [2023-08-28 13:32:36][DEBUG] : receive_response_body.complete [2023-08-28 13:32:36][DEBUG] : response_closed.started [2023-08-28 13:32:36][DEBUG] : response_closed.complete [2023-08-28 13:32:36][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1693229664, 'actEnergyDlvd': 1226385.713, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557756.791, 'reactEnergyLagg': 468469.273, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 367.945, 'activePower': 367.945, 'apparentPower': 372.993, 'reactivePower': 62.738, 'pwrFactor': 0.98, 'voltage': 234.024, 'current': 1.592, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1693229664, 'actEnergyDlvd': 1226385.713, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557756.791, 'reactEnergyLagg': 468469.273, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 367.945, 'activePower': 367.945, 'apparentPower': 372.993, 'reactivePower': 62.738, 'pwrFactor': 0.98, 'voltage': 234.024, 'current': 1.592, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1693229664, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7928.738, 'apparentEnergy': 1153.247, 'reactEnergyLagg': 493.22, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.048, 'activePower': -0.048, 'apparentPower': 0.181, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 2.659, 'current': 0.068, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1693229664, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 16303.844, 'apparentEnergy': 3619.291, 'reactEnergyLagg': 494.42, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.25, 'activePower': -0.25, 'apparentPower': 0.577, 'reactivePower': -0.0, 'pwrFactor': -1.0, 'voltage': 4.202, 'current': 0.137, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1693229664, 'actEnergyDlvd': 4792389.216, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200642.423, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086775.759, 'instantaneousDemand': 1161.202, 'activePower': 1161.202, 'apparentPower': 1418.768, 'reactivePower': -741.764, 'pwrFactor': 0.82, 'voltage': 234.159, 'current': 6.062, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1693229664, 'actEnergyDlvd': 4792389.216, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200642.423, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086775.759, 'instantaneousDemand': 1161.202, 'activePower': 1161.202, 'apparentPower': 1418.768, 'reactivePower': -741.764, 'pwrFactor': 0.82, 'voltage': 234.159, 'current': 6.062, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1693229664, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5293.058, 'apparentEnergy': 34.274, 'reactEnergyLagg': 457.665, 'reactEnergyLead': 0.33, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 3.804, 'current': 0.0, 'freq': 50.0}, {'eid': 1778385427, 'timestamp': 1693229664, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11986.997, 'apparentEnergy': 17.441, 'reactEnergyLagg': 464.671, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': -0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 0.861, 'current': -0.0, 'freq': 50.0}]}] [2023-08-28 13:32:36][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:32:36][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:32:51][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-28 13:32:51][INFO] : Test Token [2023-08-28 13:32:51][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:32:51][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:32:51][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:32:51][DEBUG] : start_tls.complete return_value= [2023-08-28 13:32:51][DEBUG] : send_request_headers.started request= [2023-08-28 13:32:51][DEBUG] : send_request_headers.complete [2023-08-28 13:32:51][DEBUG] : send_request_body.started request= [2023-08-28 13:32:51][DEBUG] : send_request_body.complete [2023-08-28 13:32:51][DEBUG] : receive_response_headers.started request= [2023-08-28 13:32:51][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:34:40 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=CmmQboM3SrRgxsfb61uepeTFDA82GiVp; Secure; HttpOnly; path=/'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:32:51][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-28 13:32:51][DEBUG] : receive_response_body.started request= [2023-08-28 13:32:51][DEBUG] : receive_response_body.complete [2023-08-28 13:32:51][DEBUG] : response_closed.started [2023-08-28 13:32:51][DEBUG] : response_closed.complete [2023-08-28 13:32:51][INFO] : Recuperation mesures [2023-08-28 13:32:51][DEBUG] : send_request_headers.started request= [2023-08-28 13:32:51][DEBUG] : send_request_headers.complete [2023-08-28 13:32:51][DEBUG] : send_request_body.started request= [2023-08-28 13:32:51][DEBUG] : send_request_body.complete [2023-08-28 13:32:51][DEBUG] : receive_response_headers.started request= [2023-08-28 13:32:52][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:34:40 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:32:52][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-28 13:32:52][DEBUG] : receive_response_body.started request= [2023-08-28 13:32:52][DEBUG] : receive_response_body.complete [2023-08-28 13:32:52][DEBUG] : response_closed.started [2023-08-28 13:32:52][DEBUG] : response_closed.complete [2023-08-28 13:32:52][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1693229670, 'wNow': 391, 'whLifetime': 27563}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1693229680, 'wNow': 368.243, 'whLifetime': 1226387.35, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468469.553, 'vahLifetime': 1557758.448, 'rmsCurrent': 1.594, 'rmsVoltage': 233.962, 'reactPwr': 63.207, 'apprntPwr': 372.967, 'pwrFactor': 0.99, 'whToday': 2808.35, 'whLastSevenDays': 41378.35, 'vahToday': 3413.448, 'varhLeadToday': 0.104, 'varhLagToday': 998.553, 'lines': [{'wNow': 368.243, 'whLifetime': 1226387.35, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468469.553, 'vahLifetime': 1557758.448, 'rmsCurrent': 1.594, 'rmsVoltage': 233.962, 'reactPwr': 63.207, 'apprntPwr': 372.967, 'pwrFactor': 0.99, 'whToday': 2808.35, 'whLastSevenDays': 41378.35, 'vahToday': 3413.448, 'varhLeadToday': 0.104, 'varhLagToday': 998.553}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1693229680, 'wNow': 1532.531, 'whLifetime': 5848030.752, 'varhLeadLifetime': 4085628.945, 'varhLagLifetime': -468180.517, 'vahLifetime': 7200648.737, 'rmsCurrent': 7.667, 'rmsVoltage': 233.982, 'reactPwr': -677.514, 'apprntPwr': 1794.014, 'pwrFactor': 0.85, 'whToday': 12247.752, 'whLastSevenDays': 113.752, 'vahToday': 15885.737, 'varhLeadToday': 10299.945, 'varhLagToday': 0.0, 'lines': [{'wNow': 1532.531, 'whLifetime': 5848030.752, 'varhLeadLifetime': 4085628.945, 'varhLagLifetime': -468180.517, 'vahLifetime': 7200648.737, 'rmsCurrent': 7.667, 'rmsVoltage': 233.982, 'reactPwr': -677.514, 'apprntPwr': 1794.014, 'pwrFactor': 0.85, 'whToday': 12247.752, 'whLastSevenDays': 113.752, 'vahToday': 15885.737, 'varhLeadToday': 10299.945, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1693229680, 'wNow': 1164.288, 'whLifetime': 4621958.372, 'varhLeadLifetime': 4086779.049, 'varhLagLifetime': 289.035, 'vahLifetime': 7200648.737, 'rmsCurrent': 6.073, 'rmsVoltage': 233.982, 'reactPwr': -740.721, 'apprntPwr': 1420.932, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 1164.288, 'whLifetime': 4621958.372, 'varhLeadLifetime': 4086779.049, 'varhLagLifetime': 289.035, 'vahLifetime': 7200648.737, 'rmsCurrent': 6.073, 'rmsVoltage': 233.982, 'reactPwr': -740.721, 'apprntPwr': 1420.932, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0}]}], 'storage': [{'type': 'acb', 'activeCount': 0, 'readingTime': 0, 'wNow': 0, 'whNow': 0, 'state': 'idle'}]} [2023-08-28 13:32:52][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:32:52][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:32:53][DEBUG] : send_request_headers.started request= [2023-08-28 13:32:53][DEBUG] : send_request_headers.complete [2023-08-28 13:32:53][DEBUG] : send_request_body.started request= [2023-08-28 13:32:53][DEBUG] : send_request_body.complete [2023-08-28 13:32:53][DEBUG] : receive_response_headers.started request= [2023-08-28 13:32:53][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:34:41 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'605'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:32:53][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-28 13:32:53][DEBUG] : receive_response_body.started request= [2023-08-28 13:32:53][DEBUG] : receive_response_body.complete [2023-08-28 13:32:53][DEBUG] : response_closed.started [2023-08-28 13:32:53][DEBUG] : response_closed.complete [2023-08-28 13:32:53][DEBUG] : Recuperation mesures onduleurs [2023-08-28 13:32:53][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1693229611, 'devType': 1, 'lastReportWatts': 89, 'maxReportWatts': 293}, {'serialNumber': '482236085940', 'lastReportDate': 1693229670, 'devType': 1, 'lastReportWatts': 90, 'maxReportWatts': 296}, {'serialNumber': '482236085744', 'lastReportDate': 1693228828, 'devType': 1, 'lastReportWatts': 107, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1693228888, 'devType': 1, 'lastReportWatts': 105, 'maxReportWatts': 296}] [2023-08-28 13:32:53][DEBUG] : Recuperation index [2023-08-28 13:32:53][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:32:53][DEBUG] : send_request_headers.started request= [2023-08-28 13:32:53][DEBUG] : send_request_headers.complete [2023-08-28 13:32:53][DEBUG] : send_request_body.started request= [2023-08-28 13:32:53][DEBUG] : send_request_body.complete [2023-08-28 13:32:53][DEBUG] : receive_response_headers.started request= [2023-08-28 13:32:53][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:34:41 GMT'), (b'Content-Length', b'4849'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:32:53][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-28 13:32:53][DEBUG] : receive_response_body.started request= [2023-08-28 13:32:53][DEBUG] : receive_response_body.complete [2023-08-28 13:32:53][DEBUG] : response_closed.started [2023-08-28 13:32:53][DEBUG] : response_closed.complete [2023-08-28 13:32:53][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1693229681, 'actEnergyDlvd': 1226387.462, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557758.562, 'reactEnergyLagg': 468469.572, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 368.562, 'activePower': 368.562, 'apparentPower': 373.045, 'reactivePower': 63.828, 'pwrFactor': 1.0, 'voltage': 234.042, 'current': 1.594, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1693229681, 'actEnergyDlvd': 1226387.462, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557758.562, 'reactEnergyLagg': 468469.572, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 368.562, 'activePower': 368.562, 'apparentPower': 373.045, 'reactivePower': 63.828, 'pwrFactor': 1.0, 'voltage': 234.042, 'current': 1.594, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1693229681, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7928.744, 'apparentEnergy': 1153.248, 'reactEnergyLagg': 493.22, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.019, 'activePower': -0.019, 'apparentPower': 0.182, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 2.659, 'current': 0.07, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1693229681, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 16303.855, 'apparentEnergy': 3619.294, 'reactEnergyLagg': 494.42, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.193, 'activePower': -0.193, 'apparentPower': 0.575, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 4.203, 'current': 0.138, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1693229681, 'actEnergyDlvd': 4792394.735, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200649.171, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086779.275, 'instantaneousDemand': 1159.419, 'activePower': 1159.419, 'apparentPower': 1419.321, 'reactivePower': -739.703, 'pwrFactor': 0.815, 'voltage': 234.06, 'current': 6.052, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1693229681, 'actEnergyDlvd': 4792394.735, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200649.171, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086779.275, 'instantaneousDemand': 1159.419, 'activePower': 1159.419, 'apparentPower': 1419.321, 'reactivePower': -739.703, 'pwrFactor': 0.815, 'voltage': 234.06, 'current': 6.052, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1693229681, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5293.063, 'apparentEnergy': 34.274, 'reactEnergyLagg': 457.665, 'reactEnergyLead': 0.33, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 3.804, 'current': 0.0, 'freq': 50.0}, {'eid': 1778385427, 'timestamp': 1693229681, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11987.005, 'apparentEnergy': 17.441, 'reactEnergyLagg': 464.672, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': -0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 0.861, 'current': -0.0, 'freq': 50.0}]}] [2023-08-28 13:32:53][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:32:53][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:32:53][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:33:05][DEBUG] : Signal 15 caught, exiting... [2023-08-28 13:33:05][DEBUG] : Shutdown [2023-08-28 13:33:05][DEBUG] : Removing PID file /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:33:05][INFO] : Send to jeedom : error arret [2023-08-28 13:33:05][DEBUG] : Exit 0 [2023-08-28 13:33:10][INFO] : Start demond [2023-08-28 13:33:10][INFO] : Log level : debug [2023-08-28 13:33:10][DEBUG] : Socket port : 1092 [2023-08-28 13:33:10][DEBUG] : Socket host : localhost [2023-08-28 13:33:10][DEBUG] : PID file : /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:33:10][DEBUG] : Apikey : wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM [2023-08-28 13:33:10][DEBUG] : Device : auto [2023-08-28 13:33:10][DEBUG] : Callback : http://127.0.0.1:80/plugins/enphasesecur/core/php/jeeenphasesecur.php [2023-08-28 13:33:10][DEBUG] : Delais actualisation : 15 [2023-08-28 13:33:10][INFO] : Adresse IP Passerelle : 192.168.0.70 [2023-08-28 13:33:10][DEBUG] : User : m_mickael@yahoo.fr [2023-08-28 13:33:10][DEBUG] : Password : %scream%enphase [2023-08-28 13:33:10][DEBUG] : Numero de serie : 122239084064 [2023-08-28 13:33:10][INFO] : Writing PID 17428 to /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:33:10][INFO] : Init request module v2.31.0 [2023-08-28 13:33:10][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:33:10][DEBUG] : http://127.0.0.1:80 "GET /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 2 [2023-08-28 13:33:25][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-28 13:33:25][INFO] : Recuperation token [2023-08-28 13:33:25][DEBUG] : Starting new HTTPS connection (1): enlighten.enphaseenergy.com:443 [2023-08-28 13:33:28][DEBUG] : https://enlighten.enphaseenergy.com:443 "POST /login/login.json HTTP/1.1" 200 None [2023-08-28 13:33:28][DEBUG] : Starting new HTTPS connection (1): entrez.enphaseenergy.com:443 [2023-08-28 13:33:28][DEBUG] : https://entrez.enphaseenergy.com:443 "POST /tokens HTTP/1.1" 200 None [2023-08-28 13:33:28][DEBUG] : eyJraWQiOiI3ZDEwMDA1ZC03ODk5LTRkMGQtYmNiNC0yNDRmOThlZTE1NmIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJhdWQiOiIxMjIyMzkwODQwNjQiLCJpc3MiOiJFbnRyZXoiLCJlbnBoYXNlVXNlciI6Im93bmVyIiwiZXhwIjoxNzI0NzY1NjA4LCJpYXQiOjE2OTMyMjk2MDgsImp0aSI6IjIxNDM3ZGZhLTE1NjctNGJjMy1iNDg1LThhZDFhZDQxMzU5YSIsInVzZXJuYW1lIjoibV9taWNrYWVsQHlhaG9vLmZyIn0.SJO5S8jxbJrPrXMy9amV2cSB31otkIjyo26ckti6C3NSkHIr2UFi01ITL08C40P8vvLZuD-H7yQW9V_Ol2BF8Q [2023-08-28 13:33:28][INFO] : Test Token [2023-08-28 13:33:28][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:33:28][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:33:28][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:33:29][DEBUG] : start_tls.complete return_value= [2023-08-28 13:33:29][DEBUG] : send_request_headers.started request= [2023-08-28 13:33:29][DEBUG] : send_request_headers.complete [2023-08-28 13:33:29][DEBUG] : send_request_body.started request= [2023-08-28 13:33:29][DEBUG] : send_request_body.complete [2023-08-28 13:33:29][DEBUG] : receive_response_headers.started request= [2023-08-28 13:33:29][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:35:17 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=0YyTsKiMhF4pCcWVQhHnP23a5ZTIEcpk; Secure; HttpOnly; path=/'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:33:29][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-28 13:33:29][DEBUG] : receive_response_body.started request= [2023-08-28 13:33:29][DEBUG] : receive_response_body.complete [2023-08-28 13:33:29][DEBUG] : response_closed.started [2023-08-28 13:33:29][DEBUG] : response_closed.complete [2023-08-28 13:33:29][DEBUG] : Recuperation Inventaire [2023-08-28 13:33:29][DEBUG] : send_request_headers.started request= [2023-08-28 13:33:29][DEBUG] : send_request_headers.complete [2023-08-28 13:33:29][DEBUG] : send_request_body.started request= [2023-08-28 13:33:29][DEBUG] : send_request_body.complete [2023-08-28 13:33:29][DEBUG] : receive_response_headers.started request= [2023-08-28 13:33:29][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:35:18 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:33:29][INFO] : HTTP Request: GET https://192.168.0.70/inventory.json "HTTP/1.1 200 OK" [2023-08-28 13:33:29][DEBUG] : receive_response_body.started request= [2023-08-28 13:33:29][DEBUG] : receive_response_body.complete [2023-08-28 13:33:29][DEBUG] : response_closed.started [2023-08-28 13:33:29][DEBUG] : response_closed.complete [2023-08-28 13:33:29][INFO] : Send to jeedom : [{'type': 'PCU', 'devices': [{'part_num': '800-01736-r02', 'installed': '1670094034', 'serial_num': '482236085960', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229612', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094034', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390225, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094034', 'serial_num': '482236085940', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229672', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094034', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390481, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094035', 'serial_num': '482236085744', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693228831', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094035', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390737, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094035', 'serial_num': '482236085917', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693228890', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094035', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390993, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}]}, {'type': 'ACB', 'devices': []}, {'type': 'NSRB', 'devices': [{'part_num': '800-00598-r04', 'installed': '1670088923', 'serial_num': '122232095000', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693228920', 'admin_state': 1, 'dev_type': 12, 'created_date': '1670088923', 'img_load_date': '1522376696', 'img_pnum_running': '520-00086-r01-v02.12.07', 'ptpn': '540-00139-r01-v02.12.00', 'chaneid': 1811939601, 'device_control': [{'gficlearset': False}], 'producing': False, 'communicating': True, 'provisioned': True, 'operating': True, 'relay': 'closed', 'reason_code': -1, 'reason': 'ok', 'line-count': 1, 'line1-connected': True, 'line2-connected': False, 'line3-connected': False}]}, {'type': 'ESUB', 'devices': []}] [2023-08-28 13:33:29][DEBUG] : Attente de 5s [2023-08-28 13:33:29][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:33:30][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:33:34][INFO] : Recuperation mesures [2023-08-28 13:33:34][DEBUG] : close.started [2023-08-28 13:33:34][DEBUG] : close.complete [2023-08-28 13:33:34][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:33:34][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:33:34][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:33:35][DEBUG] : start_tls.complete return_value= [2023-08-28 13:33:35][DEBUG] : send_request_headers.started request= [2023-08-28 13:33:35][DEBUG] : send_request_headers.complete [2023-08-28 13:33:35][DEBUG] : send_request_body.started request= [2023-08-28 13:33:35][DEBUG] : send_request_body.complete [2023-08-28 13:33:35][DEBUG] : receive_response_headers.started request= [2023-08-28 13:33:35][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:35:24 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:33:35][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-28 13:33:35][DEBUG] : receive_response_body.started request= [2023-08-28 13:33:35][DEBUG] : receive_response_body.complete [2023-08-28 13:33:35][DEBUG] : response_closed.started [2023-08-28 13:33:35][DEBUG] : response_closed.complete [2023-08-28 13:33:35][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1693229670, 'wNow': 391, 'whLifetime': 27563}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1693229724, 'wNow': 368.477, 'whLifetime': 1226391.749, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468470.306, 'vahLifetime': 1557762.903, 'rmsCurrent': 1.593, 'rmsVoltage': 234.012, 'reactPwr': 63.81, 'apprntPwr': 373.008, 'pwrFactor': 1.0, 'whToday': 2812.749, 'whLastSevenDays': 41382.749, 'vahToday': 3417.903, 'varhLeadToday': 0.104, 'varhLagToday': 999.306, 'lines': [{'wNow': 368.477, 'whLifetime': 1226391.749, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468470.306, 'vahLifetime': 1557762.903, 'rmsCurrent': 1.593, 'rmsVoltage': 234.012, 'reactPwr': 63.81, 'apprntPwr': 373.008, 'pwrFactor': 1.0, 'whToday': 2812.749, 'whLastSevenDays': 41382.749, 'vahToday': 3417.903, 'varhLeadToday': 0.104, 'varhLagToday': 999.306}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1693229724, 'wNow': 1532.522, 'whLifetime': 5848049.102, 'varhLeadLifetime': 4085637.792, 'varhLagLifetime': -468181.271, 'vahLifetime': 7200665.769, 'rmsCurrent': 7.661, 'rmsVoltage': 234.067, 'reactPwr': -675.728, 'apprntPwr': 1793.264, 'pwrFactor': 0.85, 'whToday': 12266.102, 'whLastSevenDays': 132.102, 'vahToday': 15902.769, 'varhLeadToday': 10308.792, 'varhLagToday': 0.0, 'lines': [{'wNow': 1532.522, 'whLifetime': 5848049.102, 'varhLeadLifetime': 4085637.792, 'varhLagLifetime': -468181.271, 'vahLifetime': 7200665.769, 'rmsCurrent': 7.661, 'rmsVoltage': 234.067, 'reactPwr': -675.728, 'apprntPwr': 1793.264, 'pwrFactor': 0.85, 'whToday': 12266.102, 'whLastSevenDays': 132.102, 'vahToday': 15902.769, 'varhLeadToday': 10308.792, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1693229724, 'wNow': 1164.045, 'whLifetime': 4621972.322, 'varhLeadLifetime': 4086787.896, 'varhLagLifetime': 289.035, 'vahLifetime': 7200665.769, 'rmsCurrent': 6.069, 'rmsVoltage': 234.067, 'reactPwr': -739.537, 'apprntPwr': 1420.459, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 1164.045, 'whLifetime': 4621972.322, 'varhLeadLifetime': 4086787.896, 'varhLagLifetime': 289.035, 'vahLifetime': 7200665.769, 'rmsCurrent': 6.069, 'rmsVoltage': 234.067, 'reactPwr': -739.537, 'apprntPwr': 1420.459, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0}]}], 'storage': [{'type': 'acb', 'activeCount': 0, 'readingTime': 0, 'wNow': 0, 'whNow': 0, 'state': 'idle'}]} [2023-08-28 13:33:35][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:33:35][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:33:36][DEBUG] : send_request_headers.started request= [2023-08-28 13:33:36][DEBUG] : send_request_headers.complete [2023-08-28 13:33:36][DEBUG] : send_request_body.started request= [2023-08-28 13:33:36][DEBUG] : send_request_body.complete [2023-08-28 13:33:36][DEBUG] : receive_response_headers.started request= [2023-08-28 13:33:36][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:35:25 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'605'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:33:36][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-28 13:33:36][DEBUG] : receive_response_body.started request= [2023-08-28 13:33:36][DEBUG] : receive_response_body.complete [2023-08-28 13:33:36][DEBUG] : response_closed.started [2023-08-28 13:33:36][DEBUG] : response_closed.complete [2023-08-28 13:33:36][DEBUG] : Recuperation mesures onduleurs2 [2023-08-28 13:33:36][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1693229611, 'devType': 1, 'lastReportWatts': 89, 'maxReportWatts': 293}, {'serialNumber': '482236085940', 'lastReportDate': 1693229670, 'devType': 1, 'lastReportWatts': 90, 'maxReportWatts': 296}, {'serialNumber': '482236085744', 'lastReportDate': 1693228828, 'devType': 1, 'lastReportWatts': 107, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1693228888, 'devType': 1, 'lastReportWatts': 105, 'maxReportWatts': 296}] [2023-08-28 13:33:36][DEBUG] : Recuperation index [2023-08-28 13:33:36][DEBUG] : send_request_headers.started request= [2023-08-28 13:33:36][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:33:36][DEBUG] : send_request_headers.complete [2023-08-28 13:33:36][DEBUG] : send_request_body.started request= [2023-08-28 13:33:36][DEBUG] : send_request_body.complete [2023-08-28 13:33:36][DEBUG] : receive_response_headers.started request= [2023-08-28 13:33:36][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:35:25 GMT'), (b'Content-Length', b'4850'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:33:36][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-28 13:33:36][DEBUG] : receive_response_body.started request= [2023-08-28 13:33:36][DEBUG] : receive_response_body.complete [2023-08-28 13:33:36][DEBUG] : response_closed.started [2023-08-28 13:33:36][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:33:36][DEBUG] : response_closed.complete [2023-08-28 13:33:36][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1693229725, 'actEnergyDlvd': 1226391.954, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557763.11, 'reactEnergyLagg': 468470.341, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 368.284, 'activePower': 368.284, 'apparentPower': 373.141, 'reactivePower': 63.056, 'pwrFactor': 0.98, 'voltage': 233.933, 'current': 1.595, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1693229725, 'actEnergyDlvd': 1226391.954, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557763.11, 'reactEnergyLagg': 468470.341, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 368.284, 'activePower': 368.284, 'apparentPower': 373.141, 'reactivePower': 63.056, 'pwrFactor': 0.98, 'voltage': 233.933, 'current': 1.595, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1693229725, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7928.759, 'apparentEnergy': 1153.251, 'reactEnergyLagg': 493.221, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.042, 'activePower': -0.042, 'apparentPower': 0.181, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 2.658, 'current': 0.068, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1693229725, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 16303.886, 'apparentEnergy': 3619.3, 'reactEnergyLagg': 494.421, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.204, 'activePower': -0.204, 'apparentPower': 0.562, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 4.202, 'current': 0.134, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1693229725, 'actEnergyDlvd': 4792408.976, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200666.556, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086788.306, 'instantaneousDemand': 1159.568, 'activePower': 1159.568, 'apparentPower': 1418.266, 'reactivePower': -738.616, 'pwrFactor': 0.816, 'voltage': 233.936, 'current': 6.057, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1693229725, 'actEnergyDlvd': 4792408.976, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200666.556, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086788.306, 'instantaneousDemand': 1159.568, 'activePower': 1159.568, 'apparentPower': 1418.266, 'reactivePower': -738.616, 'pwrFactor': 0.816, 'voltage': 233.936, 'current': 6.057, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1693229725, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5293.072, 'apparentEnergy': 34.274, 'reactEnergyLagg': 457.666, 'reactEnergyLead': 0.33, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 3.804, 'current': 0.0, 'freq': 50.0}, {'eid': 1778385427, 'timestamp': 1693229725, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11987.029, 'apparentEnergy': 17.441, 'reactEnergyLagg': 464.672, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': -0.0, 'reactivePower': 0.0, 'pwrFactor': -1.0, 'voltage': 0.861, 'current': -0.0, 'freq': 50.0}]}] [2023-08-28 13:33:36][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:33:36][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:33:51][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-28 13:33:51][INFO] : Test Token [2023-08-28 13:33:51][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:33:51][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:33:51][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:33:52][DEBUG] : start_tls.complete return_value= [2023-08-28 13:33:52][DEBUG] : send_request_headers.started request= [2023-08-28 13:33:52][DEBUG] : send_request_headers.complete [2023-08-28 13:33:52][DEBUG] : send_request_body.started request= [2023-08-28 13:33:52][DEBUG] : send_request_body.complete [2023-08-28 13:33:52][DEBUG] : receive_response_headers.started request= [2023-08-28 13:33:52][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:35:40 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=0YyTsKiMhF4pCcWVQhHnP23a5ZTIEcpk; Secure; HttpOnly; path=/'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:33:52][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-28 13:33:52][DEBUG] : receive_response_body.started request= [2023-08-28 13:33:52][DEBUG] : receive_response_body.complete [2023-08-28 13:33:52][DEBUG] : response_closed.started [2023-08-28 13:33:52][DEBUG] : response_closed.complete [2023-08-28 13:33:52][INFO] : Recuperation mesures [2023-08-28 13:33:52][DEBUG] : send_request_headers.started request= [2023-08-28 13:33:52][DEBUG] : send_request_headers.complete [2023-08-28 13:33:52][DEBUG] : send_request_body.started request= [2023-08-28 13:33:52][DEBUG] : send_request_body.complete [2023-08-28 13:33:52][DEBUG] : receive_response_headers.started request= [2023-08-28 13:33:52][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:35:41 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:33:52][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-28 13:33:52][DEBUG] : receive_response_body.started request= [2023-08-28 13:33:52][DEBUG] : receive_response_body.complete [2023-08-28 13:33:52][DEBUG] : response_closed.started [2023-08-28 13:33:52][DEBUG] : response_closed.complete [2023-08-28 13:33:52][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1693229670, 'wNow': 391, 'whLifetime': 27563}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1693229741, 'wNow': 368.147, 'whLifetime': 1226393.509, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468470.606, 'vahLifetime': 1557764.684, 'rmsCurrent': 1.593, 'rmsVoltage': 233.929, 'reactPwr': 63.768, 'apprntPwr': 372.9, 'pwrFactor': 1.0, 'whToday': 2814.509, 'whLastSevenDays': 41384.509, 'vahToday': 3419.684, 'varhLeadToday': 0.104, 'varhLagToday': 999.606, 'lines': [{'wNow': 368.147, 'whLifetime': 1226393.509, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468470.606, 'vahLifetime': 1557764.684, 'rmsCurrent': 1.593, 'rmsVoltage': 233.929, 'reactPwr': 63.768, 'apprntPwr': 372.9, 'pwrFactor': 1.0, 'whToday': 2814.509, 'whLastSevenDays': 41384.509, 'vahToday': 3419.684, 'varhLeadToday': 0.104, 'varhLagToday': 999.606}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1693229741, 'wNow': 1532.109, 'whLifetime': 5848056.436, 'varhLeadLifetime': 4085641.327, 'varhLagLifetime': -468181.571, 'vahLifetime': 7200672.577, 'rmsCurrent': 7.674, 'rmsVoltage': 233.892, 'reactPwr': -675.843, 'apprntPwr': 1794.857, 'pwrFactor': 0.85, 'whToday': 12273.436, 'whLastSevenDays': 139.436, 'vahToday': 15909.577, 'varhLeadToday': 10312.327, 'varhLagToday': 0.0, 'lines': [{'wNow': 1532.109, 'whLifetime': 5848056.436, 'varhLeadLifetime': 4085641.327, 'varhLagLifetime': -468181.571, 'vahLifetime': 7200672.577, 'rmsCurrent': 7.674, 'rmsVoltage': 233.892, 'reactPwr': -675.843, 'apprntPwr': 1794.857, 'pwrFactor': 0.85, 'whToday': 12273.436, 'whLastSevenDays': 139.436, 'vahToday': 15909.577, 'varhLeadToday': 10312.327, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1693229741, 'wNow': 1163.962, 'whLifetime': 4621977.897, 'varhLeadLifetime': 4086791.431, 'varhLagLifetime': 289.035, 'vahLifetime': 7200672.577, 'rmsCurrent': 6.081, 'rmsVoltage': 233.892, 'reactPwr': -739.61, 'apprntPwr': 1422.218, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 1163.962, 'whLifetime': 4621977.897, 'varhLeadLifetime': 4086791.431, 'varhLagLifetime': 289.035, 'vahLifetime': 7200672.577, 'rmsCurrent': 6.081, 'rmsVoltage': 233.892, 'reactPwr': -739.61, 'apprntPwr': 1422.218, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0}]}], 'storage': [{'type': 'acb', 'activeCount': 0, 'readingTime': 0, 'wNow': 0, 'whNow': 0, 'state': 'idle'}]} [2023-08-28 13:33:52][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:33:52][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:33:53][DEBUG] : send_request_headers.started request= [2023-08-28 13:33:53][DEBUG] : send_request_headers.complete [2023-08-28 13:33:53][DEBUG] : send_request_body.started request= [2023-08-28 13:33:53][DEBUG] : send_request_body.complete [2023-08-28 13:33:53][DEBUG] : receive_response_headers.started request= [2023-08-28 13:33:53][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:35:42 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'605'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:33:53][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-28 13:33:53][DEBUG] : receive_response_body.started request= [2023-08-28 13:33:53][DEBUG] : receive_response_body.complete [2023-08-28 13:33:53][DEBUG] : response_closed.started [2023-08-28 13:33:53][DEBUG] : response_closed.complete [2023-08-28 13:33:53][DEBUG] : Recuperation mesures onduleurs [2023-08-28 13:33:53][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1693229611, 'devType': 1, 'lastReportWatts': 89, 'maxReportWatts': 293}, {'serialNumber': '482236085940', 'lastReportDate': 1693229670, 'devType': 1, 'lastReportWatts': 90, 'maxReportWatts': 296}, {'serialNumber': '482236085744', 'lastReportDate': 1693228828, 'devType': 1, 'lastReportWatts': 107, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1693228888, 'devType': 1, 'lastReportWatts': 105, 'maxReportWatts': 296}] [2023-08-28 13:33:53][DEBUG] : Recuperation index [2023-08-28 13:33:53][DEBUG] : send_request_headers.started request= [2023-08-28 13:33:53][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:33:53][DEBUG] : send_request_headers.complete [2023-08-28 13:33:53][DEBUG] : send_request_body.started request= [2023-08-28 13:33:53][DEBUG] : send_request_body.complete [2023-08-28 13:33:53][DEBUG] : receive_response_headers.started request= [2023-08-28 13:33:53][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:33:53][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:35:42 GMT'), (b'Content-Length', b'4850'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:33:53][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-28 13:33:53][DEBUG] : receive_response_body.started request= [2023-08-28 13:33:53][DEBUG] : receive_response_body.complete [2023-08-28 13:33:53][DEBUG] : response_closed.started [2023-08-28 13:33:53][DEBUG] : response_closed.complete [2023-08-28 13:33:53][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1693229741, 'actEnergyDlvd': 1226393.621, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557764.798, 'reactEnergyLagg': 468470.625, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 368.116, 'activePower': 368.116, 'apparentPower': 372.612, 'reactivePower': 62.735, 'pwrFactor': 1.0, 'voltage': 233.853, 'current': 1.593, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1693229741, 'actEnergyDlvd': 1226393.621, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557764.798, 'reactEnergyLagg': 468470.625, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 368.116, 'activePower': 368.116, 'apparentPower': 372.612, 'reactivePower': 62.735, 'pwrFactor': 1.0, 'voltage': 233.853, 'current': 1.593, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1693229741, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7928.765, 'apparentEnergy': 1153.251, 'reactEnergyLagg': 493.221, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.018, 'activePower': -0.018, 'apparentPower': 0.184, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 2.658, 'current': 0.07, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1693229741, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 16303.898, 'apparentEnergy': 3619.303, 'reactEnergyLagg': 494.421, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.251, 'activePower': -0.251, 'apparentPower': 0.574, 'reactivePower': -0.0, 'pwrFactor': -1.0, 'voltage': 4.202, 'current': 0.139, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1693229741, 'actEnergyDlvd': 4792414.262, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200673.013, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086791.657, 'instantaneousDemand': 1165.193, 'activePower': 1165.193, 'apparentPower': 1422.665, 'reactivePower': -739.78, 'pwrFactor': 0.819, 'voltage': 233.83, 'current': 6.082, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1693229741, 'actEnergyDlvd': 4792414.262, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200673.013, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086791.657, 'instantaneousDemand': 1165.193, 'activePower': 1165.193, 'apparentPower': 1422.665, 'reactivePower': -739.78, 'pwrFactor': 0.819, 'voltage': 233.83, 'current': 6.082, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1693229741, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5293.076, 'apparentEnergy': 34.274, 'reactEnergyLagg': 457.667, 'reactEnergyLead': 0.33, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 3.804, 'current': 0.0, 'freq': 50.0}, {'eid': 1778385427, 'timestamp': 1693229741, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11987.036, 'apparentEnergy': 17.441, 'reactEnergyLagg': 464.672, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': -0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 0.861, 'current': -0.0, 'freq': 50.0}]}] [2023-08-28 13:33:53][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:33:53][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:34:05][DEBUG] : Signal 15 caught, exiting... [2023-08-28 13:34:05][DEBUG] : Shutdown [2023-08-28 13:34:05][DEBUG] : Removing PID file /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:34:05][INFO] : Send to jeedom : error arret [2023-08-28 13:34:05][DEBUG] : Exit 0 [2023-08-28 13:34:09][INFO] : Start demond [2023-08-28 13:34:09][INFO] : Log level : debug [2023-08-28 13:34:09][DEBUG] : Socket port : 41138 [2023-08-28 13:34:09][DEBUG] : Socket host : localhost [2023-08-28 13:34:09][DEBUG] : PID file : /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:34:09][DEBUG] : Apikey : wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM [2023-08-28 13:34:09][DEBUG] : Device : auto [2023-08-28 13:34:09][DEBUG] : Callback : http://127.0.0.1:80/plugins/enphasesecur/core/php/jeeenphasesecur.php [2023-08-28 13:34:09][DEBUG] : Delais actualisation : 15 [2023-08-28 13:34:09][INFO] : Adresse IP Passerelle : 192.168.0.70 [2023-08-28 13:34:09][DEBUG] : User : m_mickael@yahoo.fr [2023-08-28 13:34:09][DEBUG] : Password : %scream%enphase [2023-08-28 13:34:09][DEBUG] : Numero de serie : 122239084064 [2023-08-28 13:34:09][INFO] : Writing PID 19274 to /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:34:09][INFO] : Init request module v2.31.0 [2023-08-28 13:34:09][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:34:09][DEBUG] : http://127.0.0.1:80 "GET /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 2 [2023-08-28 13:34:24][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-28 13:34:24][INFO] : Recuperation token [2023-08-28 13:34:24][DEBUG] : Starting new HTTPS connection (1): enlighten.enphaseenergy.com:443 [2023-08-28 13:34:32][DEBUG] : https://enlighten.enphaseenergy.com:443 "POST /login/login.json HTTP/1.1" 200 None [2023-08-28 13:34:32][DEBUG] : Starting new HTTPS connection (1): entrez.enphaseenergy.com:443 [2023-08-28 13:34:33][DEBUG] : https://entrez.enphaseenergy.com:443 "POST /tokens HTTP/1.1" 200 None [2023-08-28 13:34:33][DEBUG] : eyJraWQiOiI3ZDEwMDA1ZC03ODk5LTRkMGQtYmNiNC0yNDRmOThlZTE1NmIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJhdWQiOiIxMjIyMzkwODQwNjQiLCJpc3MiOiJFbnRyZXoiLCJlbnBoYXNlVXNlciI6Im93bmVyIiwiZXhwIjoxNzI0NzY1NjczLCJpYXQiOjE2OTMyMjk2NzMsImp0aSI6ImE3ZTIwZTU1LTQ2NTItNDBkZS1iNWFkLTEwNmM1MjEzOTUyNCIsInVzZXJuYW1lIjoibV9taWNrYWVsQHlhaG9vLmZyIn0.6kpBNrpdJ19paCfETGKLBCcF76CIarTMB0ygNZIRI6dnmaGDyE94W331uvMT4OWfQCFaOm_o-gA0UiEnFyVhZQ [2023-08-28 13:34:33][INFO] : Test Token [2023-08-28 13:34:33][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:34:33][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:34:33][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:34:33][DEBUG] : start_tls.complete return_value= [2023-08-28 13:34:33][DEBUG] : send_request_headers.started request= [2023-08-28 13:34:33][DEBUG] : send_request_headers.complete [2023-08-28 13:34:33][DEBUG] : send_request_body.started request= [2023-08-28 13:34:33][DEBUG] : send_request_body.complete [2023-08-28 13:34:33][DEBUG] : receive_response_headers.started request= [2023-08-28 13:34:33][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:36:22 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=exKDq86WGOZvaY7wT0lpAAiUIg8xYDki; Secure; HttpOnly; path=/'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:34:33][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-28 13:34:33][DEBUG] : receive_response_body.started request= [2023-08-28 13:34:33][DEBUG] : receive_response_body.complete [2023-08-28 13:34:33][DEBUG] : response_closed.started [2023-08-28 13:34:33][DEBUG] : response_closed.complete [2023-08-28 13:34:33][DEBUG] : Recuperation Inventaire [2023-08-28 13:34:33][DEBUG] : send_request_headers.started request= [2023-08-28 13:34:33][DEBUG] : send_request_headers.complete [2023-08-28 13:34:33][DEBUG] : send_request_body.started request= [2023-08-28 13:34:33][DEBUG] : send_request_body.complete [2023-08-28 13:34:33][DEBUG] : receive_response_headers.started request= [2023-08-28 13:34:34][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:36:22 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:34:34][INFO] : HTTP Request: GET https://192.168.0.70/inventory.json "HTTP/1.1 200 OK" [2023-08-28 13:34:34][DEBUG] : receive_response_body.started request= [2023-08-28 13:34:34][DEBUG] : receive_response_body.complete [2023-08-28 13:34:34][DEBUG] : response_closed.started [2023-08-28 13:34:34][DEBUG] : response_closed.complete [2023-08-28 13:34:34][INFO] : Send to jeedom : [{'type': 'PCU', 'devices': [{'part_num': '800-01736-r02', 'installed': '1670094034', 'serial_num': '482236085960', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229612', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094034', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390225, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094034', 'serial_num': '482236085940', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229672', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094034', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390481, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094035', 'serial_num': '482236085744', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229762', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094035', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390737, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094035', 'serial_num': '482236085917', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693228890', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094035', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390993, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}]}, {'type': 'ACB', 'devices': []}, {'type': 'NSRB', 'devices': [{'part_num': '800-00598-r04', 'installed': '1670088923', 'serial_num': '122232095000', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693228920', 'admin_state': 1, 'dev_type': 12, 'created_date': '1670088923', 'img_load_date': '1522376696', 'img_pnum_running': '520-00086-r01-v02.12.07', 'ptpn': '540-00139-r01-v02.12.00', 'chaneid': 1811939601, 'device_control': [{'gficlearset': False}], 'producing': False, 'communicating': True, 'provisioned': True, 'operating': True, 'relay': 'closed', 'reason_code': -1, 'reason': 'ok', 'line-count': 1, 'line1-connected': True, 'line2-connected': False, 'line3-connected': False}]}, {'type': 'ESUB', 'devices': []}] [2023-08-28 13:34:34][DEBUG] : Attente de 5s [2023-08-28 13:34:34][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:34:34][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:34:39][INFO] : Recuperation mesures [2023-08-28 13:34:39][DEBUG] : close.started [2023-08-28 13:34:39][DEBUG] : close.complete [2023-08-28 13:34:39][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:34:39][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:34:39][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:34:39][DEBUG] : start_tls.complete return_value= [2023-08-28 13:34:39][DEBUG] : send_request_headers.started request= [2023-08-28 13:34:39][DEBUG] : send_request_headers.complete [2023-08-28 13:34:39][DEBUG] : send_request_body.started request= [2023-08-28 13:34:39][DEBUG] : send_request_body.complete [2023-08-28 13:34:39][DEBUG] : receive_response_headers.started request= [2023-08-28 13:34:39][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:36:28 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:34:39][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-28 13:34:39][DEBUG] : receive_response_body.started request= [2023-08-28 13:34:39][DEBUG] : receive_response_body.complete [2023-08-28 13:34:39][DEBUG] : response_closed.started [2023-08-28 13:34:39][DEBUG] : response_closed.complete [2023-08-28 13:34:39][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1693229760, 'wNow': 383, 'whLifetime': 27588}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1693229788, 'wNow': 368.618, 'whLifetime': 1226398.39, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468471.441, 'vahLifetime': 1557769.625, 'rmsCurrent': 1.594, 'rmsVoltage': 233.843, 'reactPwr': 63.067, 'apprntPwr': 372.968, 'pwrFactor': 0.99, 'whToday': 2819.39, 'whLastSevenDays': 41389.39, 'vahToday': 3424.625, 'varhLeadToday': 0.104, 'varhLagToday': 1000.441, 'lines': [{'wNow': 368.618, 'whLifetime': 1226398.39, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468471.441, 'vahLifetime': 1557769.625, 'rmsCurrent': 1.594, 'rmsVoltage': 233.843, 'reactPwr': 63.067, 'apprntPwr': 372.968, 'pwrFactor': 0.99, 'whToday': 2819.39, 'whLastSevenDays': 41389.39, 'vahToday': 3424.625, 'varhLeadToday': 0.104, 'varhLagToday': 1000.441}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1693229788, 'wNow': 1518.944, 'whLifetime': 5848076.768, 'varhLeadLifetime': 4085651.142, 'varhLagLifetime': -468182.406, 'vahLifetime': 7200691.452, 'rmsCurrent': 7.629, 'rmsVoltage': 233.875, 'reactPwr': -675.589, 'apprntPwr': 1784.271, 'pwrFactor': 0.85, 'whToday': 12293.768, 'whLastSevenDays': 159.768, 'vahToday': 15928.452, 'varhLeadToday': 10322.142, 'varhLagToday': 0.0, 'lines': [{'wNow': 1518.944, 'whLifetime': 5848076.768, 'varhLeadLifetime': 4085651.142, 'varhLagLifetime': -468182.406, 'vahLifetime': 7200691.452, 'rmsCurrent': 7.629, 'rmsVoltage': 233.875, 'reactPwr': -675.589, 'apprntPwr': 1784.271, 'pwrFactor': 0.85, 'whToday': 12293.768, 'whLastSevenDays': 159.768, 'vahToday': 15928.452, 'varhLeadToday': 10322.142, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1693229788, 'wNow': 1150.326, 'whLifetime': 4621993.348, 'varhLeadLifetime': 4086801.246, 'varhLagLifetime': 289.035, 'vahLifetime': 7200691.452, 'rmsCurrent': 6.035, 'rmsVoltage': 233.875, 'reactPwr': -738.656, 'apprntPwr': 1411.366, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 1150.326, 'whLifetime': 4621993.348, 'varhLeadLifetime': 4086801.246, 'varhLagLifetime': 289.035, 'vahLifetime': 7200691.452, 'rmsCurrent': 6.035, 'rmsVoltage': 233.875, 'reactPwr': -738.656, 'apprntPwr': 1411.366, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0}]}], 'storage': [{'type': 'acb', 'activeCount': 0, 'readingTime': 0, 'wNow': 0, 'whNow': 0, 'state': 'idle'}]} [2023-08-28 13:34:39][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:34:39][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:34:40][DEBUG] : send_request_headers.started request= [2023-08-28 13:34:40][DEBUG] : send_request_headers.complete [2023-08-28 13:34:40][DEBUG] : send_request_body.started request= [2023-08-28 13:34:40][DEBUG] : send_request_body.complete [2023-08-28 13:34:40][DEBUG] : receive_response_headers.started request= [2023-08-28 13:34:40][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:36:29 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'604'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:34:40][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-28 13:34:40][DEBUG] : receive_response_body.started request= [2023-08-28 13:34:40][DEBUG] : receive_response_body.complete [2023-08-28 13:34:40][DEBUG] : response_closed.started [2023-08-28 13:34:40][DEBUG] : response_closed.complete [2023-08-28 13:34:40][DEBUG] : Recuperation mesures onduleurs2 [2023-08-28 13:34:40][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1693229611, 'devType': 1, 'lastReportWatts': 89, 'maxReportWatts': 293}, {'serialNumber': '482236085940', 'lastReportDate': 1693229670, 'devType': 1, 'lastReportWatts': 90, 'maxReportWatts': 296}, {'serialNumber': '482236085744', 'lastReportDate': 1693229760, 'devType': 1, 'lastReportWatts': 99, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1693228888, 'devType': 1, 'lastReportWatts': 105, 'maxReportWatts': 296}] [2023-08-28 13:34:40][DEBUG] : Recuperation index [2023-08-28 13:34:40][DEBUG] : send_request_headers.started request= [2023-08-28 13:34:40][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:34:40][DEBUG] : send_request_headers.complete [2023-08-28 13:34:40][DEBUG] : send_request_body.started request= [2023-08-28 13:34:40][DEBUG] : send_request_body.complete [2023-08-28 13:34:40][DEBUG] : receive_response_headers.started request= [2023-08-28 13:34:40][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:36:29 GMT'), (b'Content-Length', b'4849'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:34:40][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-28 13:34:40][DEBUG] : receive_response_body.started request= [2023-08-28 13:34:40][DEBUG] : receive_response_body.complete [2023-08-28 13:34:40][DEBUG] : response_closed.started [2023-08-28 13:34:40][DEBUG] : response_closed.complete [2023-08-28 13:34:40][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1693229789, 'actEnergyDlvd': 1226398.503, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557769.74, 'reactEnergyLagg': 468471.46, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 368.723, 'activePower': 368.723, 'apparentPower': 373.201, 'reactivePower': 62.668, 'pwrFactor': 1.0, 'voltage': 233.873, 'current': 1.595, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1693229789, 'actEnergyDlvd': 1226398.503, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557769.74, 'reactEnergyLagg': 468471.46, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 368.723, 'activePower': 368.723, 'apparentPower': 373.201, 'reactivePower': 62.668, 'pwrFactor': 1.0, 'voltage': 233.873, 'current': 1.595, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1693229789, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7928.781, 'apparentEnergy': 1153.254, 'reactEnergyLagg': 493.222, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.038, 'activePower': -0.038, 'apparentPower': 0.187, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 2.658, 'current': 0.069, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1693229789, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 16303.932, 'apparentEnergy': 3619.311, 'reactEnergyLagg': 494.422, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.283, 'activePower': -0.283, 'apparentPower': 0.57, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 4.202, 'current': 0.135, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1693229789, 'actEnergyDlvd': 4792429.713, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200691.887, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086801.472, 'instantaneousDemand': 1156.862, 'activePower': 1156.862, 'apparentPower': 1415.734, 'reactivePower': -739.799, 'pwrFactor': 0.821, 'voltage': 233.898, 'current': 6.071, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1693229789, 'actEnergyDlvd': 4792429.713, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200691.887, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086801.472, 'instantaneousDemand': 1156.862, 'activePower': 1156.862, 'apparentPower': 1415.734, 'reactivePower': -739.799, 'pwrFactor': 0.821, 'voltage': 233.898, 'current': 6.071, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1693229789, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5293.087, 'apparentEnergy': 34.274, 'reactEnergyLagg': 457.668, 'reactEnergyLead': 0.33, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 3.804, 'current': 0.0, 'freq': 50.0}, {'eid': 1778385427, 'timestamp': 1693229789, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11987.061, 'apparentEnergy': 17.442, 'reactEnergyLagg': 464.673, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': -0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 0.86, 'current': -0.0, 'freq': 50.0}]}] [2023-08-28 13:34:40][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:34:40][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:34:40][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:34:55][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-28 13:34:55][INFO] : Test Token [2023-08-28 13:34:55][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:34:55][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:34:55][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:34:56][DEBUG] : start_tls.complete return_value= [2023-08-28 13:34:56][DEBUG] : send_request_headers.started request= [2023-08-28 13:34:56][DEBUG] : send_request_headers.complete [2023-08-28 13:34:56][DEBUG] : send_request_body.started request= [2023-08-28 13:34:56][DEBUG] : send_request_body.complete [2023-08-28 13:34:56][DEBUG] : receive_response_headers.started request= [2023-08-28 13:34:56][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:36:44 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=exKDq86WGOZvaY7wT0lpAAiUIg8xYDki; Secure; HttpOnly; path=/'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:34:56][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-28 13:34:56][DEBUG] : receive_response_body.started request= [2023-08-28 13:34:56][DEBUG] : receive_response_body.complete [2023-08-28 13:34:56][DEBUG] : response_closed.started [2023-08-28 13:34:56][DEBUG] : response_closed.complete [2023-08-28 13:34:56][INFO] : Recuperation mesures [2023-08-28 13:34:56][DEBUG] : send_request_headers.started request= [2023-08-28 13:34:56][DEBUG] : send_request_headers.complete [2023-08-28 13:34:56][DEBUG] : send_request_body.started request= [2023-08-28 13:34:56][DEBUG] : send_request_body.complete [2023-08-28 13:34:56][DEBUG] : receive_response_headers.started request= [2023-08-28 13:34:56][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:36:44 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:34:56][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-28 13:34:56][DEBUG] : receive_response_body.started request= [2023-08-28 13:34:56][DEBUG] : receive_response_body.complete [2023-08-28 13:34:56][DEBUG] : response_closed.started [2023-08-28 13:34:56][DEBUG] : response_closed.complete [2023-08-28 13:34:56][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1693229790, 'wNow': 376, 'whLifetime': 27613}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1693229804, 'wNow': 368.284, 'whLifetime': 1226400.018, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468471.719, 'vahLifetime': 1557771.273, 'rmsCurrent': 1.596, 'rmsVoltage': 233.729, 'reactPwr': 63.075, 'apprntPwr': 373.057, 'pwrFactor': 0.98, 'whToday': 2821.018, 'whLastSevenDays': 41391.018, 'vahToday': 3426.273, 'varhLeadToday': 0.104, 'varhLagToday': 1000.719, 'lines': [{'wNow': 368.284, 'whLifetime': 1226400.018, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468471.719, 'vahLifetime': 1557771.273, 'rmsCurrent': 1.596, 'rmsVoltage': 233.729, 'reactPwr': 63.075, 'apprntPwr': 373.057, 'pwrFactor': 0.98, 'whToday': 2821.018, 'whLastSevenDays': 41391.018, 'vahToday': 3426.273, 'varhLeadToday': 0.104, 'varhLagToday': 1000.719}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1693229804, 'wNow': 1533.021, 'whLifetime': 5848083.516, 'varhLeadLifetime': 4085654.412, 'varhLagLifetime': -468182.684, 'vahLifetime': 7200697.719, 'rmsCurrent': 7.697, 'rmsVoltage': 233.846, 'reactPwr': -677.554, 'apprntPwr': 1800.011, 'pwrFactor': 0.85, 'whToday': 12300.516, 'whLastSevenDays': 166.516, 'vahToday': 15934.719, 'varhLeadToday': 10325.412, 'varhLagToday': 0.0, 'lines': [{'wNow': 1533.021, 'whLifetime': 5848083.516, 'varhLeadLifetime': 4085654.412, 'varhLagLifetime': -468182.684, 'vahLifetime': 7200697.719, 'rmsCurrent': 7.697, 'rmsVoltage': 233.846, 'reactPwr': -677.554, 'apprntPwr': 1800.011, 'pwrFactor': 0.85, 'whToday': 12300.516, 'whLastSevenDays': 166.516, 'vahToday': 15934.719, 'varhLeadToday': 10325.412, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1693229804, 'wNow': 1164.737, 'whLifetime': 4621998.468, 'varhLeadLifetime': 4086804.516, 'varhLagLifetime': 289.035, 'vahLifetime': 7200697.719, 'rmsCurrent': 6.101, 'rmsVoltage': 233.846, 'reactPwr': -740.629, 'apprntPwr': 1426.799, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 1164.737, 'whLifetime': 4621998.468, 'varhLeadLifetime': 4086804.516, 'varhLagLifetime': 289.035, 'vahLifetime': 7200697.719, 'rmsCurrent': 6.101, 'rmsVoltage': 233.846, 'reactPwr': -740.629, 'apprntPwr': 1426.799, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0}]}], 'storage': [{'type': 'acb', 'activeCount': 0, 'readingTime': 0, 'wNow': 0, 'whNow': 0, 'state': 'idle'}]} [2023-08-28 13:34:56][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:34:56][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:34:57][DEBUG] : send_request_headers.started request= [2023-08-28 13:34:57][DEBUG] : send_request_headers.complete [2023-08-28 13:34:57][DEBUG] : send_request_body.started request= [2023-08-28 13:34:57][DEBUG] : send_request_body.complete [2023-08-28 13:34:57][DEBUG] : receive_response_headers.started request= [2023-08-28 13:34:57][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:36:45 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'603'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:34:57][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-28 13:34:57][DEBUG] : receive_response_body.started request= [2023-08-28 13:34:57][DEBUG] : receive_response_body.complete [2023-08-28 13:34:57][DEBUG] : response_closed.started [2023-08-28 13:34:57][DEBUG] : response_closed.complete [2023-08-28 13:34:57][DEBUG] : Recuperation mesures onduleurs [2023-08-28 13:34:57][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1693229611, 'devType': 1, 'lastReportWatts': 89, 'maxReportWatts': 293}, {'serialNumber': '482236085940', 'lastReportDate': 1693229670, 'devType': 1, 'lastReportWatts': 90, 'maxReportWatts': 296}, {'serialNumber': '482236085744', 'lastReportDate': 1693229760, 'devType': 1, 'lastReportWatts': 99, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1693229790, 'devType': 1, 'lastReportWatts': 98, 'maxReportWatts': 296}] [2023-08-28 13:34:57][DEBUG] : Recuperation index [2023-08-28 13:34:57][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:34:57][DEBUG] : send_request_headers.started request= [2023-08-28 13:34:57][DEBUG] : send_request_headers.complete [2023-08-28 13:34:57][DEBUG] : send_request_body.started request= [2023-08-28 13:34:57][DEBUG] : send_request_body.complete [2023-08-28 13:34:57][DEBUG] : receive_response_headers.started request= [2023-08-28 13:34:57][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:36:45 GMT'), (b'Content-Length', b'4851'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:34:57][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-28 13:34:57][DEBUG] : receive_response_body.started request= [2023-08-28 13:34:57][DEBUG] : receive_response_body.complete [2023-08-28 13:34:57][DEBUG] : response_closed.started [2023-08-28 13:34:57][DEBUG] : response_closed.complete [2023-08-28 13:34:57][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1693229805, 'actEnergyDlvd': 1226400.12, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557771.377, 'reactEnergyLagg': 468471.736, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 368.528, 'activePower': 368.528, 'apparentPower': 372.987, 'reactivePower': 62.896, 'pwrFactor': 0.985, 'voltage': 233.812, 'current': 1.595, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1693229805, 'actEnergyDlvd': 1226400.12, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557771.377, 'reactEnergyLagg': 468471.736, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 368.528, 'activePower': 368.528, 'apparentPower': 372.987, 'reactivePower': 62.896, 'pwrFactor': 0.985, 'voltage': 233.812, 'current': 1.595, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1693229805, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7928.786, 'apparentEnergy': 1153.254, 'reactEnergyLagg': 493.223, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.044, 'activePower': -0.044, 'apparentPower': 0.184, 'reactivePower': 0.0, 'pwrFactor': -1.0, 'voltage': 2.658, 'current': 0.068, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1693229805, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 16303.943, 'apparentEnergy': 3619.313, 'reactEnergyLagg': 494.423, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.24, 'activePower': -0.24, 'apparentPower': 0.575, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 4.202, 'current': 0.136, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1693229805, 'actEnergyDlvd': 4792434.801, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200698.115, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086804.722, 'instantaneousDemand': 1168.42, 'activePower': 1168.42, 'apparentPower': 1426.482, 'reactivePower': -741.283, 'pwrFactor': 0.821, 'voltage': 233.936, 'current': 6.097, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1693229805, 'actEnergyDlvd': 4792434.801, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200698.115, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086804.722, 'instantaneousDemand': 1168.42, 'activePower': 1168.42, 'apparentPower': 1426.482, 'reactivePower': -741.283, 'pwrFactor': 0.821, 'voltage': 233.936, 'current': 6.097, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1693229805, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5293.091, 'apparentEnergy': 34.274, 'reactEnergyLagg': 457.668, 'reactEnergyLead': 0.33, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 3.804, 'current': 0.0, 'freq': 50.0}, {'eid': 1778385427, 'timestamp': 1693229805, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11987.07, 'apparentEnergy': 17.442, 'reactEnergyLagg': 464.674, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': -0.0, 'reactivePower': 0.0, 'pwrFactor': -1.0, 'voltage': 0.861, 'current': -0.0, 'freq': 50.0}]}] [2023-08-28 13:34:57][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:34:57][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:34:57][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:35:07][DEBUG] : Signal 15 caught, exiting... [2023-08-28 13:35:07][DEBUG] : Shutdown [2023-08-28 13:35:07][DEBUG] : Removing PID file /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:35:07][INFO] : Send to jeedom : error arret [2023-08-28 13:35:07][DEBUG] : Exit 0 [2023-08-28 13:35:12][INFO] : Start demond [2023-08-28 13:35:12][INFO] : Log level : debug [2023-08-28 13:35:12][DEBUG] : Socket port : 65484 [2023-08-28 13:35:12][DEBUG] : Socket host : localhost [2023-08-28 13:35:12][DEBUG] : PID file : /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:35:12][DEBUG] : Apikey : wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM [2023-08-28 13:35:12][DEBUG] : Device : auto [2023-08-28 13:35:12][DEBUG] : Callback : http://127.0.0.1:80/plugins/enphasesecur/core/php/jeeenphasesecur.php [2023-08-28 13:35:12][DEBUG] : Delais actualisation : 15 [2023-08-28 13:35:12][INFO] : Adresse IP Passerelle : 192.168.0.70 [2023-08-28 13:35:12][DEBUG] : User : m_mickael@yahoo.fr [2023-08-28 13:35:12][DEBUG] : Password : %scream%enphase [2023-08-28 13:35:12][DEBUG] : Numero de serie : 122239084064 [2023-08-28 13:35:12][INFO] : Writing PID 21317 to /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:35:12][INFO] : Init request module v2.31.0 [2023-08-28 13:35:12][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:35:12][DEBUG] : http://127.0.0.1:80 "GET /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 2 [2023-08-28 13:35:27][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-28 13:35:27][INFO] : Recuperation token [2023-08-28 13:35:27][DEBUG] : Starting new HTTPS connection (1): enlighten.enphaseenergy.com:443 [2023-08-28 13:35:30][DEBUG] : https://enlighten.enphaseenergy.com:443 "POST /login/login.json HTTP/1.1" 200 None [2023-08-28 13:35:30][DEBUG] : Starting new HTTPS connection (1): entrez.enphaseenergy.com:443 [2023-08-28 13:35:30][DEBUG] : https://entrez.enphaseenergy.com:443 "POST /tokens HTTP/1.1" 200 None [2023-08-28 13:35:30][DEBUG] : eyJraWQiOiI3ZDEwMDA1ZC03ODk5LTRkMGQtYmNiNC0yNDRmOThlZTE1NmIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJhdWQiOiIxMjIyMzkwODQwNjQiLCJpc3MiOiJFbnRyZXoiLCJlbnBoYXNlVXNlciI6Im93bmVyIiwiZXhwIjoxNzI0NzY1NzMwLCJpYXQiOjE2OTMyMjk3MzAsImp0aSI6ImJjYTdhYTUwLTQyNzctNGZmNC1iY2ZmLWUxOTA2YWNjN2MzMyIsInVzZXJuYW1lIjoibV9taWNrYWVsQHlhaG9vLmZyIn0.jzIRhzJBiDqDkr0SDuy31S3hCb-zLY5ZBBBKh4uWyMOoG651lNt_dHhFWWpIhTqLO0nWnl5idb6WDeXsX84E5Q [2023-08-28 13:35:30][INFO] : Test Token [2023-08-28 13:35:30][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:35:30][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:35:30][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:35:31][DEBUG] : start_tls.complete return_value= [2023-08-28 13:35:31][DEBUG] : send_request_headers.started request= [2023-08-28 13:35:31][DEBUG] : send_request_headers.complete [2023-08-28 13:35:31][DEBUG] : send_request_body.started request= [2023-08-28 13:35:31][DEBUG] : send_request_body.complete [2023-08-28 13:35:31][DEBUG] : receive_response_headers.started request= [2023-08-28 13:35:31][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:37:19 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=XDTNAdpUsijjUXnA6OfqS2weI4kVspCI; Secure; HttpOnly; path=/'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:35:31][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-28 13:35:31][DEBUG] : receive_response_body.started request= [2023-08-28 13:35:31][DEBUG] : receive_response_body.complete [2023-08-28 13:35:31][DEBUG] : response_closed.started [2023-08-28 13:35:31][DEBUG] : response_closed.complete [2023-08-28 13:35:31][DEBUG] : Recuperation Inventaire [2023-08-28 13:35:31][DEBUG] : send_request_headers.started request= [2023-08-28 13:35:31][DEBUG] : send_request_headers.complete [2023-08-28 13:35:31][DEBUG] : send_request_body.started request= [2023-08-28 13:35:31][DEBUG] : send_request_body.complete [2023-08-28 13:35:31][DEBUG] : receive_response_headers.started request= [2023-08-28 13:35:31][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:37:20 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:35:31][INFO] : HTTP Request: GET https://192.168.0.70/inventory.json "HTTP/1.1 200 OK" [2023-08-28 13:35:31][DEBUG] : receive_response_body.started request= [2023-08-28 13:35:31][DEBUG] : receive_response_body.complete [2023-08-28 13:35:31][DEBUG] : response_closed.started [2023-08-28 13:35:31][DEBUG] : response_closed.complete [2023-08-28 13:35:31][INFO] : Send to jeedom : [{'type': 'PCU', 'devices': [{'part_num': '800-01736-r02', 'installed': '1670094034', 'serial_num': '482236085960', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229612', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094034', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390225, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094034', 'serial_num': '482236085940', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229672', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094034', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390481, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094035', 'serial_num': '482236085744', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229762', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094035', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390737, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094035', 'serial_num': '482236085917', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229792', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094035', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390993, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}]}, {'type': 'ACB', 'devices': []}, {'type': 'NSRB', 'devices': [{'part_num': '800-00598-r04', 'installed': '1670088923', 'serial_num': '122232095000', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229822', 'admin_state': 1, 'dev_type': 12, 'created_date': '1670088923', 'img_load_date': '1522376696', 'img_pnum_running': '520-00086-r01-v02.12.07', 'ptpn': '540-00139-r01-v02.12.00', 'chaneid': 1811939601, 'device_control': [{'gficlearset': False}], 'producing': False, 'communicating': True, 'provisioned': True, 'operating': True, 'relay': 'closed', 'reason_code': -1, 'reason': 'ok', 'line-count': 1, 'line1-connected': True, 'line2-connected': False, 'line3-connected': False}]}, {'type': 'ESUB', 'devices': []}] [2023-08-28 13:35:31][DEBUG] : Attente de 5s [2023-08-28 13:35:31][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:35:32][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:35:36][INFO] : Recuperation mesures [2023-08-28 13:35:36][DEBUG] : close.started [2023-08-28 13:35:36][DEBUG] : close.complete [2023-08-28 13:35:36][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:35:37][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:35:37][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:35:37][DEBUG] : start_tls.complete return_value= [2023-08-28 13:35:37][DEBUG] : send_request_headers.started request= [2023-08-28 13:35:37][DEBUG] : send_request_headers.complete [2023-08-28 13:35:37][DEBUG] : send_request_body.started request= [2023-08-28 13:35:37][DEBUG] : send_request_body.complete [2023-08-28 13:35:37][DEBUG] : receive_response_headers.started request= [2023-08-28 13:35:37][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:37:26 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:35:37][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-28 13:35:37][DEBUG] : receive_response_body.started request= [2023-08-28 13:35:37][DEBUG] : receive_response_body.complete [2023-08-28 13:35:37][DEBUG] : response_closed.started [2023-08-28 13:35:37][DEBUG] : response_closed.complete [2023-08-28 13:35:37][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1693229822, 'wNow': 376, 'whLifetime': 27613}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1693229846, 'wNow': 370.873, 'whLifetime': 1226404.25, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468472.444, 'vahLifetime': 1557775.558, 'rmsCurrent': 1.597, 'rmsVoltage': 234.58, 'reactPwr': 63.712, 'apprntPwr': 374.65, 'pwrFactor': 0.96, 'whToday': 2825.25, 'whLastSevenDays': 41395.25, 'vahToday': 3430.558, 'varhLeadToday': 0.104, 'varhLagToday': 1001.444, 'lines': [{'wNow': 370.873, 'whLifetime': 1226404.25, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468472.444, 'vahLifetime': 1557775.558, 'rmsCurrent': 1.597, 'rmsVoltage': 234.58, 'reactPwr': 63.712, 'apprntPwr': 374.65, 'pwrFactor': 0.96, 'whToday': 2825.25, 'whLastSevenDays': 41395.25, 'vahToday': 3430.558, 'varhLeadToday': 0.104, 'varhLagToday': 1001.444}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1693229846, 'wNow': 1510.096, 'whLifetime': 5848101.044, 'varhLeadLifetime': 4085662.92, 'varhLagLifetime': -468183.409, 'vahLifetime': 7200714.0, 'rmsCurrent': 7.592, 'rmsVoltage': 234.59, 'reactPwr': -676.804, 'apprntPwr': 1781.045, 'pwrFactor': 0.85, 'whToday': 12318.044, 'whLastSevenDays': 184.044, 'vahToday': 15951.0, 'varhLeadToday': 10333.92, 'varhLagToday': 0.0, 'lines': [{'wNow': 1510.096, 'whLifetime': 5848101.044, 'varhLeadLifetime': 4085662.92, 'varhLagLifetime': -468183.409, 'vahLifetime': 7200714.0, 'rmsCurrent': 7.592, 'rmsVoltage': 234.59, 'reactPwr': -676.804, 'apprntPwr': 1781.045, 'pwrFactor': 0.85, 'whToday': 12318.044, 'whLastSevenDays': 184.044, 'vahToday': 15951.0, 'varhLeadToday': 10333.92, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1693229846, 'wNow': 1139.223, 'whLifetime': 4622011.765, 'varhLeadLifetime': 4086813.024, 'varhLagLifetime': 289.035, 'vahLifetime': 7200714.0, 'rmsCurrent': 5.995, 'rmsVoltage': 234.59, 'reactPwr': -740.515, 'apprntPwr': 1406.348, 'pwrFactor': 0.81, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 1139.223, 'whLifetime': 4622011.765, 'varhLeadLifetime': 4086813.024, 'varhLagLifetime': 289.035, 'vahLifetime': 7200714.0, 'rmsCurrent': 5.995, 'rmsVoltage': 234.59, 'reactPwr': -740.515, 'apprntPwr': 1406.348, 'pwrFactor': 0.81, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0}]}], 'storage': [{'type': 'acb', 'activeCount': 0, 'readingTime': 0, 'wNow': 0, 'whNow': 0, 'state': 'idle'}]} [2023-08-28 13:35:37][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:35:37][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:35:38][DEBUG] : send_request_headers.started request= [2023-08-28 13:35:38][DEBUG] : send_request_headers.complete [2023-08-28 13:35:38][DEBUG] : send_request_body.started request= [2023-08-28 13:35:38][DEBUG] : send_request_body.complete [2023-08-28 13:35:38][DEBUG] : receive_response_headers.started request= [2023-08-28 13:35:38][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:37:27 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'603'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:35:38][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-28 13:35:38][DEBUG] : receive_response_body.started request= [2023-08-28 13:35:38][DEBUG] : receive_response_body.complete [2023-08-28 13:35:38][DEBUG] : response_closed.started [2023-08-28 13:35:38][DEBUG] : response_closed.complete [2023-08-28 13:35:38][DEBUG] : Recuperation mesures onduleurs2 [2023-08-28 13:35:38][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1693229611, 'devType': 1, 'lastReportWatts': 89, 'maxReportWatts': 293}, {'serialNumber': '482236085940', 'lastReportDate': 1693229670, 'devType': 1, 'lastReportWatts': 90, 'maxReportWatts': 296}, {'serialNumber': '482236085744', 'lastReportDate': 1693229760, 'devType': 1, 'lastReportWatts': 99, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1693229790, 'devType': 1, 'lastReportWatts': 98, 'maxReportWatts': 296}] [2023-08-28 13:35:38][DEBUG] : Recuperation index [2023-08-28 13:35:38][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:35:38][DEBUG] : send_request_headers.started request= [2023-08-28 13:35:38][DEBUG] : send_request_headers.complete [2023-08-28 13:35:38][DEBUG] : send_request_body.started request= [2023-08-28 13:35:38][DEBUG] : send_request_body.complete [2023-08-28 13:35:38][DEBUG] : receive_response_headers.started request= [2023-08-28 13:35:38][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:35:38][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:37:27 GMT'), (b'Content-Length', b'4851'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:35:38][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-28 13:35:38][DEBUG] : receive_response_body.started request= [2023-08-28 13:35:38][DEBUG] : receive_response_body.complete [2023-08-28 13:35:38][DEBUG] : response_closed.started [2023-08-28 13:35:38][DEBUG] : response_closed.complete [2023-08-28 13:35:38][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1693229846, 'actEnergyDlvd': 1226404.363, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557775.672, 'reactEnergyLagg': 468472.464, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 370.841, 'activePower': 370.841, 'apparentPower': 374.909, 'reactivePower': 63.947, 'pwrFactor': 1.0, 'voltage': 234.592, 'current': 1.598, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1693229846, 'actEnergyDlvd': 1226404.363, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557775.672, 'reactEnergyLagg': 468472.464, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 370.841, 'activePower': 370.841, 'apparentPower': 374.909, 'reactivePower': 63.947, 'pwrFactor': 1.0, 'voltage': 234.592, 'current': 1.598, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1693229846, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7928.8, 'apparentEnergy': 1153.257, 'reactEnergyLagg': 493.223, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.05, 'activePower': -0.05, 'apparentPower': 0.186, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 2.658, 'current': 0.07, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1693229846, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 16303.973, 'apparentEnergy': 3619.32, 'reactEnergyLagg': 494.423, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.21, 'activePower': -0.21, 'apparentPower': 0.569, 'reactivePower': -0.0, 'pwrFactor': -1.0, 'voltage': 4.202, 'current': 0.135, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1693229846, 'actEnergyDlvd': 4792448.129, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200714.434, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086813.251, 'instantaneousDemand': 1152.565, 'activePower': 1152.565, 'apparentPower': 1413.474, 'reactivePower': -742.136, 'pwrFactor': 0.82, 'voltage': 234.611, 'current': 6.06, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1693229846, 'actEnergyDlvd': 4792448.129, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200714.434, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086813.251, 'instantaneousDemand': 1152.565, 'activePower': 1152.565, 'apparentPower': 1413.474, 'reactivePower': -742.136, 'pwrFactor': 0.82, 'voltage': 234.611, 'current': 6.06, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1693229846, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5293.1, 'apparentEnergy': 34.274, 'reactEnergyLagg': 457.668, 'reactEnergyLead': 0.33, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 3.804, 'current': 0.0, 'freq': 50.0}, {'eid': 1778385427, 'timestamp': 1693229846, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11987.091, 'apparentEnergy': 17.442, 'reactEnergyLagg': 464.675, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': -0.0, 'reactivePower': 0.0, 'pwrFactor': -1.0, 'voltage': 0.861, 'current': -0.0, 'freq': 50.0}]}] [2023-08-28 13:35:38][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:35:38][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:35:53][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-28 13:35:53][INFO] : Test Token [2023-08-28 13:35:53][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:35:53][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:35:53][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:35:54][DEBUG] : start_tls.complete return_value= [2023-08-28 13:35:54][DEBUG] : send_request_headers.started request= [2023-08-28 13:35:54][DEBUG] : send_request_headers.complete [2023-08-28 13:35:54][DEBUG] : send_request_body.started request= [2023-08-28 13:35:54][DEBUG] : send_request_body.complete [2023-08-28 13:35:54][DEBUG] : receive_response_headers.started request= [2023-08-28 13:35:54][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:37:42 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=XDTNAdpUsijjUXnA6OfqS2weI4kVspCI; Secure; HttpOnly; path=/'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:35:54][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-28 13:35:54][DEBUG] : receive_response_body.started request= [2023-08-28 13:35:54][DEBUG] : receive_response_body.complete [2023-08-28 13:35:54][DEBUG] : response_closed.started [2023-08-28 13:35:54][DEBUG] : response_closed.complete [2023-08-28 13:35:54][INFO] : Recuperation mesures [2023-08-28 13:35:54][DEBUG] : send_request_headers.started request= [2023-08-28 13:35:54][DEBUG] : send_request_headers.complete [2023-08-28 13:35:54][DEBUG] : send_request_body.started request= [2023-08-28 13:35:54][DEBUG] : send_request_body.complete [2023-08-28 13:35:54][DEBUG] : receive_response_headers.started request= [2023-08-28 13:35:54][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:37:42 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:35:54][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-28 13:35:54][DEBUG] : receive_response_body.started request= [2023-08-28 13:35:54][DEBUG] : receive_response_body.complete [2023-08-28 13:35:54][DEBUG] : response_closed.started [2023-08-28 13:35:54][DEBUG] : response_closed.complete [2023-08-28 13:35:54][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1693229822, 'wNow': 376, 'whLifetime': 27613}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1693229862, 'wNow': 370.729, 'whLifetime': 1226405.984, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468472.742, 'vahLifetime': 1557777.313, 'rmsCurrent': 1.597, 'rmsVoltage': 234.587, 'reactPwr': 63.14, 'apprntPwr': 374.609, 'pwrFactor': 1.0, 'whToday': 2826.984, 'whLastSevenDays': 41396.984, 'vahToday': 3432.313, 'varhLeadToday': 0.104, 'varhLagToday': 1001.742, 'lines': [{'wNow': 370.729, 'whLifetime': 1226405.984, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468472.742, 'vahLifetime': 1557777.313, 'rmsCurrent': 1.597, 'rmsVoltage': 234.587, 'reactPwr': 63.14, 'apprntPwr': 374.609, 'pwrFactor': 1.0, 'whToday': 2826.984, 'whLastSevenDays': 41396.984, 'vahToday': 3432.313, 'varhLeadToday': 0.104, 'varhLagToday': 1001.742}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1693229862, 'wNow': 1535.778, 'whLifetime': 5848108.064, 'varhLeadLifetime': 4085666.378, 'varhLagLifetime': -468183.707, 'vahLifetime': 7200720.514, 'rmsCurrent': 7.673, 'rmsVoltage': 234.74, 'reactPwr': -680.879, 'apprntPwr': 1801.275, 'pwrFactor': 0.85, 'whToday': 12325.064, 'whLastSevenDays': 191.064, 'vahToday': 15957.514, 'varhLeadToday': 10337.378, 'varhLagToday': 0.0, 'lines': [{'wNow': 1535.778, 'whLifetime': 5848108.064, 'varhLeadLifetime': 4085666.378, 'varhLagLifetime': -468183.707, 'vahLifetime': 7200720.514, 'rmsCurrent': 7.673, 'rmsVoltage': 234.74, 'reactPwr': -680.879, 'apprntPwr': 1801.275, 'pwrFactor': 0.85, 'whToday': 12325.064, 'whLastSevenDays': 191.064, 'vahToday': 15957.514, 'varhLeadToday': 10337.378, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1693229862, 'wNow': 1165.049, 'whLifetime': 4622017.051, 'varhLeadLifetime': 4086816.482, 'varhLagLifetime': 289.035, 'vahLifetime': 7200720.514, 'rmsCurrent': 6.076, 'rmsVoltage': 234.74, 'reactPwr': -744.019, 'apprntPwr': 1426.305, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 1165.049, 'whLifetime': 4622017.051, 'varhLeadLifetime': 4086816.482, 'varhLagLifetime': 289.035, 'vahLifetime': 7200720.514, 'rmsCurrent': 6.076, 'rmsVoltage': 234.74, 'reactPwr': -744.019, 'apprntPwr': 1426.305, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0}]}], 'storage': [{'type': 'acb', 'activeCount': 0, 'readingTime': 0, 'wNow': 0, 'whNow': 0, 'state': 'idle'}]} [2023-08-28 13:35:54][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:35:54][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:35:55][DEBUG] : send_request_headers.started request= [2023-08-28 13:35:55][DEBUG] : send_request_headers.complete [2023-08-28 13:35:55][DEBUG] : send_request_body.started request= [2023-08-28 13:35:55][DEBUG] : send_request_body.complete [2023-08-28 13:35:55][DEBUG] : receive_response_headers.started request= [2023-08-28 13:35:55][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:37:43 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'603'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:35:55][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-28 13:35:55][DEBUG] : receive_response_body.started request= [2023-08-28 13:35:55][DEBUG] : receive_response_body.complete [2023-08-28 13:35:55][DEBUG] : response_closed.started [2023-08-28 13:35:55][DEBUG] : response_closed.complete [2023-08-28 13:35:55][DEBUG] : Recuperation mesures onduleurs [2023-08-28 13:35:55][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1693229611, 'devType': 1, 'lastReportWatts': 89, 'maxReportWatts': 293}, {'serialNumber': '482236085940', 'lastReportDate': 1693229670, 'devType': 1, 'lastReportWatts': 90, 'maxReportWatts': 296}, {'serialNumber': '482236085744', 'lastReportDate': 1693229760, 'devType': 1, 'lastReportWatts': 99, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1693229790, 'devType': 1, 'lastReportWatts': 98, 'maxReportWatts': 296}] [2023-08-28 13:35:55][DEBUG] : Recuperation index [2023-08-28 13:35:55][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:35:55][DEBUG] : send_request_headers.started request= [2023-08-28 13:35:55][DEBUG] : send_request_headers.complete [2023-08-28 13:35:55][DEBUG] : send_request_body.started request= [2023-08-28 13:35:55][DEBUG] : send_request_body.complete [2023-08-28 13:35:55][DEBUG] : receive_response_headers.started request= [2023-08-28 13:35:55][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:35:55][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:37:44 GMT'), (b'Content-Length', b'4849'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:35:55][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-28 13:35:55][DEBUG] : receive_response_body.started request= [2023-08-28 13:35:55][DEBUG] : receive_response_body.complete [2023-08-28 13:35:55][DEBUG] : response_closed.started [2023-08-28 13:35:55][DEBUG] : response_closed.complete [2023-08-28 13:35:55][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1693229863, 'actEnergyDlvd': 1226406.096, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557777.427, 'reactEnergyLagg': 468472.761, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 370.533, 'activePower': 370.533, 'apparentPower': 374.579, 'reactivePower': 63.553, 'pwrFactor': 0.98, 'voltage': 234.582, 'current': 1.597, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1693229863, 'actEnergyDlvd': 1226406.096, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557777.427, 'reactEnergyLagg': 468472.761, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 370.533, 'activePower': 370.533, 'apparentPower': 374.579, 'reactivePower': 63.553, 'pwrFactor': 0.98, 'voltage': 234.582, 'current': 1.597, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1693229863, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7928.807, 'apparentEnergy': 1153.257, 'reactEnergyLagg': 493.224, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.042, 'activePower': -0.042, 'apparentPower': 0.185, 'reactivePower': 0.0, 'pwrFactor': -1.0, 'voltage': 2.658, 'current': 0.069, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1693229863, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 16303.984, 'apparentEnergy': 3619.322, 'reactEnergyLagg': 494.424, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.274, 'activePower': -0.274, 'apparentPower': 0.565, 'reactivePower': 0.073, 'pwrFactor': 0.0, 'voltage': 4.202, 'current': 0.135, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1693229863, 'actEnergyDlvd': 4792453.414, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200720.948, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086816.709, 'instantaneousDemand': 1165.115, 'activePower': 1165.115, 'apparentPower': 1425.103, 'reactivePower': -743.38, 'pwrFactor': 0.819, 'voltage': 234.731, 'current': 6.069, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1693229863, 'actEnergyDlvd': 4792453.414, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200720.948, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086816.709, 'instantaneousDemand': 1165.115, 'activePower': 1165.115, 'apparentPower': 1425.103, 'reactivePower': -743.38, 'pwrFactor': 0.819, 'voltage': 234.731, 'current': 6.069, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1693229863, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5293.104, 'apparentEnergy': 34.274, 'reactEnergyLagg': 457.669, 'reactEnergyLead': 0.33, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 3.804, 'current': 0.0, 'freq': 50.0}, {'eid': 1778385427, 'timestamp': 1693229863, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11987.1, 'apparentEnergy': 17.442, 'reactEnergyLagg': 464.675, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': -0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 0.861, 'current': -0.0, 'freq': 50.0}]}] [2023-08-28 13:35:55][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:35:55][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:36:05][DEBUG] : Signal 15 caught, exiting... [2023-08-28 13:36:05][DEBUG] : Shutdown [2023-08-28 13:36:05][DEBUG] : Removing PID file /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:36:05][INFO] : Send to jeedom : error arret [2023-08-28 13:36:05][DEBUG] : Exit 0 [2023-08-28 13:36:09][INFO] : Start demond [2023-08-28 13:36:09][INFO] : Log level : debug [2023-08-28 13:36:09][DEBUG] : Socket port : 51614 [2023-08-28 13:36:09][DEBUG] : Socket host : localhost [2023-08-28 13:36:09][DEBUG] : PID file : /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:36:09][DEBUG] : Apikey : wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM [2023-08-28 13:36:09][DEBUG] : Device : auto [2023-08-28 13:36:09][DEBUG] : Callback : http://127.0.0.1:80/plugins/enphasesecur/core/php/jeeenphasesecur.php [2023-08-28 13:36:09][DEBUG] : Delais actualisation : 15 [2023-08-28 13:36:09][INFO] : Adresse IP Passerelle : 192.168.0.70 [2023-08-28 13:36:09][DEBUG] : User : m_mickael@yahoo.fr [2023-08-28 13:36:09][DEBUG] : Password : %scream%enphase [2023-08-28 13:36:09][DEBUG] : Numero de serie : 122239084064 [2023-08-28 13:36:09][INFO] : Writing PID 23277 to /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:36:09][INFO] : Init request module v2.31.0 [2023-08-28 13:36:09][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:36:09][DEBUG] : http://127.0.0.1:80 "GET /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 2 [2023-08-28 13:36:24][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-28 13:36:24][INFO] : Recuperation token [2023-08-28 13:36:24][DEBUG] : Starting new HTTPS connection (1): enlighten.enphaseenergy.com:443 [2023-08-28 13:36:27][DEBUG] : https://enlighten.enphaseenergy.com:443 "POST /login/login.json HTTP/1.1" 200 None [2023-08-28 13:36:27][DEBUG] : Starting new HTTPS connection (1): entrez.enphaseenergy.com:443 [2023-08-28 13:36:28][DEBUG] : https://entrez.enphaseenergy.com:443 "POST /tokens HTTP/1.1" 200 None [2023-08-28 13:36:28][DEBUG] : eyJraWQiOiI3ZDEwMDA1ZC03ODk5LTRkMGQtYmNiNC0yNDRmOThlZTE1NmIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJhdWQiOiIxMjIyMzkwODQwNjQiLCJpc3MiOiJFbnRyZXoiLCJlbnBoYXNlVXNlciI6Im93bmVyIiwiZXhwIjoxNzI0NzY1Nzg4LCJpYXQiOjE2OTMyMjk3ODgsImp0aSI6IjMzMTEyODlhLTM4ZmEtNDY1OS05MjRhLTBkYzllYWU0OGE1OSIsInVzZXJuYW1lIjoibV9taWNrYWVsQHlhaG9vLmZyIn0.uv2QRO_4HG80W8aL5wnFkYgQPrEaKqrCU7skVXH1ZuTQmP1yie6ajYkesflzLG-ufdsxJq_c55KEq4DKYV3yTw [2023-08-28 13:36:28][INFO] : Test Token [2023-08-28 13:36:28][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:36:28][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:36:28][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:36:28][DEBUG] : start_tls.complete return_value= [2023-08-28 13:36:28][DEBUG] : send_request_headers.started request= [2023-08-28 13:36:28][DEBUG] : send_request_headers.complete [2023-08-28 13:36:28][DEBUG] : send_request_body.started request= [2023-08-28 13:36:28][DEBUG] : send_request_body.complete [2023-08-28 13:36:28][DEBUG] : receive_response_headers.started request= [2023-08-28 13:36:28][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:38:17 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=22RwE7BLbgKKoOfQsgf92fqtWKSN5wtr; Secure; HttpOnly; path=/'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:36:28][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-28 13:36:28][DEBUG] : receive_response_body.started request= [2023-08-28 13:36:28][DEBUG] : receive_response_body.complete [2023-08-28 13:36:28][DEBUG] : response_closed.started [2023-08-28 13:36:28][DEBUG] : response_closed.complete [2023-08-28 13:36:28][DEBUG] : Recuperation Inventaire [2023-08-28 13:36:28][DEBUG] : send_request_headers.started request= [2023-08-28 13:36:28][DEBUG] : send_request_headers.complete [2023-08-28 13:36:28][DEBUG] : send_request_body.started request= [2023-08-28 13:36:28][DEBUG] : send_request_body.complete [2023-08-28 13:36:28][DEBUG] : receive_response_headers.started request= [2023-08-28 13:36:29][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:38:18 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:36:29][INFO] : HTTP Request: GET https://192.168.0.70/inventory.json "HTTP/1.1 200 OK" [2023-08-28 13:36:29][DEBUG] : receive_response_body.started request= [2023-08-28 13:36:29][DEBUG] : receive_response_body.complete [2023-08-28 13:36:29][DEBUG] : response_closed.started [2023-08-28 13:36:29][DEBUG] : response_closed.complete [2023-08-28 13:36:29][INFO] : Send to jeedom : [{'type': 'PCU', 'devices': [{'part_num': '800-01736-r02', 'installed': '1670094034', 'serial_num': '482236085960', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229612', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094034', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390225, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094034', 'serial_num': '482236085940', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229672', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094034', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390481, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094035', 'serial_num': '482236085744', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229762', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094035', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390737, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094035', 'serial_num': '482236085917', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229792', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094035', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390993, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}]}, {'type': 'ACB', 'devices': []}, {'type': 'NSRB', 'devices': [{'part_num': '800-00598-r04', 'installed': '1670088923', 'serial_num': '122232095000', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229822', 'admin_state': 1, 'dev_type': 12, 'created_date': '1670088923', 'img_load_date': '1522376696', 'img_pnum_running': '520-00086-r01-v02.12.07', 'ptpn': '540-00139-r01-v02.12.00', 'chaneid': 1811939601, 'device_control': [{'gficlearset': False}], 'producing': False, 'communicating': True, 'provisioned': True, 'operating': True, 'relay': 'closed', 'reason_code': -1, 'reason': 'ok', 'line-count': 1, 'line1-connected': True, 'line2-connected': False, 'line3-connected': False}]}, {'type': 'ESUB', 'devices': []}] [2023-08-28 13:36:29][DEBUG] : Attente de 5s [2023-08-28 13:36:29][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:36:29][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:36:34][INFO] : Recuperation mesures [2023-08-28 13:36:34][DEBUG] : close.started [2023-08-28 13:36:34][DEBUG] : close.complete [2023-08-28 13:36:34][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:36:34][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:36:34][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:36:34][DEBUG] : start_tls.complete return_value= [2023-08-28 13:36:34][DEBUG] : send_request_headers.started request= [2023-08-28 13:36:34][DEBUG] : send_request_headers.complete [2023-08-28 13:36:34][DEBUG] : send_request_body.started request= [2023-08-28 13:36:34][DEBUG] : send_request_body.complete [2023-08-28 13:36:34][DEBUG] : receive_response_headers.started request= [2023-08-28 13:36:34][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:38:23 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:36:34][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-28 13:36:34][DEBUG] : receive_response_body.started request= [2023-08-28 13:36:34][DEBUG] : receive_response_body.complete [2023-08-28 13:36:34][DEBUG] : response_closed.started [2023-08-28 13:36:34][DEBUG] : response_closed.complete [2023-08-28 13:36:34][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1693229822, 'wNow': 376, 'whLifetime': 27613}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1693229903, 'wNow': 371.374, 'whLifetime': 1226410.19, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468473.458, 'vahLifetime': 1557781.569, 'rmsCurrent': 1.605, 'rmsVoltage': 234.395, 'reactPwr': 63.026, 'apprntPwr': 375.738, 'pwrFactor': 1.0, 'whToday': 2831.19, 'whLastSevenDays': 41401.19, 'vahToday': 3436.569, 'varhLeadToday': 0.104, 'varhLagToday': 1002.458, 'lines': [{'wNow': 371.374, 'whLifetime': 1226410.19, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468473.458, 'vahLifetime': 1557781.569, 'rmsCurrent': 1.605, 'rmsVoltage': 234.395, 'reactPwr': 63.026, 'apprntPwr': 375.738, 'pwrFactor': 1.0, 'whToday': 2831.19, 'whLastSevenDays': 41401.19, 'vahToday': 3436.569, 'varhLeadToday': 0.104, 'varhLagToday': 1002.458}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1693229903, 'wNow': 1521.801, 'whLifetime': 5848125.434, 'varhLeadLifetime': 4085674.794, 'varhLagLifetime': -468184.423, 'vahLifetime': 7200736.622, 'rmsCurrent': 7.619, 'rmsVoltage': 234.265, 'reactPwr': -675.731, 'apprntPwr': 1784.862, 'pwrFactor': 0.85, 'whToday': 12342.434, 'whLastSevenDays': 208.434, 'vahToday': 15973.622, 'varhLeadToday': 10345.794, 'varhLagToday': 0.0, 'lines': [{'wNow': 1521.801, 'whLifetime': 5848125.434, 'varhLeadLifetime': 4085674.794, 'varhLagLifetime': -468184.423, 'vahLifetime': 7200736.622, 'rmsCurrent': 7.619, 'rmsVoltage': 234.265, 'reactPwr': -675.731, 'apprntPwr': 1784.862, 'pwrFactor': 0.85, 'whToday': 12342.434, 'whLastSevenDays': 208.434, 'vahToday': 15973.622, 'varhLeadToday': 10345.794, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1693229903, 'wNow': 1150.427, 'whLifetime': 4622030.214, 'varhLeadLifetime': 4086824.898, 'varhLagLifetime': 289.035, 'vahLifetime': 7200736.622, 'rmsCurrent': 6.014, 'rmsVoltage': 234.265, 'reactPwr': -738.757, 'apprntPwr': 1408.886, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 1150.427, 'whLifetime': 4622030.214, 'varhLeadLifetime': 4086824.898, 'varhLagLifetime': 289.035, 'vahLifetime': 7200736.622, 'rmsCurrent': 6.014, 'rmsVoltage': 234.265, 'reactPwr': -738.757, 'apprntPwr': 1408.886, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0}]}], 'storage': [{'type': 'acb', 'activeCount': 0, 'readingTime': 0, 'wNow': 0, 'whNow': 0, 'state': 'idle'}]} [2023-08-28 13:36:34][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:36:35][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:36:35][DEBUG] : send_request_headers.started request= [2023-08-28 13:36:35][DEBUG] : send_request_headers.complete [2023-08-28 13:36:35][DEBUG] : send_request_body.started request= [2023-08-28 13:36:35][DEBUG] : send_request_body.complete [2023-08-28 13:36:35][DEBUG] : receive_response_headers.started request= [2023-08-28 13:36:36][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:38:24 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'603'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:36:36][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-28 13:36:36][DEBUG] : receive_response_body.started request= [2023-08-28 13:36:36][DEBUG] : receive_response_body.complete [2023-08-28 13:36:36][DEBUG] : response_closed.started [2023-08-28 13:36:36][DEBUG] : response_closed.complete [2023-08-28 13:36:36][DEBUG] : Recuperation mesures onduleurs2 [2023-08-28 13:36:36][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1693229611, 'devType': 1, 'lastReportWatts': 89, 'maxReportWatts': 293}, {'serialNumber': '482236085940', 'lastReportDate': 1693229670, 'devType': 1, 'lastReportWatts': 90, 'maxReportWatts': 296}, {'serialNumber': '482236085744', 'lastReportDate': 1693229760, 'devType': 1, 'lastReportWatts': 99, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1693229790, 'devType': 1, 'lastReportWatts': 98, 'maxReportWatts': 296}] [2023-08-28 13:36:36][DEBUG] : Recuperation index [2023-08-28 13:36:36][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:36:36][DEBUG] : send_request_headers.started request= [2023-08-28 13:36:36][DEBUG] : send_request_headers.complete [2023-08-28 13:36:36][DEBUG] : send_request_body.started request= [2023-08-28 13:36:36][DEBUG] : send_request_body.complete [2023-08-28 13:36:36][DEBUG] : receive_response_headers.started request= [2023-08-28 13:36:36][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:36:36][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:38:24 GMT'), (b'Content-Length', b'4850'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:36:36][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-28 13:36:36][DEBUG] : receive_response_body.started request= [2023-08-28 13:36:36][DEBUG] : receive_response_body.complete [2023-08-28 13:36:36][DEBUG] : response_closed.started [2023-08-28 13:36:36][DEBUG] : response_closed.complete [2023-08-28 13:36:36][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1693229904, 'actEnergyDlvd': 1226410.302, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557781.683, 'reactEnergyLagg': 468473.478, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 371.427, 'activePower': 371.427, 'apparentPower': 375.733, 'reactivePower': 63.445, 'pwrFactor': 0.985, 'voltage': 234.449, 'current': 1.601, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1693229904, 'actEnergyDlvd': 1226410.302, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557781.683, 'reactEnergyLagg': 468473.478, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 371.427, 'activePower': 371.427, 'apparentPower': 375.733, 'reactivePower': 63.445, 'pwrFactor': 0.985, 'voltage': 234.449, 'current': 1.601, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1693229904, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7928.821, 'apparentEnergy': 1153.26, 'reactEnergyLagg': 493.225, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.051, 'activePower': -0.051, 'apparentPower': 0.189, 'reactivePower': 0.024, 'pwrFactor': 0.0, 'voltage': 2.659, 'current': 0.072, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1693229904, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 16304.013, 'apparentEnergy': 3619.329, 'reactEnergyLagg': 494.425, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.25, 'activePower': -0.25, 'apparentPower': 0.571, 'reactivePower': -0.0, 'pwrFactor': -1.0, 'voltage': 4.203, 'current': 0.135, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1693229904, 'actEnergyDlvd': 4792466.577, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200737.055, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086825.124, 'instantaneousDemand': 1151.835, 'activePower': 1151.835, 'apparentPower': 1411.412, 'reactivePower': -739.737, 'pwrFactor': 0.815, 'voltage': 234.307, 'current': 6.038, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1693229904, 'actEnergyDlvd': 4792466.577, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200737.055, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086825.124, 'instantaneousDemand': 1151.835, 'activePower': 1151.835, 'apparentPower': 1411.412, 'reactivePower': -739.737, 'pwrFactor': 0.815, 'voltage': 234.307, 'current': 6.038, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1693229904, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5293.113, 'apparentEnergy': 34.274, 'reactEnergyLagg': 457.67, 'reactEnergyLead': 0.33, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 3.804, 'current': 0.0, 'freq': 50.0}, {'eid': 1778385427, 'timestamp': 1693229904, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11987.121, 'apparentEnergy': 17.442, 'reactEnergyLagg': 464.676, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': -0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 0.861, 'current': -0.0, 'freq': 50.0}]}] [2023-08-28 13:36:36][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:36:36][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:36:51][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-28 13:36:51][INFO] : Test Token [2023-08-28 13:36:51][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:36:51][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:36:51][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:36:51][DEBUG] : start_tls.complete return_value= [2023-08-28 13:36:51][DEBUG] : send_request_headers.started request= [2023-08-28 13:36:51][DEBUG] : send_request_headers.complete [2023-08-28 13:36:51][DEBUG] : send_request_body.started request= [2023-08-28 13:36:51][DEBUG] : send_request_body.complete [2023-08-28 13:36:51][DEBUG] : receive_response_headers.started request= [2023-08-28 13:36:51][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:38:39 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=22RwE7BLbgKKoOfQsgf92fqtWKSN5wtr; Secure; HttpOnly; path=/'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:36:51][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-28 13:36:51][DEBUG] : receive_response_body.started request= [2023-08-28 13:36:51][DEBUG] : receive_response_body.complete [2023-08-28 13:36:51][DEBUG] : response_closed.started [2023-08-28 13:36:51][DEBUG] : response_closed.complete [2023-08-28 13:36:51][INFO] : Recuperation mesures [2023-08-28 13:36:51][DEBUG] : send_request_headers.started request= [2023-08-28 13:36:51][DEBUG] : send_request_headers.complete [2023-08-28 13:36:51][DEBUG] : send_request_body.started request= [2023-08-28 13:36:51][DEBUG] : send_request_body.complete [2023-08-28 13:36:51][DEBUG] : receive_response_headers.started request= [2023-08-28 13:36:51][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:38:40 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:36:51][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-28 13:36:51][DEBUG] : receive_response_body.started request= [2023-08-28 13:36:51][DEBUG] : receive_response_body.complete [2023-08-28 13:36:51][DEBUG] : response_closed.started [2023-08-28 13:36:51][DEBUG] : response_closed.complete [2023-08-28 13:36:51][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1693229822, 'wNow': 376, 'whLifetime': 27613}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1693229920, 'wNow': 372.09, 'whLifetime': 1226411.923, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468473.752, 'vahLifetime': 1557783.323, 'rmsCurrent': 1.609, 'rmsVoltage': 234.259, 'reactPwr': 62.995, 'apprntPwr': 377.078, 'pwrFactor': 0.99, 'whToday': 2832.923, 'whLastSevenDays': 41402.923, 'vahToday': 3438.323, 'varhLeadToday': 0.104, 'varhLagToday': 1002.752, 'lines': [{'wNow': 372.09, 'whLifetime': 1226411.923, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468473.752, 'vahLifetime': 1557783.323, 'rmsCurrent': 1.609, 'rmsVoltage': 234.259, 'reactPwr': 62.995, 'apprntPwr': 377.078, 'pwrFactor': 0.99, 'whToday': 2832.923, 'whLastSevenDays': 41402.923, 'vahToday': 3438.323, 'varhLeadToday': 0.104, 'varhLagToday': 1002.752}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1693229920, 'wNow': 1475.595, 'whLifetime': 5848132.525, 'varhLeadLifetime': 4085678.239, 'varhLagLifetime': -468184.717, 'vahLifetime': 7200743.193, 'rmsCurrent': 7.562, 'rmsVoltage': 234.137, 'reactPwr': -669.762, 'apprntPwr': 1770.457, 'pwrFactor': 0.83, 'whToday': 12349.525, 'whLastSevenDays': 215.525, 'vahToday': 15980.193, 'varhLeadToday': 10349.239, 'varhLagToday': 0.0, 'lines': [{'wNow': 1475.595, 'whLifetime': 5848132.525, 'varhLeadLifetime': 4085678.239, 'varhLagLifetime': -468184.717, 'vahLifetime': 7200743.193, 'rmsCurrent': 7.562, 'rmsVoltage': 234.137, 'reactPwr': -669.762, 'apprntPwr': 1770.457, 'pwrFactor': 0.83, 'whToday': 12349.525, 'whLastSevenDays': 215.525, 'vahToday': 15980.193, 'varhLeadToday': 10349.239, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1693229920, 'wNow': 1103.505, 'whLifetime': 4622035.572, 'varhLeadLifetime': 4086828.343, 'varhLagLifetime': 289.035, 'vahLifetime': 7200743.193, 'rmsCurrent': 5.952, 'rmsVoltage': 234.137, 'reactPwr': -732.757, 'apprntPwr': 1393.644, 'pwrFactor': 0.79, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 1103.505, 'whLifetime': 4622035.572, 'varhLeadLifetime': 4086828.343, 'varhLagLifetime': 289.035, 'vahLifetime': 7200743.193, 'rmsCurrent': 5.952, 'rmsVoltage': 234.137, 'reactPwr': -732.757, 'apprntPwr': 1393.644, 'pwrFactor': 0.79, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0}]}], 'storage': [{'type': 'acb', 'activeCount': 0, 'readingTime': 0, 'wNow': 0, 'whNow': 0, 'state': 'idle'}]} [2023-08-28 13:36:51][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:36:51][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:36:52][DEBUG] : send_request_headers.started request= [2023-08-28 13:36:52][DEBUG] : send_request_headers.complete [2023-08-28 13:36:52][DEBUG] : send_request_body.started request= [2023-08-28 13:36:52][DEBUG] : send_request_body.complete [2023-08-28 13:36:52][DEBUG] : receive_response_headers.started request= [2023-08-28 13:36:52][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:38:41 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'603'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:36:52][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-28 13:36:52][DEBUG] : receive_response_body.started request= [2023-08-28 13:36:52][DEBUG] : receive_response_body.complete [2023-08-28 13:36:52][DEBUG] : response_closed.started [2023-08-28 13:36:52][DEBUG] : response_closed.complete [2023-08-28 13:36:52][DEBUG] : Recuperation mesures onduleurs [2023-08-28 13:36:52][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1693229611, 'devType': 1, 'lastReportWatts': 89, 'maxReportWatts': 293}, {'serialNumber': '482236085940', 'lastReportDate': 1693229670, 'devType': 1, 'lastReportWatts': 90, 'maxReportWatts': 296}, {'serialNumber': '482236085744', 'lastReportDate': 1693229760, 'devType': 1, 'lastReportWatts': 99, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1693229790, 'devType': 1, 'lastReportWatts': 98, 'maxReportWatts': 296}] [2023-08-28 13:36:52][DEBUG] : Recuperation index [2023-08-28 13:36:52][DEBUG] : send_request_headers.started request= [2023-08-28 13:36:52][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:36:52][DEBUG] : send_request_headers.complete [2023-08-28 13:36:52][DEBUG] : send_request_body.started request= [2023-08-28 13:36:52][DEBUG] : send_request_body.complete [2023-08-28 13:36:52][DEBUG] : receive_response_headers.started request= [2023-08-28 13:36:52][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:36:52][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:38:41 GMT'), (b'Content-Length', b'4849'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:36:52][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-28 13:36:52][DEBUG] : receive_response_body.started request= [2023-08-28 13:36:52][DEBUG] : receive_response_body.complete [2023-08-28 13:36:52][DEBUG] : response_closed.started [2023-08-28 13:36:52][DEBUG] : response_closed.complete [2023-08-28 13:36:52][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1693229920, 'actEnergyDlvd': 1226412.026, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557783.428, 'reactEnergyLagg': 468473.77, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 372.406, 'activePower': 372.406, 'apparentPower': 376.953, 'reactivePower': 63.117, 'pwrFactor': 0.986, 'voltage': 234.418, 'current': 1.608, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1693229920, 'actEnergyDlvd': 1226412.026, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557783.428, 'reactEnergyLagg': 468473.77, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 372.406, 'activePower': 372.406, 'apparentPower': 376.953, 'reactivePower': 63.117, 'pwrFactor': 0.986, 'voltage': 234.418, 'current': 1.608, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1693229920, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7928.826, 'apparentEnergy': 1153.26, 'reactEnergyLagg': 493.225, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.03, 'activePower': -0.03, 'apparentPower': 0.179, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 2.658, 'current': 0.068, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1693229920, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 16304.025, 'apparentEnergy': 3619.332, 'reactEnergyLagg': 494.425, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.227, 'activePower': -0.227, 'apparentPower': 0.569, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 4.203, 'current': 0.135, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1693229920, 'actEnergyDlvd': 4792471.873, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200743.556, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086828.544, 'instantaneousDemand': 1105.643, 'activePower': 1105.643, 'apparentPower': 1367.561, 'reactivePower': -732.307, 'pwrFactor': 0.82, 'voltage': 234.281, 'current': 5.755, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1693229920, 'actEnergyDlvd': 4792471.873, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200743.556, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086828.544, 'instantaneousDemand': 1105.643, 'activePower': 1105.643, 'apparentPower': 1367.561, 'reactivePower': -732.307, 'pwrFactor': 0.82, 'voltage': 234.281, 'current': 5.755, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1693229920, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5293.117, 'apparentEnergy': 34.274, 'reactEnergyLagg': 457.67, 'reactEnergyLead': 0.33, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 3.804, 'current': 0.0, 'freq': 50.0}, {'eid': 1778385427, 'timestamp': 1693229920, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11987.13, 'apparentEnergy': 17.442, 'reactEnergyLagg': 464.676, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': -0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 0.861, 'current': -0.0, 'freq': 50.0}]}] [2023-08-28 13:36:52][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:36:52][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:37:05][DEBUG] : Signal 15 caught, exiting... [2023-08-28 13:37:05][DEBUG] : Shutdown [2023-08-28 13:37:05][DEBUG] : Removing PID file /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:37:05][INFO] : Send to jeedom : error arret [2023-08-28 13:37:05][DEBUG] : Exit 0 [2023-08-28 13:37:09][INFO] : Start demond [2023-08-28 13:37:09][INFO] : Log level : debug [2023-08-28 13:37:09][DEBUG] : Socket port : 47588 [2023-08-28 13:37:09][DEBUG] : Socket host : localhost [2023-08-28 13:37:09][DEBUG] : PID file : /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:37:09][DEBUG] : Apikey : wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM [2023-08-28 13:37:09][DEBUG] : Device : auto [2023-08-28 13:37:09][DEBUG] : Callback : http://127.0.0.1:80/plugins/enphasesecur/core/php/jeeenphasesecur.php [2023-08-28 13:37:09][DEBUG] : Delais actualisation : 15 [2023-08-28 13:37:09][INFO] : Adresse IP Passerelle : 192.168.0.70 [2023-08-28 13:37:09][DEBUG] : User : m_mickael@yahoo.fr [2023-08-28 13:37:09][DEBUG] : Password : %scream%enphase [2023-08-28 13:37:09][DEBUG] : Numero de serie : 122239084064 [2023-08-28 13:37:09][INFO] : Writing PID 25191 to /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:37:09][INFO] : Init request module v2.31.0 [2023-08-28 13:37:09][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:37:09][DEBUG] : http://127.0.0.1:80 "GET /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 2 [2023-08-28 13:37:24][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-28 13:37:24][INFO] : Recuperation token [2023-08-28 13:37:24][DEBUG] : Starting new HTTPS connection (1): enlighten.enphaseenergy.com:443 [2023-08-28 13:37:27][DEBUG] : https://enlighten.enphaseenergy.com:443 "POST /login/login.json HTTP/1.1" 200 None [2023-08-28 13:37:27][DEBUG] : Starting new HTTPS connection (1): entrez.enphaseenergy.com:443 [2023-08-28 13:37:28][DEBUG] : https://entrez.enphaseenergy.com:443 "POST /tokens HTTP/1.1" 200 None [2023-08-28 13:37:28][DEBUG] : eyJraWQiOiI3ZDEwMDA1ZC03ODk5LTRkMGQtYmNiNC0yNDRmOThlZTE1NmIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJhdWQiOiIxMjIyMzkwODQwNjQiLCJpc3MiOiJFbnRyZXoiLCJlbnBoYXNlVXNlciI6Im93bmVyIiwiZXhwIjoxNzI0NzY1ODQ4LCJpYXQiOjE2OTMyMjk4NDgsImp0aSI6IjJkODc3ZWVkLThmMGItNDdhOS1iZTdiLTUwOWRjZDQzNmY0MiIsInVzZXJuYW1lIjoibV9taWNrYWVsQHlhaG9vLmZyIn0.UYy96Gc9fy07iM6k3kUXZAHaIKDcPZFk9PvwDNFW957feZRB9zWh_bhp_V9hK6swd-XdQ7Kdq9OfYxQLCoC4Bw [2023-08-28 13:37:28][INFO] : Test Token [2023-08-28 13:37:28][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:37:28][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:37:28][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:37:28][DEBUG] : start_tls.complete return_value= [2023-08-28 13:37:28][DEBUG] : send_request_headers.started request= [2023-08-28 13:37:28][DEBUG] : send_request_headers.complete [2023-08-28 13:37:28][DEBUG] : send_request_body.started request= [2023-08-28 13:37:28][DEBUG] : send_request_body.complete [2023-08-28 13:37:28][DEBUG] : receive_response_headers.started request= [2023-08-28 13:37:28][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:39:16 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=kclmya0Zw9Tx4aoeqcgec62zcVdHaDIO; Secure; HttpOnly; path=/'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:37:28][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-28 13:37:28][DEBUG] : receive_response_body.started request= [2023-08-28 13:37:28][DEBUG] : receive_response_body.complete [2023-08-28 13:37:28][DEBUG] : response_closed.started [2023-08-28 13:37:28][DEBUG] : response_closed.complete [2023-08-28 13:37:28][DEBUG] : Recuperation Inventaire [2023-08-28 13:37:28][DEBUG] : send_request_headers.started request= [2023-08-28 13:37:28][DEBUG] : send_request_headers.complete [2023-08-28 13:37:28][DEBUG] : send_request_body.started request= [2023-08-28 13:37:28][DEBUG] : send_request_body.complete [2023-08-28 13:37:28][DEBUG] : receive_response_headers.started request= [2023-08-28 13:37:28][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:39:17 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:37:28][INFO] : HTTP Request: GET https://192.168.0.70/inventory.json "HTTP/1.1 200 OK" [2023-08-28 13:37:28][DEBUG] : receive_response_body.started request= [2023-08-28 13:37:29][DEBUG] : receive_response_body.complete [2023-08-28 13:37:29][DEBUG] : response_closed.started [2023-08-28 13:37:29][DEBUG] : response_closed.complete [2023-08-28 13:37:29][INFO] : Send to jeedom : [{'type': 'PCU', 'devices': [{'part_num': '800-01736-r02', 'installed': '1670094034', 'serial_num': '482236085960', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229612', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094034', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390225, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094034', 'serial_num': '482236085940', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229672', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094034', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390481, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094035', 'serial_num': '482236085744', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229762', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094035', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390737, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094035', 'serial_num': '482236085917', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229792', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094035', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390993, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}]}, {'type': 'ACB', 'devices': []}, {'type': 'NSRB', 'devices': [{'part_num': '800-00598-r04', 'installed': '1670088923', 'serial_num': '122232095000', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229822', 'admin_state': 1, 'dev_type': 12, 'created_date': '1670088923', 'img_load_date': '1522376696', 'img_pnum_running': '520-00086-r01-v02.12.07', 'ptpn': '540-00139-r01-v02.12.00', 'chaneid': 1811939601, 'device_control': [{'gficlearset': False}], 'producing': False, 'communicating': True, 'provisioned': True, 'operating': True, 'relay': 'closed', 'reason_code': -1, 'reason': 'ok', 'line-count': 1, 'line1-connected': True, 'line2-connected': False, 'line3-connected': False}]}, {'type': 'ESUB', 'devices': []}] [2023-08-28 13:37:29][DEBUG] : Attente de 5s [2023-08-28 13:37:29][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:37:29][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:37:34][INFO] : Recuperation mesures [2023-08-28 13:37:34][DEBUG] : close.started [2023-08-28 13:37:34][DEBUG] : close.complete [2023-08-28 13:37:34][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:37:34][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:37:34][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:37:34][DEBUG] : start_tls.complete return_value= [2023-08-28 13:37:34][DEBUG] : send_request_headers.started request= [2023-08-28 13:37:34][DEBUG] : send_request_headers.complete [2023-08-28 13:37:34][DEBUG] : send_request_body.started request= [2023-08-28 13:37:34][DEBUG] : send_request_body.complete [2023-08-28 13:37:34][DEBUG] : receive_response_headers.started request= [2023-08-28 13:37:34][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:39:23 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:37:34][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-28 13:37:34][DEBUG] : receive_response_body.started request= [2023-08-28 13:37:34][DEBUG] : receive_response_body.complete [2023-08-28 13:37:34][DEBUG] : response_closed.started [2023-08-28 13:37:34][DEBUG] : response_closed.complete [2023-08-28 13:37:34][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1693229822, 'wNow': 376, 'whLifetime': 27613}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1693229963, 'wNow': 372.685, 'whLifetime': 1226416.303, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468474.493, 'vahLifetime': 1557787.755, 'rmsCurrent': 1.617, 'rmsVoltage': 233.871, 'reactPwr': 63.682, 'apprntPwr': 378.149, 'pwrFactor': 0.98, 'whToday': 2837.303, 'whLastSevenDays': 41407.303, 'vahToday': 3442.755, 'varhLeadToday': 0.104, 'varhLagToday': 1003.493, 'lines': [{'wNow': 372.685, 'whLifetime': 1226416.303, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468474.493, 'vahLifetime': 1557787.755, 'rmsCurrent': 1.617, 'rmsVoltage': 233.871, 'reactPwr': 63.682, 'apprntPwr': 378.149, 'pwrFactor': 0.98, 'whToday': 2837.303, 'whLastSevenDays': 41407.303, 'vahToday': 3442.755, 'varhLeadToday': 0.104, 'varhLagToday': 1003.493}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1693229963, 'wNow': 1529.464, 'whLifetime': 5848150.486, 'varhLeadLifetime': 4085686.928, 'varhLagLifetime': -468185.458, 'vahLifetime': 7200759.81, 'rmsCurrent': 7.669, 'rmsVoltage': 233.749, 'reactPwr': -675.309, 'apprntPwr': 1792.65, 'pwrFactor': 0.85, 'whToday': 12367.486, 'whLastSevenDays': 233.486, 'vahToday': 15996.81, 'varhLeadToday': 10357.928, 'varhLagToday': 0.0, 'lines': [{'wNow': 1529.464, 'whLifetime': 5848150.486, 'varhLeadLifetime': 4085686.928, 'varhLagLifetime': -468185.458, 'vahLifetime': 7200759.81, 'rmsCurrent': 7.669, 'rmsVoltage': 233.749, 'reactPwr': -675.309, 'apprntPwr': 1792.65, 'pwrFactor': 0.85, 'whToday': 12367.486, 'whLastSevenDays': 233.486, 'vahToday': 15996.81, 'varhLeadToday': 10357.928, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1693229963, 'wNow': 1156.779, 'whLifetime': 4622049.153, 'varhLeadLifetime': 4086837.032, 'varhLagLifetime': 289.035, 'vahLifetime': 7200759.81, 'rmsCurrent': 6.052, 'rmsVoltage': 233.749, 'reactPwr': -738.991, 'apprntPwr': 1414.736, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 1156.779, 'whLifetime': 4622049.153, 'varhLeadLifetime': 4086837.032, 'varhLagLifetime': 289.035, 'vahLifetime': 7200759.81, 'rmsCurrent': 6.052, 'rmsVoltage': 233.749, 'reactPwr': -738.991, 'apprntPwr': 1414.736, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0}]}], 'storage': [{'type': 'acb', 'activeCount': 0, 'readingTime': 0, 'wNow': 0, 'whNow': 0, 'state': 'idle'}]} [2023-08-28 13:37:34][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:37:34][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:37:35][DEBUG] : send_request_headers.started request= [2023-08-28 13:37:35][DEBUG] : send_request_headers.complete [2023-08-28 13:37:35][DEBUG] : send_request_body.started request= [2023-08-28 13:37:35][DEBUG] : send_request_body.complete [2023-08-28 13:37:35][DEBUG] : receive_response_headers.started request= [2023-08-28 13:37:35][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:39:24 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'603'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:37:35][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-28 13:37:35][DEBUG] : receive_response_body.started request= [2023-08-28 13:37:35][DEBUG] : receive_response_body.complete [2023-08-28 13:37:35][DEBUG] : response_closed.started [2023-08-28 13:37:35][DEBUG] : response_closed.complete [2023-08-28 13:37:35][DEBUG] : Recuperation mesures onduleurs2 [2023-08-28 13:37:35][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1693229611, 'devType': 1, 'lastReportWatts': 89, 'maxReportWatts': 293}, {'serialNumber': '482236085940', 'lastReportDate': 1693229670, 'devType': 1, 'lastReportWatts': 90, 'maxReportWatts': 296}, {'serialNumber': '482236085744', 'lastReportDate': 1693229760, 'devType': 1, 'lastReportWatts': 99, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1693229790, 'devType': 1, 'lastReportWatts': 98, 'maxReportWatts': 296}] [2023-08-28 13:37:35][DEBUG] : Recuperation index [2023-08-28 13:37:35][DEBUG] : send_request_headers.started request= [2023-08-28 13:37:35][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:37:35][DEBUG] : send_request_headers.complete [2023-08-28 13:37:35][DEBUG] : send_request_body.started request= [2023-08-28 13:37:35][DEBUG] : send_request_body.complete [2023-08-28 13:37:35][DEBUG] : receive_response_headers.started request= [2023-08-28 13:37:35][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:37:35][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:39:24 GMT'), (b'Content-Length', b'4849'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:37:35][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-28 13:37:35][DEBUG] : receive_response_body.started request= [2023-08-28 13:37:35][DEBUG] : receive_response_body.complete [2023-08-28 13:37:35][DEBUG] : response_closed.started [2023-08-28 13:37:35][DEBUG] : response_closed.complete [2023-08-28 13:37:35][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1693229964, 'actEnergyDlvd': 1226416.511, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557787.965, 'reactEnergyLagg': 468474.528, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 373.303, 'activePower': 373.303, 'apparentPower': 378.284, 'reactivePower': 63.718, 'pwrFactor': 0.971, 'voltage': 234.172, 'current': 1.615, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1693229964, 'actEnergyDlvd': 1226416.511, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557787.965, 'reactEnergyLagg': 468474.528, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 373.303, 'activePower': 373.303, 'apparentPower': 378.284, 'reactivePower': 63.718, 'pwrFactor': 0.971, 'voltage': 234.172, 'current': 1.615, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1693229964, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7928.841, 'apparentEnergy': 1153.263, 'reactEnergyLagg': 493.226, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.02, 'activePower': -0.02, 'apparentPower': 0.186, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 2.659, 'current': 0.07, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1693229964, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 16304.055, 'apparentEnergy': 3619.339, 'reactEnergyLagg': 494.426, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.221, 'activePower': -0.221, 'apparentPower': 0.57, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 4.203, 'current': 0.134, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1693229964, 'actEnergyDlvd': 4792485.804, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200760.596, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086837.443, 'instantaneousDemand': 1154.843, 'activePower': 1154.843, 'apparentPower': 1413.811, 'reactivePower': -738.555, 'pwrFactor': 0.813, 'voltage': 234.033, 'current': 6.039, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1693229964, 'actEnergyDlvd': 4792485.804, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200760.596, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086837.443, 'instantaneousDemand': 1154.843, 'activePower': 1154.843, 'apparentPower': 1413.811, 'reactivePower': -738.555, 'pwrFactor': 0.813, 'voltage': 234.033, 'current': 6.039, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1693229964, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5293.127, 'apparentEnergy': 34.274, 'reactEnergyLagg': 457.671, 'reactEnergyLead': 0.33, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 3.804, 'current': 0.0, 'freq': 50.0}, {'eid': 1778385427, 'timestamp': 1693229964, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11987.152, 'apparentEnergy': 17.442, 'reactEnergyLagg': 464.677, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': -0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 0.861, 'current': -0.0, 'freq': 50.0}]}] [2023-08-28 13:37:35][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:37:35][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:37:50][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-28 13:37:50][INFO] : Test Token [2023-08-28 13:37:50][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:37:50][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:37:50][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:37:51][DEBUG] : start_tls.complete return_value= [2023-08-28 13:37:51][DEBUG] : send_request_headers.started request= [2023-08-28 13:37:51][DEBUG] : send_request_headers.complete [2023-08-28 13:37:51][DEBUG] : send_request_body.started request= [2023-08-28 13:37:51][DEBUG] : send_request_body.complete [2023-08-28 13:37:51][DEBUG] : receive_response_headers.started request= [2023-08-28 13:37:51][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:39:39 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=kclmya0Zw9Tx4aoeqcgec62zcVdHaDIO; Secure; HttpOnly; path=/'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:37:51][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-28 13:37:51][DEBUG] : receive_response_body.started request= [2023-08-28 13:37:51][DEBUG] : receive_response_body.complete [2023-08-28 13:37:51][DEBUG] : response_closed.started [2023-08-28 13:37:51][DEBUG] : response_closed.complete [2023-08-28 13:37:51][INFO] : Recuperation mesures [2023-08-28 13:37:51][DEBUG] : send_request_headers.started request= [2023-08-28 13:37:51][DEBUG] : send_request_headers.complete [2023-08-28 13:37:51][DEBUG] : send_request_body.started request= [2023-08-28 13:37:51][DEBUG] : send_request_body.complete [2023-08-28 13:37:51][DEBUG] : receive_response_headers.started request= [2023-08-28 13:37:51][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:39:40 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:37:51][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-28 13:37:51][DEBUG] : receive_response_body.started request= [2023-08-28 13:37:51][DEBUG] : receive_response_body.complete [2023-08-28 13:37:51][DEBUG] : response_closed.started [2023-08-28 13:37:51][DEBUG] : response_closed.complete [2023-08-28 13:37:51][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1693229822, 'wNow': 376, 'whLifetime': 27613}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1693229980, 'wNow': 375.598, 'whLifetime': 1226418.101, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468474.795, 'vahLifetime': 1557789.575, 'rmsCurrent': 1.622, 'rmsVoltage': 234.478, 'reactPwr': 62.894, 'apprntPwr': 380.489, 'pwrFactor': 0.94, 'whToday': 2839.101, 'whLastSevenDays': 41409.101, 'vahToday': 3444.575, 'varhLeadToday': 0.104, 'varhLagToday': 1003.795, 'lines': [{'wNow': 375.598, 'whLifetime': 1226418.101, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468474.795, 'vahLifetime': 1557789.575, 'rmsCurrent': 1.622, 'rmsVoltage': 234.478, 'reactPwr': 62.894, 'apprntPwr': 380.489, 'pwrFactor': 0.94, 'whToday': 2839.101, 'whLastSevenDays': 41409.101, 'vahToday': 3444.575, 'varhLeadToday': 0.104, 'varhLagToday': 1003.795}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1693229980, 'wNow': 1535.274, 'whLifetime': 5848157.819, 'varhLeadLifetime': 4085690.482, 'varhLagLifetime': -468185.76, 'vahLifetime': 7200766.593, 'rmsCurrent': 7.69, 'rmsVoltage': 234.358, 'reactPwr': -678.274, 'apprntPwr': 1802.117, 'pwrFactor': 0.85, 'whToday': 12374.819, 'whLastSevenDays': 240.819, 'vahToday': 16003.593, 'varhLeadToday': 10361.482, 'varhLagToday': 0.0, 'lines': [{'wNow': 1535.274, 'whLifetime': 5848157.819, 'varhLeadLifetime': 4085690.482, 'varhLagLifetime': -468185.76, 'vahLifetime': 7200766.593, 'rmsCurrent': 7.69, 'rmsVoltage': 234.358, 'reactPwr': -678.274, 'apprntPwr': 1802.117, 'pwrFactor': 0.85, 'whToday': 12374.819, 'whLastSevenDays': 240.819, 'vahToday': 16003.593, 'varhLeadToday': 10361.482, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1693229980, 'wNow': 1159.676, 'whLifetime': 4622054.687, 'varhLeadLifetime': 4086840.586, 'varhLagLifetime': 289.035, 'vahLifetime': 7200766.593, 'rmsCurrent': 6.068, 'rmsVoltage': 234.358, 'reactPwr': -741.168, 'apprntPwr': 1422.009, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 1159.676, 'whLifetime': 4622054.687, 'varhLeadLifetime': 4086840.586, 'varhLagLifetime': 289.035, 'vahLifetime': 7200766.593, 'rmsCurrent': 6.068, 'rmsVoltage': 234.358, 'reactPwr': -741.168, 'apprntPwr': 1422.009, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0}]}], 'storage': [{'type': 'acb', 'activeCount': 0, 'readingTime': 0, 'wNow': 0, 'whNow': 0, 'state': 'idle'}]} [2023-08-28 13:37:51][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:37:52][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:37:52][DEBUG] : send_request_headers.started request= [2023-08-28 13:37:52][DEBUG] : send_request_headers.complete [2023-08-28 13:37:52][DEBUG] : send_request_body.started request= [2023-08-28 13:37:52][DEBUG] : send_request_body.complete [2023-08-28 13:37:52][DEBUG] : receive_response_headers.started request= [2023-08-28 13:37:52][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:39:41 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'603'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:37:52][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-28 13:37:52][DEBUG] : receive_response_body.started request= [2023-08-28 13:37:52][DEBUG] : receive_response_body.complete [2023-08-28 13:37:52][DEBUG] : response_closed.started [2023-08-28 13:37:52][DEBUG] : response_closed.complete [2023-08-28 13:37:52][DEBUG] : Recuperation mesures onduleurs [2023-08-28 13:37:52][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1693229611, 'devType': 1, 'lastReportWatts': 89, 'maxReportWatts': 293}, {'serialNumber': '482236085940', 'lastReportDate': 1693229670, 'devType': 1, 'lastReportWatts': 90, 'maxReportWatts': 296}, {'serialNumber': '482236085744', 'lastReportDate': 1693229760, 'devType': 1, 'lastReportWatts': 99, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1693229790, 'devType': 1, 'lastReportWatts': 98, 'maxReportWatts': 296}] [2023-08-28 13:37:52][DEBUG] : Recuperation index [2023-08-28 13:37:52][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:37:52][DEBUG] : send_request_headers.started request= [2023-08-28 13:37:52][DEBUG] : send_request_headers.complete [2023-08-28 13:37:52][DEBUG] : send_request_body.started request= [2023-08-28 13:37:52][DEBUG] : send_request_body.complete [2023-08-28 13:37:52][DEBUG] : receive_response_headers.started request= [2023-08-28 13:37:52][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:37:52][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:39:41 GMT'), (b'Content-Length', b'4850'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:37:52][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-28 13:37:52][DEBUG] : receive_response_body.started request= [2023-08-28 13:37:52][DEBUG] : receive_response_body.complete [2023-08-28 13:37:52][DEBUG] : response_closed.started [2023-08-28 13:37:52][DEBUG] : response_closed.complete [2023-08-28 13:37:52][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1693229980, 'actEnergyDlvd': 1226418.237, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557789.712, 'reactEnergyLagg': 468474.819, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 374.874, 'activePower': 374.874, 'apparentPower': 380.535, 'reactivePower': 63.62, 'pwrFactor': 0.981, 'voltage': 234.455, 'current': 1.623, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1693229980, 'actEnergyDlvd': 1226418.237, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557789.712, 'reactEnergyLagg': 468474.819, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 374.874, 'activePower': 374.874, 'apparentPower': 380.535, 'reactivePower': 63.62, 'pwrFactor': 0.981, 'voltage': 234.455, 'current': 1.623, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1693229980, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7928.846, 'apparentEnergy': 1153.263, 'reactEnergyLagg': 493.226, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.007, 'activePower': -0.007, 'apparentPower': 0.184, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 2.658, 'current': 0.068, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1693229980, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 16304.068, 'apparentEnergy': 3619.341, 'reactEnergyLagg': 494.426, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.207, 'activePower': -0.207, 'apparentPower': 0.572, 'reactivePower': -0.0, 'pwrFactor': -1.0, 'voltage': 4.202, 'current': 0.136, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1693229980, 'actEnergyDlvd': 4792491.118, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200767.108, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086840.855, 'instantaneousDemand': 1164.46, 'activePower': 1164.46, 'apparentPower': 1424.264, 'reactivePower': -742.158, 'pwrFactor': 0.815, 'voltage': 234.335, 'current': 6.089, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1693229980, 'actEnergyDlvd': 4792491.118, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200767.108, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086840.855, 'instantaneousDemand': 1164.46, 'activePower': 1164.46, 'apparentPower': 1424.264, 'reactivePower': -742.158, 'pwrFactor': 0.815, 'voltage': 234.335, 'current': 6.089, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1693229980, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5293.131, 'apparentEnergy': 34.275, 'reactEnergyLagg': 457.672, 'reactEnergyLead': 0.33, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 3.804, 'current': 0.0, 'freq': 50.0}, {'eid': 1778385427, 'timestamp': 1693229980, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11987.161, 'apparentEnergy': 17.442, 'reactEnergyLagg': 464.678, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': -0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 0.861, 'current': -0.0, 'freq': 50.0}]}] [2023-08-28 13:37:52][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:37:52][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:38:05][DEBUG] : Signal 15 caught, exiting... [2023-08-28 13:38:05][DEBUG] : Shutdown [2023-08-28 13:38:05][DEBUG] : Removing PID file /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:38:05][INFO] : Send to jeedom : error arret [2023-08-28 13:38:05][DEBUG] : Exit 0 [2023-08-28 13:38:09][INFO] : Start demond [2023-08-28 13:38:09][INFO] : Log level : debug [2023-08-28 13:38:09][DEBUG] : Socket port : 54220 [2023-08-28 13:38:09][DEBUG] : Socket host : localhost [2023-08-28 13:38:09][DEBUG] : PID file : /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:38:09][DEBUG] : Apikey : wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM [2023-08-28 13:38:09][DEBUG] : Device : auto [2023-08-28 13:38:09][DEBUG] : Callback : http://127.0.0.1:80/plugins/enphasesecur/core/php/jeeenphasesecur.php [2023-08-28 13:38:09][DEBUG] : Delais actualisation : 15 [2023-08-28 13:38:09][INFO] : Adresse IP Passerelle : 192.168.0.70 [2023-08-28 13:38:09][DEBUG] : User : m_mickael@yahoo.fr [2023-08-28 13:38:09][DEBUG] : Password : %scream%enphase [2023-08-28 13:38:09][DEBUG] : Numero de serie : 122239084064 [2023-08-28 13:38:09][INFO] : Writing PID 27044 to /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:38:09][INFO] : Init request module v2.31.0 [2023-08-28 13:38:09][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:38:09][DEBUG] : http://127.0.0.1:80 "GET /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 2 [2023-08-28 13:38:24][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-28 13:38:24][INFO] : Recuperation token [2023-08-28 13:38:24][DEBUG] : Starting new HTTPS connection (1): enlighten.enphaseenergy.com:443 [2023-08-28 13:38:27][DEBUG] : https://enlighten.enphaseenergy.com:443 "POST /login/login.json HTTP/1.1" 200 None [2023-08-28 13:38:27][DEBUG] : Starting new HTTPS connection (1): entrez.enphaseenergy.com:443 [2023-08-28 13:38:28][DEBUG] : https://entrez.enphaseenergy.com:443 "POST /tokens HTTP/1.1" 200 None [2023-08-28 13:38:28][DEBUG] : eyJraWQiOiI3ZDEwMDA1ZC03ODk5LTRkMGQtYmNiNC0yNDRmOThlZTE1NmIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJhdWQiOiIxMjIyMzkwODQwNjQiLCJpc3MiOiJFbnRyZXoiLCJlbnBoYXNlVXNlciI6Im93bmVyIiwiZXhwIjoxNzI0NzY1OTA4LCJpYXQiOjE2OTMyMjk5MDgsImp0aSI6ImVmMTU3ZjRhLTAzZGItNDdhZC05NDUxLTZjNmRhMGFkNzE4ZSIsInVzZXJuYW1lIjoibV9taWNrYWVsQHlhaG9vLmZyIn0.7upABd5dQ-wiuL6OBPLSJnJPoHS0u1brYt2f0OvWYujlRPnBtnbAmFSGyF6AkTLB-_pr8TVuur280FXxy0CClw [2023-08-28 13:38:28][INFO] : Test Token [2023-08-28 13:38:28][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:38:28][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:38:28][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:38:28][DEBUG] : start_tls.complete return_value= [2023-08-28 13:38:28][DEBUG] : send_request_headers.started request= [2023-08-28 13:38:28][DEBUG] : send_request_headers.complete [2023-08-28 13:38:28][DEBUG] : send_request_body.started request= [2023-08-28 13:38:28][DEBUG] : send_request_body.complete [2023-08-28 13:38:28][DEBUG] : receive_response_headers.started request= [2023-08-28 13:38:28][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:40:16 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=6aRJvzIGtbJYdaALaV4mdxh7UfxphWdo; Secure; HttpOnly; path=/'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:38:28][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-28 13:38:28][DEBUG] : receive_response_body.started request= [2023-08-28 13:38:28][DEBUG] : receive_response_body.complete [2023-08-28 13:38:28][DEBUG] : response_closed.started [2023-08-28 13:38:28][DEBUG] : response_closed.complete [2023-08-28 13:38:28][DEBUG] : Recuperation Inventaire [2023-08-28 13:38:28][DEBUG] : send_request_headers.started request= [2023-08-28 13:38:28][DEBUG] : send_request_headers.complete [2023-08-28 13:38:28][DEBUG] : send_request_body.started request= [2023-08-28 13:38:28][DEBUG] : send_request_body.complete [2023-08-28 13:38:28][DEBUG] : receive_response_headers.started request= [2023-08-28 13:38:28][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:40:17 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:38:28][INFO] : HTTP Request: GET https://192.168.0.70/inventory.json "HTTP/1.1 200 OK" [2023-08-28 13:38:28][DEBUG] : receive_response_body.started request= [2023-08-28 13:38:28][DEBUG] : receive_response_body.complete [2023-08-28 13:38:28][DEBUG] : response_closed.started [2023-08-28 13:38:28][DEBUG] : response_closed.complete [2023-08-28 13:38:28][INFO] : Send to jeedom : [{'type': 'PCU', 'devices': [{'part_num': '800-01736-r02', 'installed': '1670094034', 'serial_num': '482236085960', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229612', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094034', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390225, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094034', 'serial_num': '482236085940', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229672', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094034', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390481, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094035', 'serial_num': '482236085744', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229762', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094035', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390737, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094035', 'serial_num': '482236085917', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229792', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094035', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390993, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}]}, {'type': 'ACB', 'devices': []}, {'type': 'NSRB', 'devices': [{'part_num': '800-00598-r04', 'installed': '1670088923', 'serial_num': '122232095000', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229822', 'admin_state': 1, 'dev_type': 12, 'created_date': '1670088923', 'img_load_date': '1522376696', 'img_pnum_running': '520-00086-r01-v02.12.07', 'ptpn': '540-00139-r01-v02.12.00', 'chaneid': 1811939601, 'device_control': [{'gficlearset': False}], 'producing': False, 'communicating': True, 'provisioned': True, 'operating': True, 'relay': 'closed', 'reason_code': -1, 'reason': 'ok', 'line-count': 1, 'line1-connected': True, 'line2-connected': False, 'line3-connected': False}]}, {'type': 'ESUB', 'devices': []}] [2023-08-28 13:38:28][DEBUG] : Attente de 5s [2023-08-28 13:38:28][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:38:29][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:38:33][INFO] : Recuperation mesures [2023-08-28 13:38:33][DEBUG] : close.started [2023-08-28 13:38:33][DEBUG] : close.complete [2023-08-28 13:38:33][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:38:34][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:38:34][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:38:34][DEBUG] : start_tls.complete return_value= [2023-08-28 13:38:34][DEBUG] : send_request_headers.started request= [2023-08-28 13:38:34][DEBUG] : send_request_headers.complete [2023-08-28 13:38:34][DEBUG] : send_request_body.started request= [2023-08-28 13:38:34][DEBUG] : send_request_body.complete [2023-08-28 13:38:34][DEBUG] : receive_response_headers.started request= [2023-08-28 13:38:34][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:40:23 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:38:34][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-28 13:38:34][DEBUG] : receive_response_body.started request= [2023-08-28 13:38:34][DEBUG] : receive_response_body.complete [2023-08-28 13:38:34][DEBUG] : response_closed.started [2023-08-28 13:38:34][DEBUG] : response_closed.complete [2023-08-28 13:38:34][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1693229822, 'wNow': 376, 'whLifetime': 27613}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1693230023, 'wNow': 377.944, 'whLifetime': 1226422.548, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468475.54, 'vahLifetime': 1557794.074, 'rmsCurrent': 1.634, 'rmsVoltage': 233.601, 'reactPwr': 63.175, 'apprntPwr': 381.519, 'pwrFactor': 0.97, 'whToday': 2843.548, 'whLastSevenDays': 41413.548, 'vahToday': 3449.074, 'varhLeadToday': 0.104, 'varhLagToday': 1004.54, 'lines': [{'wNow': 377.944, 'whLifetime': 1226422.548, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468475.54, 'vahLifetime': 1557794.074, 'rmsCurrent': 1.634, 'rmsVoltage': 233.601, 'reactPwr': 63.175, 'apprntPwr': 381.519, 'pwrFactor': 0.97, 'whToday': 2843.548, 'whLastSevenDays': 41413.548, 'vahToday': 3449.074, 'varhLeadToday': 0.104, 'varhLagToday': 1004.54}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1693230023, 'wNow': 1534.923, 'whLifetime': 5848176.017, 'varhLeadLifetime': 4085699.229, 'varhLagLifetime': -468186.505, 'vahLifetime': 7200783.401, 'rmsCurrent': 7.679, 'rmsVoltage': 233.476, 'reactPwr': -672.908, 'apprntPwr': 1792.804, 'pwrFactor': 0.86, 'whToday': 12393.017, 'whLastSevenDays': 259.017, 'vahToday': 16020.401, 'varhLeadToday': 10370.229, 'varhLagToday': 0.0, 'lines': [{'wNow': 1534.923, 'whLifetime': 5848176.017, 'varhLeadLifetime': 4085699.229, 'varhLagLifetime': -468186.505, 'vahLifetime': 7200783.401, 'rmsCurrent': 7.679, 'rmsVoltage': 233.476, 'reactPwr': -672.908, 'apprntPwr': 1792.804, 'pwrFactor': 0.86, 'whToday': 12393.017, 'whLastSevenDays': 259.017, 'vahToday': 16020.401, 'varhLeadToday': 10370.229, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1693230023, 'wNow': 1156.98, 'whLifetime': 4622068.439, 'varhLeadLifetime': 4086849.333, 'varhLagLifetime': 289.035, 'vahLifetime': 7200783.401, 'rmsCurrent': 6.045, 'rmsVoltage': 233.476, 'reactPwr': -736.083, 'apprntPwr': 1411.286, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 1156.98, 'whLifetime': 4622068.439, 'varhLeadLifetime': 4086849.333, 'varhLagLifetime': 289.035, 'vahLifetime': 7200783.401, 'rmsCurrent': 6.045, 'rmsVoltage': 233.476, 'reactPwr': -736.083, 'apprntPwr': 1411.286, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0}]}], 'storage': [{'type': 'acb', 'activeCount': 0, 'readingTime': 0, 'wNow': 0, 'whNow': 0, 'state': 'idle'}]} [2023-08-28 13:38:34][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:38:34][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:38:35][DEBUG] : send_request_headers.started request= [2023-08-28 13:38:35][DEBUG] : send_request_headers.complete [2023-08-28 13:38:35][DEBUG] : send_request_body.started request= [2023-08-28 13:38:35][DEBUG] : send_request_body.complete [2023-08-28 13:38:35][DEBUG] : receive_response_headers.started request= [2023-08-28 13:38:35][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:40:24 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'603'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:38:35][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-28 13:38:35][DEBUG] : receive_response_body.started request= [2023-08-28 13:38:35][DEBUG] : receive_response_body.complete [2023-08-28 13:38:35][DEBUG] : response_closed.started [2023-08-28 13:38:35][DEBUG] : response_closed.complete [2023-08-28 13:38:35][DEBUG] : Recuperation mesures onduleurs2 [2023-08-28 13:38:35][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1693229611, 'devType': 1, 'lastReportWatts': 89, 'maxReportWatts': 293}, {'serialNumber': '482236085940', 'lastReportDate': 1693229670, 'devType': 1, 'lastReportWatts': 90, 'maxReportWatts': 296}, {'serialNumber': '482236085744', 'lastReportDate': 1693229760, 'devType': 1, 'lastReportWatts': 99, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1693229790, 'devType': 1, 'lastReportWatts': 98, 'maxReportWatts': 296}] [2023-08-28 13:38:35][DEBUG] : Recuperation index [2023-08-28 13:38:35][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:38:35][DEBUG] : send_request_headers.started request= [2023-08-28 13:38:35][DEBUG] : send_request_headers.complete [2023-08-28 13:38:35][DEBUG] : send_request_body.started request= [2023-08-28 13:38:35][DEBUG] : send_request_body.complete [2023-08-28 13:38:35][DEBUG] : receive_response_headers.started request= [2023-08-28 13:38:35][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:38:35][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:40:24 GMT'), (b'Content-Length', b'4849'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:38:35][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-28 13:38:35][DEBUG] : receive_response_body.started request= [2023-08-28 13:38:35][DEBUG] : receive_response_body.complete [2023-08-28 13:38:35][DEBUG] : response_closed.started [2023-08-28 13:38:35][DEBUG] : response_closed.complete [2023-08-28 13:38:35][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1693230024, 'actEnergyDlvd': 1226422.758, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557794.285, 'reactEnergyLagg': 468475.575, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 378.14, 'activePower': 378.14, 'apparentPower': 381.71, 'reactivePower': 62.791, 'pwrFactor': 1.0, 'voltage': 233.486, 'current': 1.636, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1693230024, 'actEnergyDlvd': 1226422.758, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557794.285, 'reactEnergyLagg': 468475.575, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 378.14, 'activePower': 378.14, 'apparentPower': 381.71, 'reactivePower': 62.791, 'pwrFactor': 1.0, 'voltage': 233.486, 'current': 1.636, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1693230024, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7928.861, 'apparentEnergy': 1153.266, 'reactEnergyLagg': 493.227, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.044, 'activePower': -0.044, 'apparentPower': 0.187, 'reactivePower': 0.012, 'pwrFactor': 0.0, 'voltage': 2.659, 'current': 0.071, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1693230024, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 16304.098, 'apparentEnergy': 3619.349, 'reactEnergyLagg': 494.428, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.271, 'activePower': -0.271, 'apparentPower': 0.58, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 4.203, 'current': 0.138, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1693230024, 'actEnergyDlvd': 4792505.086, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200784.184, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086849.741, 'instantaneousDemand': 1148.703, 'activePower': 1148.703, 'apparentPower': 1406.986, 'reactivePower': -734.004, 'pwrFactor': 0.805, 'voltage': 233.357, 'current': 6.028, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1693230024, 'actEnergyDlvd': 4792505.086, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200784.184, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086849.741, 'instantaneousDemand': 1148.703, 'activePower': 1148.703, 'apparentPower': 1406.986, 'reactivePower': -734.004, 'pwrFactor': 0.805, 'voltage': 233.357, 'current': 6.028, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1693230024, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5293.141, 'apparentEnergy': 34.275, 'reactEnergyLagg': 457.672, 'reactEnergyLead': 0.33, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 3.804, 'current': 0.0, 'freq': 50.0}, {'eid': 1778385427, 'timestamp': 1693230024, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11987.183, 'apparentEnergy': 17.442, 'reactEnergyLagg': 464.678, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': -0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 0.861, 'current': -0.0, 'freq': 50.0}]}] [2023-08-28 13:38:35][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:38:35][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:38:50][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-28 13:38:50][INFO] : Test Token [2023-08-28 13:38:50][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:38:50][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:38:50][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:38:50][DEBUG] : start_tls.complete return_value= [2023-08-28 13:38:50][DEBUG] : send_request_headers.started request= [2023-08-28 13:38:50][DEBUG] : send_request_headers.complete [2023-08-28 13:38:50][DEBUG] : send_request_body.started request= [2023-08-28 13:38:50][DEBUG] : send_request_body.complete [2023-08-28 13:38:50][DEBUG] : receive_response_headers.started request= [2023-08-28 13:38:50][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:40:39 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=6aRJvzIGtbJYdaALaV4mdxh7UfxphWdo; Secure; HttpOnly; path=/'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:38:50][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-28 13:38:50][DEBUG] : receive_response_body.started request= [2023-08-28 13:38:50][DEBUG] : receive_response_body.complete [2023-08-28 13:38:50][DEBUG] : response_closed.started [2023-08-28 13:38:50][DEBUG] : response_closed.complete [2023-08-28 13:38:50][INFO] : Recuperation mesures [2023-08-28 13:38:50][DEBUG] : send_request_headers.started request= [2023-08-28 13:38:50][DEBUG] : send_request_headers.complete [2023-08-28 13:38:50][DEBUG] : send_request_body.started request= [2023-08-28 13:38:50][DEBUG] : send_request_body.complete [2023-08-28 13:38:50][DEBUG] : receive_response_headers.started request= [2023-08-28 13:38:51][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:40:39 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:38:51][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-28 13:38:51][DEBUG] : receive_response_body.started request= [2023-08-28 13:38:51][DEBUG] : receive_response_body.complete [2023-08-28 13:38:51][DEBUG] : response_closed.started [2023-08-28 13:38:51][DEBUG] : response_closed.complete [2023-08-28 13:38:51][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1693229822, 'wNow': 376, 'whLifetime': 27613}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1693230039, 'wNow': 378.29, 'whLifetime': 1226424.31, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468475.833, 'vahLifetime': 1557795.855, 'rmsCurrent': 1.639, 'rmsVoltage': 233.734, 'reactPwr': 63.038, 'apprntPwr': 383.213, 'pwrFactor': 1.0, 'whToday': 2845.31, 'whLastSevenDays': 41415.31, 'vahToday': 3450.855, 'varhLeadToday': 0.104, 'varhLagToday': 1004.833, 'lines': [{'wNow': 378.29, 'whLifetime': 1226424.31, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468475.833, 'vahLifetime': 1557795.855, 'rmsCurrent': 1.639, 'rmsVoltage': 233.734, 'reactPwr': 63.038, 'apprntPwr': 383.213, 'pwrFactor': 1.0, 'whToday': 2845.31, 'whLastSevenDays': 41415.31, 'vahToday': 3450.855, 'varhLeadToday': 0.104, 'varhLagToday': 1004.833}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1693230039, 'wNow': 1526.898, 'whLifetime': 5848182.838, 'varhLeadLifetime': 4085702.618, 'varhLagLifetime': -468186.797, 'vahLifetime': 7200789.683, 'rmsCurrent': 7.645, 'rmsVoltage': 233.731, 'reactPwr': -673.323, 'apprntPwr': 1786.965, 'pwrFactor': 0.85, 'whToday': 12399.838, 'whLastSevenDays': 265.838, 'vahToday': 16026.683, 'varhLeadToday': 10373.618, 'varhLagToday': 0.0, 'lines': [{'wNow': 1526.898, 'whLifetime': 5848182.838, 'varhLeadLifetime': 4085702.618, 'varhLagLifetime': -468186.797, 'vahLifetime': 7200789.683, 'rmsCurrent': 7.645, 'rmsVoltage': 233.731, 'reactPwr': -673.323, 'apprntPwr': 1786.965, 'pwrFactor': 0.85, 'whToday': 12399.838, 'whLastSevenDays': 265.838, 'vahToday': 16026.683, 'varhLeadToday': 10373.618, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1693230039, 'wNow': 1148.608, 'whLifetime': 4622073.498, 'varhLeadLifetime': 4086852.722, 'varhLagLifetime': 289.035, 'vahLifetime': 7200789.683, 'rmsCurrent': 6.006, 'rmsVoltage': 233.731, 'reactPwr': -736.361, 'apprntPwr': 1403.8, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 1148.608, 'whLifetime': 4622073.498, 'varhLeadLifetime': 4086852.722, 'varhLagLifetime': 289.035, 'vahLifetime': 7200789.683, 'rmsCurrent': 6.006, 'rmsVoltage': 233.731, 'reactPwr': -736.361, 'apprntPwr': 1403.8, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0}]}], 'storage': [{'type': 'acb', 'activeCount': 0, 'readingTime': 0, 'wNow': 0, 'whNow': 0, 'state': 'idle'}]} [2023-08-28 13:38:51][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:38:51][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:38:52][DEBUG] : send_request_headers.started request= [2023-08-28 13:38:52][DEBUG] : send_request_headers.complete [2023-08-28 13:38:52][DEBUG] : send_request_body.started request= [2023-08-28 13:38:52][DEBUG] : send_request_body.complete [2023-08-28 13:38:52][DEBUG] : receive_response_headers.started request= [2023-08-28 13:38:52][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:40:40 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'603'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:38:52][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-28 13:38:52][DEBUG] : receive_response_body.started request= [2023-08-28 13:38:52][DEBUG] : receive_response_body.complete [2023-08-28 13:38:52][DEBUG] : response_closed.started [2023-08-28 13:38:52][DEBUG] : response_closed.complete [2023-08-28 13:38:52][DEBUG] : Recuperation mesures onduleurs [2023-08-28 13:38:52][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1693229611, 'devType': 1, 'lastReportWatts': 89, 'maxReportWatts': 293}, {'serialNumber': '482236085940', 'lastReportDate': 1693229670, 'devType': 1, 'lastReportWatts': 90, 'maxReportWatts': 296}, {'serialNumber': '482236085744', 'lastReportDate': 1693229760, 'devType': 1, 'lastReportWatts': 99, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1693229790, 'devType': 1, 'lastReportWatts': 98, 'maxReportWatts': 296}] [2023-08-28 13:38:52][DEBUG] : Recuperation index [2023-08-28 13:38:52][DEBUG] : send_request_headers.started request= [2023-08-28 13:38:52][DEBUG] : send_request_headers.complete [2023-08-28 13:38:52][DEBUG] : send_request_body.started request= [2023-08-28 13:38:52][DEBUG] : send_request_body.complete [2023-08-28 13:38:52][DEBUG] : receive_response_headers.started request= [2023-08-28 13:38:52][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:38:52][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:40:40 GMT'), (b'Content-Length', b'4850'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:38:52][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-28 13:38:52][DEBUG] : receive_response_body.started request= [2023-08-28 13:38:52][DEBUG] : receive_response_body.complete [2023-08-28 13:38:52][DEBUG] : response_closed.started [2023-08-28 13:38:52][DEBUG] : response_closed.complete [2023-08-28 13:38:52][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1693230039, 'actEnergyDlvd': 1226424.415, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557795.961, 'reactEnergyLagg': 468475.85, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 378.509, 'activePower': 378.509, 'apparentPower': 383.025, 'reactivePower': 63.046, 'pwrFactor': 0.986, 'voltage': 233.798, 'current': 1.638, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1693230039, 'actEnergyDlvd': 1226424.415, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557795.961, 'reactEnergyLagg': 468475.85, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 378.509, 'activePower': 378.509, 'apparentPower': 383.025, 'reactivePower': 63.046, 'pwrFactor': 0.986, 'voltage': 233.798, 'current': 1.638, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1693230039, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7928.866, 'apparentEnergy': 1153.266, 'reactEnergyLagg': 493.227, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.016, 'activePower': -0.016, 'apparentPower': 0.181, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 2.658, 'current': 0.066, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1693230039, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 16304.109, 'apparentEnergy': 3619.351, 'reactEnergyLagg': 494.428, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.244, 'activePower': -0.244, 'apparentPower': 0.578, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 4.202, 'current': 0.138, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1693230039, 'actEnergyDlvd': 4792509.817, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200790.068, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086852.925, 'instantaneousDemand': 1137.348, 'activePower': 1137.348, 'apparentPower': 1397.566, 'reactivePower': -733.48, 'pwrFactor': 0.789, 'voltage': 233.833, 'current': 5.95, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1693230039, 'actEnergyDlvd': 4792509.817, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200790.068, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086852.925, 'instantaneousDemand': 1137.348, 'activePower': 1137.348, 'apparentPower': 1397.566, 'reactivePower': -733.48, 'pwrFactor': 0.789, 'voltage': 233.833, 'current': 5.95, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1693230039, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5293.145, 'apparentEnergy': 34.275, 'reactEnergyLagg': 457.672, 'reactEnergyLead': 0.33, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 3.804, 'current': 0.0, 'freq': 50.0}, {'eid': 1778385427, 'timestamp': 1693230039, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11987.192, 'apparentEnergy': 17.442, 'reactEnergyLagg': 464.679, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': -0.0, 'reactivePower': 0.0, 'pwrFactor': -1.0, 'voltage': 0.861, 'current': -0.0, 'freq': 50.0}]}] [2023-08-28 13:38:52][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:38:52][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:38:52][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:39:05][DEBUG] : Signal 15 caught, exiting... [2023-08-28 13:39:05][DEBUG] : Shutdown [2023-08-28 13:39:05][DEBUG] : Removing PID file /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:39:05][INFO] : Send to jeedom : error arret [2023-08-28 13:39:05][DEBUG] : Exit 0 [2023-08-28 13:39:10][INFO] : Start demond [2023-08-28 13:39:10][INFO] : Log level : debug [2023-08-28 13:39:10][DEBUG] : Socket port : 40328 [2023-08-28 13:39:10][DEBUG] : Socket host : localhost [2023-08-28 13:39:10][DEBUG] : PID file : /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:39:10][DEBUG] : Apikey : wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM [2023-08-28 13:39:10][DEBUG] : Device : auto [2023-08-28 13:39:10][DEBUG] : Callback : http://127.0.0.1:80/plugins/enphasesecur/core/php/jeeenphasesecur.php [2023-08-28 13:39:10][DEBUG] : Delais actualisation : 15 [2023-08-28 13:39:10][INFO] : Adresse IP Passerelle : 192.168.0.70 [2023-08-28 13:39:10][DEBUG] : User : m_mickael@yahoo.fr [2023-08-28 13:39:10][DEBUG] : Password : %scream%enphase [2023-08-28 13:39:10][DEBUG] : Numero de serie : 122239084064 [2023-08-28 13:39:10][INFO] : Writing PID 28956 to /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:39:10][INFO] : Init request module v2.31.0 [2023-08-28 13:39:10][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:39:10][DEBUG] : http://127.0.0.1:80 "GET /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 2 [2023-08-28 13:39:25][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-28 13:39:25][INFO] : Recuperation token [2023-08-28 13:39:25][DEBUG] : Starting new HTTPS connection (1): enlighten.enphaseenergy.com:443 [2023-08-28 13:39:28][DEBUG] : https://enlighten.enphaseenergy.com:443 "POST /login/login.json HTTP/1.1" 200 None [2023-08-28 13:39:28][DEBUG] : Starting new HTTPS connection (1): entrez.enphaseenergy.com:443 [2023-08-28 13:39:28][DEBUG] : https://entrez.enphaseenergy.com:443 "POST /tokens HTTP/1.1" 200 None [2023-08-28 13:39:28][DEBUG] : eyJraWQiOiI3ZDEwMDA1ZC03ODk5LTRkMGQtYmNiNC0yNDRmOThlZTE1NmIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJhdWQiOiIxMjIyMzkwODQwNjQiLCJpc3MiOiJFbnRyZXoiLCJlbnBoYXNlVXNlciI6Im93bmVyIiwiZXhwIjoxNzI0NzY1OTY4LCJpYXQiOjE2OTMyMjk5NjgsImp0aSI6IjliYmU5NGY0LWQ2MWMtNGY0MC1hMjY1LWVkZjAzMTYxN2IwNSIsInVzZXJuYW1lIjoibV9taWNrYWVsQHlhaG9vLmZyIn0.1n_Yo0l_JOJpq4OyHSlRGIm3pCeBjuz_I6ms9kAiijocv-D6Sc8JMMBSfL_P-a9QvQ-pL7Q-hVwfom6i7tQdaw [2023-08-28 13:39:28][INFO] : Test Token [2023-08-28 13:39:28][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:39:28][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:39:28][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:39:29][DEBUG] : start_tls.complete return_value= [2023-08-28 13:39:29][DEBUG] : send_request_headers.started request= [2023-08-28 13:39:29][DEBUG] : send_request_headers.complete [2023-08-28 13:39:29][DEBUG] : send_request_body.started request= [2023-08-28 13:39:29][DEBUG] : send_request_body.complete [2023-08-28 13:39:29][DEBUG] : receive_response_headers.started request= [2023-08-28 13:39:29][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:41:17 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=IU9TkSHnWfhGwVLaXbMhl8HarBx1uGo4; Secure; HttpOnly; path=/'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:39:29][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-28 13:39:29][DEBUG] : receive_response_body.started request= [2023-08-28 13:39:29][DEBUG] : receive_response_body.complete [2023-08-28 13:39:29][DEBUG] : response_closed.started [2023-08-28 13:39:29][DEBUG] : response_closed.complete [2023-08-28 13:39:29][DEBUG] : Recuperation Inventaire [2023-08-28 13:39:29][DEBUG] : send_request_headers.started request= [2023-08-28 13:39:29][DEBUG] : send_request_headers.complete [2023-08-28 13:39:29][DEBUG] : send_request_body.started request= [2023-08-28 13:39:29][DEBUG] : send_request_body.complete [2023-08-28 13:39:29][DEBUG] : receive_response_headers.started request= [2023-08-28 13:39:29][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:41:18 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:39:29][INFO] : HTTP Request: GET https://192.168.0.70/inventory.json "HTTP/1.1 200 OK" [2023-08-28 13:39:29][DEBUG] : receive_response_body.started request= [2023-08-28 13:39:29][DEBUG] : receive_response_body.complete [2023-08-28 13:39:29][DEBUG] : response_closed.started [2023-08-28 13:39:29][DEBUG] : response_closed.complete [2023-08-28 13:39:29][INFO] : Send to jeedom : [{'type': 'PCU', 'devices': [{'part_num': '800-01736-r02', 'installed': '1670094034', 'serial_num': '482236085960', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229612', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094034', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390225, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094034', 'serial_num': '482236085940', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229672', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094034', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390481, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094035', 'serial_num': '482236085744', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229762', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094035', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390737, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094035', 'serial_num': '482236085917', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229792', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094035', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390993, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}]}, {'type': 'ACB', 'devices': []}, {'type': 'NSRB', 'devices': [{'part_num': '800-00598-r04', 'installed': '1670088923', 'serial_num': '122232095000', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229822', 'admin_state': 1, 'dev_type': 12, 'created_date': '1670088923', 'img_load_date': '1522376696', 'img_pnum_running': '520-00086-r01-v02.12.07', 'ptpn': '540-00139-r01-v02.12.00', 'chaneid': 1811939601, 'device_control': [{'gficlearset': False}], 'producing': False, 'communicating': True, 'provisioned': True, 'operating': True, 'relay': 'closed', 'reason_code': -1, 'reason': 'ok', 'line-count': 1, 'line1-connected': True, 'line2-connected': False, 'line3-connected': False}]}, {'type': 'ESUB', 'devices': []}] [2023-08-28 13:39:29][DEBUG] : Attente de 5s [2023-08-28 13:39:29][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:39:30][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:39:34][INFO] : Recuperation mesures [2023-08-28 13:39:34][DEBUG] : close.started [2023-08-28 13:39:34][DEBUG] : close.complete [2023-08-28 13:39:34][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:39:34][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:39:34][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:39:35][DEBUG] : start_tls.complete return_value= [2023-08-28 13:39:35][DEBUG] : send_request_headers.started request= [2023-08-28 13:39:35][DEBUG] : send_request_headers.complete [2023-08-28 13:39:35][DEBUG] : send_request_body.started request= [2023-08-28 13:39:35][DEBUG] : send_request_body.complete [2023-08-28 13:39:35][DEBUG] : receive_response_headers.started request= [2023-08-28 13:39:35][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:41:24 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:39:35][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-28 13:39:35][DEBUG] : receive_response_body.started request= [2023-08-28 13:39:35][DEBUG] : receive_response_body.complete [2023-08-28 13:39:35][DEBUG] : response_closed.started [2023-08-28 13:39:35][DEBUG] : response_closed.complete [2023-08-28 13:39:35][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1693229822, 'wNow': 376, 'whLifetime': 27613}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1693230084, 'wNow': 380.792, 'whLifetime': 1226429.027, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468476.615, 'vahLifetime': 1557800.626, 'rmsCurrent': 1.646, 'rmsVoltage': 233.942, 'reactPwr': 63.88, 'apprntPwr': 384.851, 'pwrFactor': 1.0, 'whToday': 2850.027, 'whLastSevenDays': 41420.027, 'vahToday': 3455.626, 'varhLeadToday': 0.104, 'varhLagToday': 1005.615, 'lines': [{'wNow': 380.792, 'whLifetime': 1226429.027, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468476.615, 'vahLifetime': 1557800.626, 'rmsCurrent': 1.646, 'rmsVoltage': 233.942, 'reactPwr': 63.88, 'apprntPwr': 384.851, 'pwrFactor': 1.0, 'whToday': 2850.027, 'whLastSevenDays': 41420.027, 'vahToday': 3455.626, 'varhLeadToday': 0.104, 'varhLagToday': 1005.615}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1693230084, 'wNow': 1526.114, 'whLifetime': 5848201.72, 'varhLeadLifetime': 4085711.783, 'varhLagLifetime': -468187.58, 'vahLifetime': 7200807.078, 'rmsCurrent': 7.659, 'rmsVoltage': 234.089, 'reactPwr': -677.124, 'apprntPwr': 1792.806, 'pwrFactor': 0.85, 'whToday': 12418.72, 'whLastSevenDays': 284.72, 'vahToday': 16044.078, 'varhLeadToday': 10382.783, 'varhLagToday': 0.0, 'lines': [{'wNow': 1526.114, 'whLifetime': 5848201.72, 'varhLeadLifetime': 4085711.783, 'varhLagLifetime': -468187.58, 'vahLifetime': 7200807.078, 'rmsCurrent': 7.659, 'rmsVoltage': 234.089, 'reactPwr': -677.124, 'apprntPwr': 1792.806, 'pwrFactor': 0.85, 'whToday': 12418.72, 'whLastSevenDays': 284.72, 'vahToday': 16044.078, 'varhLeadToday': 10382.783, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1693230084, 'wNow': 1145.322, 'whLifetime': 4622087.664, 'varhLeadLifetime': 4086861.887, 'varhLagLifetime': 289.035, 'vahLifetime': 7200807.078, 'rmsCurrent': 6.012, 'rmsVoltage': 234.089, 'reactPwr': -741.004, 'apprntPwr': 1407.409, 'pwrFactor': 0.81, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 1145.322, 'whLifetime': 4622087.664, 'varhLeadLifetime': 4086861.887, 'varhLagLifetime': 289.035, 'vahLifetime': 7200807.078, 'rmsCurrent': 6.012, 'rmsVoltage': 234.089, 'reactPwr': -741.004, 'apprntPwr': 1407.409, 'pwrFactor': 0.81, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0}]}], 'storage': [{'type': 'acb', 'activeCount': 0, 'readingTime': 0, 'wNow': 0, 'whNow': 0, 'state': 'idle'}]} [2023-08-28 13:39:35][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:39:35][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:39:36][DEBUG] : send_request_headers.started request= [2023-08-28 13:39:36][DEBUG] : send_request_headers.complete [2023-08-28 13:39:36][DEBUG] : send_request_body.started request= [2023-08-28 13:39:36][DEBUG] : send_request_body.complete [2023-08-28 13:39:36][DEBUG] : receive_response_headers.started request= [2023-08-28 13:39:36][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:41:25 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'603'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:39:36][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-28 13:39:36][DEBUG] : receive_response_body.started request= [2023-08-28 13:39:36][DEBUG] : receive_response_body.complete [2023-08-28 13:39:36][DEBUG] : response_closed.started [2023-08-28 13:39:36][DEBUG] : response_closed.complete [2023-08-28 13:39:36][DEBUG] : Recuperation mesures onduleurs2 [2023-08-28 13:39:36][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1693229611, 'devType': 1, 'lastReportWatts': 89, 'maxReportWatts': 293}, {'serialNumber': '482236085940', 'lastReportDate': 1693229670, 'devType': 1, 'lastReportWatts': 90, 'maxReportWatts': 296}, {'serialNumber': '482236085744', 'lastReportDate': 1693229760, 'devType': 1, 'lastReportWatts': 99, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1693229790, 'devType': 1, 'lastReportWatts': 98, 'maxReportWatts': 296}] [2023-08-28 13:39:36][DEBUG] : Recuperation index [2023-08-28 13:39:36][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:39:36][DEBUG] : send_request_headers.started request= [2023-08-28 13:39:36][DEBUG] : send_request_headers.complete [2023-08-28 13:39:36][DEBUG] : send_request_body.started request= [2023-08-28 13:39:36][DEBUG] : send_request_body.complete [2023-08-28 13:39:36][DEBUG] : receive_response_headers.started request= [2023-08-28 13:39:36][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:39:36][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:41:25 GMT'), (b'Content-Length', b'4849'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:39:36][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-28 13:39:36][DEBUG] : receive_response_body.started request= [2023-08-28 13:39:36][DEBUG] : receive_response_body.complete [2023-08-28 13:39:36][DEBUG] : response_closed.started [2023-08-28 13:39:36][DEBUG] : response_closed.complete [2023-08-28 13:39:36][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1693230084, 'actEnergyDlvd': 1226429.143, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557800.743, 'reactEnergyLagg': 468476.634, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 380.744, 'activePower': 380.744, 'apparentPower': 385.145, 'reactivePower': 63.355, 'pwrFactor': 1.0, 'voltage': 233.99, 'current': 1.647, 'freq': 50.062, 'channels': [{'eid': 1778385169, 'timestamp': 1693230084, 'actEnergyDlvd': 1226429.143, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557800.743, 'reactEnergyLagg': 468476.634, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 380.744, 'activePower': 380.744, 'apparentPower': 385.145, 'reactivePower': 63.355, 'pwrFactor': 1.0, 'voltage': 233.99, 'current': 1.647, 'freq': 50.062}, {'eid': 1778385170, 'timestamp': 1693230084, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7928.882, 'apparentEnergy': 1153.269, 'reactEnergyLagg': 493.229, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.028, 'activePower': -0.028, 'apparentPower': 0.183, 'reactivePower': 0.0, 'pwrFactor': -1.0, 'voltage': 2.659, 'current': 0.069, 'freq': 50.062}, {'eid': 1778385171, 'timestamp': 1693230084, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 16304.141, 'apparentEnergy': 3619.358, 'reactEnergyLagg': 494.429, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.199, 'activePower': -0.199, 'apparentPower': 0.567, 'reactivePower': 0.053, 'pwrFactor': 0.0, 'voltage': 4.202, 'current': 0.135, 'freq': 50.062}]}, {'eid': 704643584, 'timestamp': 1693230084, 'actEnergyDlvd': 4792524.025, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200807.509, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086862.113, 'instantaneousDemand': 1150.527, 'activePower': 1150.527, 'apparentPower': 1409.071, 'reactivePower': -741.258, 'pwrFactor': 0.818, 'voltage': 234.134, 'current': 6.006, 'freq': 50.062, 'channels': [{'eid': 1778385425, 'timestamp': 1693230084, 'actEnergyDlvd': 4792524.025, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200807.509, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086862.113, 'instantaneousDemand': 1150.527, 'activePower': 1150.527, 'apparentPower': 1409.071, 'reactivePower': -741.258, 'pwrFactor': 0.818, 'voltage': 234.134, 'current': 6.006, 'freq': 50.062}, {'eid': 1778385426, 'timestamp': 1693230084, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5293.155, 'apparentEnergy': 34.275, 'reactEnergyLagg': 457.673, 'reactEnergyLead': 0.33, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 3.804, 'current': 0.0, 'freq': 50.062}, {'eid': 1778385427, 'timestamp': 1693230084, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11987.214, 'apparentEnergy': 17.442, 'reactEnergyLagg': 464.679, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': -0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 0.861, 'current': -0.0, 'freq': 50.062}]}] [2023-08-28 13:39:36][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:39:36][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:39:51][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-28 13:39:51][INFO] : Test Token [2023-08-28 13:39:51][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:39:51][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:39:51][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:39:52][DEBUG] : start_tls.complete return_value= [2023-08-28 13:39:52][DEBUG] : send_request_headers.started request= [2023-08-28 13:39:52][DEBUG] : send_request_headers.complete [2023-08-28 13:39:52][DEBUG] : send_request_body.started request= [2023-08-28 13:39:52][DEBUG] : send_request_body.complete [2023-08-28 13:39:52][DEBUG] : receive_response_headers.started request= [2023-08-28 13:39:52][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:41:40 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=IU9TkSHnWfhGwVLaXbMhl8HarBx1uGo4; Secure; HttpOnly; path=/'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:39:52][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-28 13:39:52][DEBUG] : receive_response_body.started request= [2023-08-28 13:39:52][DEBUG] : receive_response_body.complete [2023-08-28 13:39:52][DEBUG] : response_closed.started [2023-08-28 13:39:52][DEBUG] : response_closed.complete [2023-08-28 13:39:52][INFO] : Recuperation mesures [2023-08-28 13:39:52][DEBUG] : send_request_headers.started request= [2023-08-28 13:39:52][DEBUG] : send_request_headers.complete [2023-08-28 13:39:52][DEBUG] : send_request_body.started request= [2023-08-28 13:39:52][DEBUG] : send_request_body.complete [2023-08-28 13:39:52][DEBUG] : receive_response_headers.started request= [2023-08-28 13:39:52][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:41:41 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:39:52][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-28 13:39:52][DEBUG] : receive_response_body.started request= [2023-08-28 13:39:52][DEBUG] : receive_response_body.complete [2023-08-28 13:39:52][DEBUG] : response_closed.started [2023-08-28 13:39:52][DEBUG] : response_closed.complete [2023-08-28 13:39:52][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1693229822, 'wNow': 376, 'whLifetime': 27613}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1693230101, 'wNow': 381.317, 'whLifetime': 1226430.824, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468476.912, 'vahLifetime': 1557802.444, 'rmsCurrent': 1.649, 'rmsVoltage': 234.323, 'reactPwr': 63.438, 'apprntPwr': 386.299, 'pwrFactor': 0.98, 'whToday': 2851.824, 'whLastSevenDays': 41421.824, 'vahToday': 3457.444, 'varhLeadToday': 0.104, 'varhLagToday': 1005.912, 'lines': [{'wNow': 381.317, 'whLifetime': 1226430.824, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468476.912, 'vahLifetime': 1557802.444, 'rmsCurrent': 1.649, 'rmsVoltage': 234.323, 'reactPwr': 63.438, 'apprntPwr': 386.299, 'pwrFactor': 0.98, 'whToday': 2851.824, 'whLastSevenDays': 41421.824, 'vahToday': 3457.444, 'varhLeadToday': 0.104, 'varhLagToday': 1005.912}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1693230101, 'wNow': 1542.223, 'whLifetime': 5848209.001, 'varhLeadLifetime': 4085715.283, 'varhLagLifetime': -468187.877, 'vahLifetime': 7200813.784, 'rmsCurrent': 7.727, 'rmsVoltage': 234.222, 'reactPwr': -678.227, 'apprntPwr': 1809.729, 'pwrFactor': 0.85, 'whToday': 12426.001, 'whLastSevenDays': 292.001, 'vahToday': 16050.784, 'varhLeadToday': 10386.283, 'varhLagToday': 0.0, 'lines': [{'wNow': 1542.223, 'whLifetime': 5848209.001, 'varhLeadLifetime': 4085715.283, 'varhLagLifetime': -468187.877, 'vahLifetime': 7200813.784, 'rmsCurrent': 7.727, 'rmsVoltage': 234.222, 'reactPwr': -678.227, 'apprntPwr': 1809.729, 'pwrFactor': 0.85, 'whToday': 12426.001, 'whLastSevenDays': 292.001, 'vahToday': 16050.784, 'varhLeadToday': 10386.283, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1693230101, 'wNow': 1160.906, 'whLifetime': 4622093.147, 'varhLeadLifetime': 4086865.387, 'varhLagLifetime': 289.035, 'vahLifetime': 7200813.784, 'rmsCurrent': 6.078, 'rmsVoltage': 234.222, 'reactPwr': -741.664, 'apprntPwr': 1423.554, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 1160.906, 'whLifetime': 4622093.147, 'varhLeadLifetime': 4086865.387, 'varhLagLifetime': 289.035, 'vahLifetime': 7200813.784, 'rmsCurrent': 6.078, 'rmsVoltage': 234.222, 'reactPwr': -741.664, 'apprntPwr': 1423.554, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0}]}], 'storage': [{'type': 'acb', 'activeCount': 0, 'readingTime': 0, 'wNow': 0, 'whNow': 0, 'state': 'idle'}]} [2023-08-28 13:39:52][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:39:52][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:39:53][DEBUG] : send_request_headers.started request= [2023-08-28 13:39:53][DEBUG] : send_request_headers.complete [2023-08-28 13:39:53][DEBUG] : send_request_body.started request= [2023-08-28 13:39:53][DEBUG] : send_request_body.complete [2023-08-28 13:39:53][DEBUG] : receive_response_headers.started request= [2023-08-28 13:39:53][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:41:42 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'603'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:39:53][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-28 13:39:53][DEBUG] : receive_response_body.started request= [2023-08-28 13:39:53][DEBUG] : receive_response_body.complete [2023-08-28 13:39:53][DEBUG] : response_closed.started [2023-08-28 13:39:53][DEBUG] : response_closed.complete [2023-08-28 13:39:53][DEBUG] : Recuperation mesures onduleurs [2023-08-28 13:39:53][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1693229611, 'devType': 1, 'lastReportWatts': 89, 'maxReportWatts': 293}, {'serialNumber': '482236085940', 'lastReportDate': 1693229670, 'devType': 1, 'lastReportWatts': 90, 'maxReportWatts': 296}, {'serialNumber': '482236085744', 'lastReportDate': 1693229760, 'devType': 1, 'lastReportWatts': 99, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1693229790, 'devType': 1, 'lastReportWatts': 98, 'maxReportWatts': 296}] [2023-08-28 13:39:53][DEBUG] : Recuperation index [2023-08-28 13:39:53][DEBUG] : send_request_headers.started request= [2023-08-28 13:39:53][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:39:53][DEBUG] : send_request_headers.complete [2023-08-28 13:39:53][DEBUG] : send_request_body.started request= [2023-08-28 13:39:53][DEBUG] : send_request_body.complete [2023-08-28 13:39:53][DEBUG] : receive_response_headers.started request= [2023-08-28 13:39:53][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:39:53][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:41:42 GMT'), (b'Content-Length', b'4851'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:39:53][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-28 13:39:53][DEBUG] : receive_response_body.started request= [2023-08-28 13:39:53][DEBUG] : receive_response_body.complete [2023-08-28 13:39:53][DEBUG] : response_closed.started [2023-08-28 13:39:53][DEBUG] : response_closed.complete [2023-08-28 13:39:53][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1693230101, 'actEnergyDlvd': 1226430.94, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557802.562, 'reactEnergyLagg': 468476.932, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 381.383, 'activePower': 381.383, 'apparentPower': 386.138, 'reactivePower': 63.078, 'pwrFactor': 0.986, 'voltage': 234.193, 'current': 1.648, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1693230101, 'actEnergyDlvd': 1226430.94, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557802.562, 'reactEnergyLagg': 468476.932, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 381.383, 'activePower': 381.383, 'apparentPower': 386.138, 'reactivePower': 63.078, 'pwrFactor': 0.986, 'voltage': 234.193, 'current': 1.648, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1693230101, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7928.887, 'apparentEnergy': 1153.269, 'reactEnergyLagg': 493.229, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.044, 'activePower': -0.044, 'apparentPower': 0.186, 'reactivePower': 0.018, 'pwrFactor': 0.0, 'voltage': 2.658, 'current': 0.069, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1693230101, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 16304.153, 'apparentEnergy': 3619.361, 'reactEnergyLagg': 494.429, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.243, 'activePower': -0.243, 'apparentPower': 0.573, 'reactivePower': -0.0, 'pwrFactor': -1.0, 'voltage': 4.202, 'current': 0.135, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1693230101, 'actEnergyDlvd': 4792529.508, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200814.215, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086865.613, 'instantaneousDemand': 1159.185, 'activePower': 1159.185, 'apparentPower': 1419.515, 'reactivePower': -741.605, 'pwrFactor': 0.82, 'voltage': 234.107, 'current': 6.052, 'freq': 50.125, 'channels': [{'eid': 1778385425, 'timestamp': 1693230101, 'actEnergyDlvd': 4792529.508, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200814.215, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086865.613, 'instantaneousDemand': 1159.185, 'activePower': 1159.185, 'apparentPower': 1419.515, 'reactivePower': -741.605, 'pwrFactor': 0.82, 'voltage': 234.107, 'current': 6.052, 'freq': 50.125}, {'eid': 1778385426, 'timestamp': 1693230101, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5293.159, 'apparentEnergy': 34.275, 'reactEnergyLagg': 457.674, 'reactEnergyLead': 0.33, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 3.804, 'current': 0.0, 'freq': 50.125}, {'eid': 1778385427, 'timestamp': 1693230101, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11987.223, 'apparentEnergy': 17.442, 'reactEnergyLagg': 464.68, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': -0.0, 'reactivePower': 0.0, 'pwrFactor': -1.0, 'voltage': 0.861, 'current': -0.0, 'freq': 50.125}]}] [2023-08-28 13:39:53][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:39:53][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:40:08][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-28 13:40:08][INFO] : Test Token [2023-08-28 13:40:08][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:40:08][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:40:08][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:40:08][DEBUG] : Signal 15 caught, exiting... [2023-08-28 13:40:08][DEBUG] : Shutdown [2023-08-28 13:40:08][DEBUG] : Removing PID file /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:40:08][INFO] : Send to jeedom : error arret [2023-08-28 13:40:08][DEBUG] : Exit 0 [2023-08-28 13:40:13][INFO] : Start demond [2023-08-28 13:40:13][INFO] : Log level : debug [2023-08-28 13:40:13][DEBUG] : Socket port : 10899 [2023-08-28 13:40:13][DEBUG] : Socket host : localhost [2023-08-28 13:40:13][DEBUG] : PID file : /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:40:13][DEBUG] : Apikey : wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM [2023-08-28 13:40:13][DEBUG] : Device : auto [2023-08-28 13:40:13][DEBUG] : Callback : http://127.0.0.1:80/plugins/enphasesecur/core/php/jeeenphasesecur.php [2023-08-28 13:40:13][DEBUG] : Delais actualisation : 15 [2023-08-28 13:40:13][INFO] : Adresse IP Passerelle : 192.168.0.70 [2023-08-28 13:40:13][DEBUG] : User : m_mickael@yahoo.fr [2023-08-28 13:40:13][DEBUG] : Password : %scream%enphase [2023-08-28 13:40:13][DEBUG] : Numero de serie : 122239084064 [2023-08-28 13:40:13][INFO] : Writing PID 31031 to /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:40:13][INFO] : Init request module v2.31.0 [2023-08-28 13:40:13][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:40:13][DEBUG] : http://127.0.0.1:80 "GET /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 2 [2023-08-28 13:40:28][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-28 13:40:28][INFO] : Recuperation token [2023-08-28 13:40:28][DEBUG] : Starting new HTTPS connection (1): enlighten.enphaseenergy.com:443 [2023-08-28 13:40:30][DEBUG] : https://enlighten.enphaseenergy.com:443 "POST /login/login.json HTTP/1.1" 200 None [2023-08-28 13:40:30][DEBUG] : Starting new HTTPS connection (1): entrez.enphaseenergy.com:443 [2023-08-28 13:40:31][DEBUG] : https://entrez.enphaseenergy.com:443 "POST /tokens HTTP/1.1" 200 None [2023-08-28 13:40:31][DEBUG] : eyJraWQiOiI3ZDEwMDA1ZC03ODk5LTRkMGQtYmNiNC0yNDRmOThlZTE1NmIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJhdWQiOiIxMjIyMzkwODQwNjQiLCJpc3MiOiJFbnRyZXoiLCJlbnBoYXNlVXNlciI6Im93bmVyIiwiZXhwIjoxNzI0NzY2MDMxLCJpYXQiOjE2OTMyMzAwMzEsImp0aSI6IjY2Y2RkZmFiLTA2ZTktNGY4Zi05NTliLWRiZGIzNjdkZDExOCIsInVzZXJuYW1lIjoibV9taWNrYWVsQHlhaG9vLmZyIn0.iB3mtn7L_Zum9DqK26HrDvhwo_wMfYn2hd5rlefw7IoORWW_qq2v90CXE99G8zYZQweGd8BKyaLsnj54xpEV0g [2023-08-28 13:40:31][INFO] : Test Token [2023-08-28 13:40:31][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:40:31][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:40:31][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:40:31][DEBUG] : start_tls.complete return_value= [2023-08-28 13:40:31][DEBUG] : send_request_headers.started request= [2023-08-28 13:40:31][DEBUG] : send_request_headers.complete [2023-08-28 13:40:31][DEBUG] : send_request_body.started request= [2023-08-28 13:40:31][DEBUG] : send_request_body.complete [2023-08-28 13:40:31][DEBUG] : receive_response_headers.started request= [2023-08-28 13:40:31][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:42:20 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=eKcZhXfqzjMKP6TDmJOx2EinsHPg9lY0; Secure; HttpOnly; path=/'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:40:31][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-28 13:40:31][DEBUG] : receive_response_body.started request= [2023-08-28 13:40:31][DEBUG] : receive_response_body.complete [2023-08-28 13:40:31][DEBUG] : response_closed.started [2023-08-28 13:40:31][DEBUG] : response_closed.complete [2023-08-28 13:40:31][DEBUG] : Recuperation Inventaire [2023-08-28 13:40:31][DEBUG] : send_request_headers.started request= [2023-08-28 13:40:31][DEBUG] : send_request_headers.complete [2023-08-28 13:40:31][DEBUG] : send_request_body.started request= [2023-08-28 13:40:31][DEBUG] : send_request_body.complete [2023-08-28 13:40:31][DEBUG] : receive_response_headers.started request= [2023-08-28 13:40:32][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:42:20 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:40:32][INFO] : HTTP Request: GET https://192.168.0.70/inventory.json "HTTP/1.1 200 OK" [2023-08-28 13:40:32][DEBUG] : receive_response_body.started request= [2023-08-28 13:40:32][DEBUG] : receive_response_body.complete [2023-08-28 13:40:32][DEBUG] : response_closed.started [2023-08-28 13:40:32][DEBUG] : response_closed.complete [2023-08-28 13:40:32][INFO] : Send to jeedom : [{'type': 'PCU', 'devices': [{'part_num': '800-01736-r02', 'installed': '1670094034', 'serial_num': '482236085960', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229612', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094034', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390225, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094034', 'serial_num': '482236085940', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229672', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094034', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390481, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094035', 'serial_num': '482236085744', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229762', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094035', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390737, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094035', 'serial_num': '482236085917', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229792', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094035', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390993, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}]}, {'type': 'ACB', 'devices': []}, {'type': 'NSRB', 'devices': [{'part_num': '800-00598-r04', 'installed': '1670088923', 'serial_num': '122232095000', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229822', 'admin_state': 1, 'dev_type': 12, 'created_date': '1670088923', 'img_load_date': '1522376696', 'img_pnum_running': '520-00086-r01-v02.12.07', 'ptpn': '540-00139-r01-v02.12.00', 'chaneid': 1811939601, 'device_control': [{'gficlearset': False}], 'producing': False, 'communicating': True, 'provisioned': True, 'operating': True, 'relay': 'closed', 'reason_code': -1, 'reason': 'ok', 'line-count': 1, 'line1-connected': True, 'line2-connected': False, 'line3-connected': False}]}, {'type': 'ESUB', 'devices': []}] [2023-08-28 13:40:32][DEBUG] : Attente de 5s [2023-08-28 13:40:32][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:40:32][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:40:37][INFO] : Recuperation mesures [2023-08-28 13:40:37][DEBUG] : close.started [2023-08-28 13:40:37][DEBUG] : close.complete [2023-08-28 13:40:37][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:40:37][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:40:37][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:40:37][DEBUG] : start_tls.complete return_value= [2023-08-28 13:40:37][DEBUG] : send_request_headers.started request= [2023-08-28 13:40:37][DEBUG] : send_request_headers.complete [2023-08-28 13:40:37][DEBUG] : send_request_body.started request= [2023-08-28 13:40:37][DEBUG] : send_request_body.complete [2023-08-28 13:40:37][DEBUG] : receive_response_headers.started request= [2023-08-28 13:40:38][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:42:26 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:40:38][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-28 13:40:38][DEBUG] : receive_response_body.started request= [2023-08-28 13:40:38][DEBUG] : receive_response_body.complete [2023-08-28 13:40:38][DEBUG] : response_closed.started [2023-08-28 13:40:38][DEBUG] : response_closed.complete [2023-08-28 13:40:38][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1693229822, 'wNow': 376, 'whLifetime': 27613}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1693230146, 'wNow': 383.804, 'whLifetime': 1226435.699, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468477.718, 'vahLifetime': 1557807.376, 'rmsCurrent': 1.657, 'rmsVoltage': 234.193, 'reactPwr': 63.282, 'apprntPwr': 387.97, 'pwrFactor': 1.0, 'whToday': 2856.699, 'whLastSevenDays': 41426.699, 'vahToday': 3462.376, 'varhLeadToday': 0.104, 'varhLagToday': 1006.718, 'lines': [{'wNow': 383.804, 'whLifetime': 1226435.699, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468477.718, 'vahLifetime': 1557807.376, 'rmsCurrent': 1.657, 'rmsVoltage': 234.193, 'reactPwr': 63.282, 'apprntPwr': 387.97, 'pwrFactor': 1.0, 'whToday': 2856.699, 'whLastSevenDays': 41426.699, 'vahToday': 3462.376, 'varhLeadToday': 0.104, 'varhLagToday': 1006.718}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1693230146, 'wNow': 1538.257, 'whLifetime': 5848228.632, 'varhLeadLifetime': 4085724.741, 'varhLagLifetime': -468188.682, 'vahLifetime': 7200831.86, 'rmsCurrent': 7.71, 'rmsVoltage': 234.294, 'reactPwr': -678.535, 'apprntPwr': 1806.427, 'pwrFactor': 0.85, 'whToday': 12445.632, 'whLastSevenDays': 311.632, 'vahToday': 16068.86, 'varhLeadToday': 10395.741, 'varhLagToday': 0.0, 'lines': [{'wNow': 1538.257, 'whLifetime': 5848228.632, 'varhLeadLifetime': 4085724.741, 'varhLagLifetime': -468188.682, 'vahLifetime': 7200831.86, 'rmsCurrent': 7.71, 'rmsVoltage': 234.294, 'reactPwr': -678.535, 'apprntPwr': 1806.427, 'pwrFactor': 0.85, 'whToday': 12445.632, 'whLastSevenDays': 311.632, 'vahToday': 16068.86, 'varhLeadToday': 10395.741, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1693230146, 'wNow': 1154.453, 'whLifetime': 4622107.903, 'varhLeadLifetime': 4086874.845, 'varhLagLifetime': 289.035, 'vahLifetime': 7200831.86, 'rmsCurrent': 6.053, 'rmsVoltage': 234.294, 'reactPwr': -741.817, 'apprntPwr': 1418.293, 'pwrFactor': 0.81, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 1154.453, 'whLifetime': 4622107.903, 'varhLeadLifetime': 4086874.845, 'varhLagLifetime': 289.035, 'vahLifetime': 7200831.86, 'rmsCurrent': 6.053, 'rmsVoltage': 234.294, 'reactPwr': -741.817, 'apprntPwr': 1418.293, 'pwrFactor': 0.81, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0}]}], 'storage': [{'type': 'acb', 'activeCount': 0, 'readingTime': 0, 'wNow': 0, 'whNow': 0, 'state': 'idle'}]} [2023-08-28 13:40:38][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:40:38][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:40:39][DEBUG] : send_request_headers.started request= [2023-08-28 13:40:39][DEBUG] : send_request_headers.complete [2023-08-28 13:40:39][DEBUG] : send_request_body.started request= [2023-08-28 13:40:39][DEBUG] : send_request_body.complete [2023-08-28 13:40:39][DEBUG] : receive_response_headers.started request= [2023-08-28 13:40:39][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:42:27 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'603'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:40:39][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-28 13:40:39][DEBUG] : receive_response_body.started request= [2023-08-28 13:40:39][DEBUG] : receive_response_body.complete [2023-08-28 13:40:39][DEBUG] : response_closed.started [2023-08-28 13:40:39][DEBUG] : response_closed.complete [2023-08-28 13:40:39][DEBUG] : Recuperation mesures onduleurs2 [2023-08-28 13:40:39][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1693229611, 'devType': 1, 'lastReportWatts': 89, 'maxReportWatts': 293}, {'serialNumber': '482236085940', 'lastReportDate': 1693229670, 'devType': 1, 'lastReportWatts': 90, 'maxReportWatts': 296}, {'serialNumber': '482236085744', 'lastReportDate': 1693229760, 'devType': 1, 'lastReportWatts': 99, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1693229790, 'devType': 1, 'lastReportWatts': 98, 'maxReportWatts': 296}] [2023-08-28 13:40:39][DEBUG] : Recuperation index [2023-08-28 13:40:39][DEBUG] : send_request_headers.started request= [2023-08-28 13:40:39][DEBUG] : send_request_headers.complete [2023-08-28 13:40:39][DEBUG] : send_request_body.started request= [2023-08-28 13:40:39][DEBUG] : send_request_body.complete [2023-08-28 13:40:39][DEBUG] : receive_response_headers.started request= [2023-08-28 13:40:39][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:40:39][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:40:39][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:42:27 GMT'), (b'Content-Length', b'4850'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:40:39][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-28 13:40:39][DEBUG] : receive_response_body.started request= [2023-08-28 13:40:39][DEBUG] : receive_response_body.complete [2023-08-28 13:40:39][DEBUG] : response_closed.started [2023-08-28 13:40:39][DEBUG] : response_closed.complete [2023-08-28 13:40:39][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1693230147, 'actEnergyDlvd': 1226435.816, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557807.495, 'reactEnergyLagg': 468477.736, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 383.23, 'activePower': 383.23, 'apparentPower': 388.011, 'reactivePower': 62.798, 'pwrFactor': 0.986, 'voltage': 234.241, 'current': 1.657, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1693230147, 'actEnergyDlvd': 1226435.816, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557807.495, 'reactEnergyLagg': 468477.736, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 383.23, 'activePower': 383.23, 'apparentPower': 388.011, 'reactivePower': 62.798, 'pwrFactor': 0.986, 'voltage': 234.241, 'current': 1.657, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1693230147, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7928.903, 'apparentEnergy': 1153.272, 'reactEnergyLagg': 493.23, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.048, 'activePower': -0.048, 'apparentPower': 0.179, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 2.659, 'current': 0.068, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1693230147, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 16304.185, 'apparentEnergy': 3619.368, 'reactEnergyLagg': 494.43, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.264, 'activePower': -0.264, 'apparentPower': 0.566, 'reactivePower': -0.0, 'pwrFactor': -1.0, 'voltage': 4.202, 'current': 0.135, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1693230147, 'actEnergyDlvd': 4792544.265, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200832.293, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086875.072, 'instantaneousDemand': 1157.847, 'activePower': 1157.847, 'apparentPower': 1417.979, 'reactivePower': -742.682, 'pwrFactor': 0.818, 'voltage': 234.36, 'current': 6.053, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1693230147, 'actEnergyDlvd': 4792544.265, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200832.293, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086875.072, 'instantaneousDemand': 1157.847, 'activePower': 1157.847, 'apparentPower': 1417.979, 'reactivePower': -742.682, 'pwrFactor': 0.818, 'voltage': 234.36, 'current': 6.053, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1693230147, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5293.169, 'apparentEnergy': 34.275, 'reactEnergyLagg': 457.675, 'reactEnergyLead': 0.33, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 3.804, 'current': 0.0, 'freq': 50.0}, {'eid': 1778385427, 'timestamp': 1693230147, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11987.247, 'apparentEnergy': 17.442, 'reactEnergyLagg': 464.681, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': -0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 0.861, 'current': -0.0, 'freq': 50.0}]}] [2023-08-28 13:40:39][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:40:39][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:40:54][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-28 13:40:54][INFO] : Test Token [2023-08-28 13:40:54][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:40:54][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:40:54][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:40:54][DEBUG] : start_tls.complete return_value= [2023-08-28 13:40:54][DEBUG] : send_request_headers.started request= [2023-08-28 13:40:54][DEBUG] : send_request_headers.complete [2023-08-28 13:40:54][DEBUG] : send_request_body.started request= [2023-08-28 13:40:54][DEBUG] : send_request_body.complete [2023-08-28 13:40:54][DEBUG] : receive_response_headers.started request= [2023-08-28 13:40:54][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:42:43 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=eKcZhXfqzjMKP6TDmJOx2EinsHPg9lY0; Secure; HttpOnly; path=/'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:40:54][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-28 13:40:54][DEBUG] : receive_response_body.started request= [2023-08-28 13:40:54][DEBUG] : receive_response_body.complete [2023-08-28 13:40:54][DEBUG] : response_closed.started [2023-08-28 13:40:54][DEBUG] : response_closed.complete [2023-08-28 13:40:54][INFO] : Recuperation mesures [2023-08-28 13:40:54][DEBUG] : send_request_headers.started request= [2023-08-28 13:40:54][DEBUG] : send_request_headers.complete [2023-08-28 13:40:54][DEBUG] : send_request_body.started request= [2023-08-28 13:40:54][DEBUG] : send_request_body.complete [2023-08-28 13:40:54][DEBUG] : receive_response_headers.started request= [2023-08-28 13:40:54][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:42:43 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:40:54][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-28 13:40:54][DEBUG] : receive_response_body.started request= [2023-08-28 13:40:54][DEBUG] : receive_response_body.complete [2023-08-28 13:40:54][DEBUG] : response_closed.started [2023-08-28 13:40:54][DEBUG] : response_closed.complete [2023-08-28 13:40:54][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1693229822, 'wNow': 376, 'whLifetime': 27613}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1693230163, 'wNow': 385.89, 'whLifetime': 1226437.482, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468478.01, 'vahLifetime': 1557809.18, 'rmsCurrent': 1.668, 'rmsVoltage': 234.127, 'reactPwr': 63.402, 'apprntPwr': 390.439, 'pwrFactor': 0.99, 'whToday': 2858.482, 'whLastSevenDays': 41428.482, 'vahToday': 3464.18, 'varhLeadToday': 0.104, 'varhLagToday': 1007.01, 'lines': [{'wNow': 385.89, 'whLifetime': 1226437.482, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468478.01, 'vahLifetime': 1557809.18, 'rmsCurrent': 1.668, 'rmsVoltage': 234.127, 'reactPwr': 63.402, 'apprntPwr': 390.439, 'pwrFactor': 0.99, 'whToday': 2858.482, 'whLastSevenDays': 41428.482, 'vahToday': 3464.18, 'varhLeadToday': 0.104, 'varhLagToday': 1007.01}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1693230163, 'wNow': 1534.469, 'whLifetime': 5848235.726, 'varhLeadLifetime': 4085728.176, 'varhLagLifetime': -468188.974, 'vahLifetime': 7200838.388, 'rmsCurrent': 7.696, 'rmsVoltage': 234.029, 'reactPwr': -677.83, 'apprntPwr': 1801.098, 'pwrFactor': 0.85, 'whToday': 12452.726, 'whLastSevenDays': 318.726, 'vahToday': 16075.388, 'varhLeadToday': 10399.176, 'varhLagToday': 0.0, 'lines': [{'wNow': 1534.469, 'whLifetime': 5848235.726, 'varhLeadLifetime': 4085728.176, 'varhLagLifetime': -468188.974, 'vahLifetime': 7200838.388, 'rmsCurrent': 7.696, 'rmsVoltage': 234.029, 'reactPwr': -677.83, 'apprntPwr': 1801.098, 'pwrFactor': 0.85, 'whToday': 12452.726, 'whLastSevenDays': 318.726, 'vahToday': 16075.388, 'varhLeadToday': 10399.176, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1693230163, 'wNow': 1148.578, 'whLifetime': 4622113.214, 'varhLeadLifetime': 4086878.28, 'varhLagLifetime': 289.035, 'vahLifetime': 7200838.388, 'rmsCurrent': 6.028, 'rmsVoltage': 234.029, 'reactPwr': -741.232, 'apprntPwr': 1410.708, 'pwrFactor': 0.81, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 1148.578, 'whLifetime': 4622113.214, 'varhLeadLifetime': 4086878.28, 'varhLagLifetime': 289.035, 'vahLifetime': 7200838.388, 'rmsCurrent': 6.028, 'rmsVoltage': 234.029, 'reactPwr': -741.232, 'apprntPwr': 1410.708, 'pwrFactor': 0.81, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0}]}], 'storage': [{'type': 'acb', 'activeCount': 0, 'readingTime': 0, 'wNow': 0, 'whNow': 0, 'state': 'idle'}]} [2023-08-28 13:40:54][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:40:55][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:40:55][DEBUG] : send_request_headers.started request= [2023-08-28 13:40:55][DEBUG] : send_request_headers.complete [2023-08-28 13:40:55][DEBUG] : send_request_body.started request= [2023-08-28 13:40:55][DEBUG] : send_request_body.complete [2023-08-28 13:40:55][DEBUG] : receive_response_headers.started request= [2023-08-28 13:40:55][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:42:44 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'603'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:40:55][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-28 13:40:55][DEBUG] : receive_response_body.started request= [2023-08-28 13:40:55][DEBUG] : receive_response_body.complete [2023-08-28 13:40:55][DEBUG] : response_closed.started [2023-08-28 13:40:55][DEBUG] : response_closed.complete [2023-08-28 13:40:55][DEBUG] : Recuperation mesures onduleurs [2023-08-28 13:40:55][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1693229611, 'devType': 1, 'lastReportWatts': 89, 'maxReportWatts': 293}, {'serialNumber': '482236085940', 'lastReportDate': 1693229670, 'devType': 1, 'lastReportWatts': 90, 'maxReportWatts': 296}, {'serialNumber': '482236085744', 'lastReportDate': 1693229760, 'devType': 1, 'lastReportWatts': 99, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1693229790, 'devType': 1, 'lastReportWatts': 98, 'maxReportWatts': 296}] [2023-08-28 13:40:55][DEBUG] : Recuperation index [2023-08-28 13:40:55][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:40:55][DEBUG] : send_request_headers.started request= [2023-08-28 13:40:55][DEBUG] : send_request_headers.complete [2023-08-28 13:40:55][DEBUG] : send_request_body.started request= [2023-08-28 13:40:55][DEBUG] : send_request_body.complete [2023-08-28 13:40:55][DEBUG] : receive_response_headers.started request= [2023-08-28 13:40:55][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:40:55][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:42:44 GMT'), (b'Content-Length', b'4850'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:40:55][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-28 13:40:55][DEBUG] : receive_response_body.started request= [2023-08-28 13:40:55][DEBUG] : receive_response_body.complete [2023-08-28 13:40:55][DEBUG] : response_closed.started [2023-08-28 13:40:55][DEBUG] : response_closed.complete [2023-08-28 13:40:55][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1693230164, 'actEnergyDlvd': 1226437.589, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557809.288, 'reactEnergyLagg': 468478.027, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 386.011, 'activePower': 386.011, 'apparentPower': 390.471, 'reactivePower': 63.117, 'pwrFactor': 1.0, 'voltage': 234.139, 'current': 1.667, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1693230164, 'actEnergyDlvd': 1226437.589, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557809.288, 'reactEnergyLagg': 468478.027, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 386.011, 'activePower': 386.011, 'apparentPower': 390.471, 'reactivePower': 63.117, 'pwrFactor': 1.0, 'voltage': 234.139, 'current': 1.667, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1693230164, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7928.909, 'apparentEnergy': 1153.273, 'reactEnergyLagg': 493.231, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.031, 'activePower': -0.031, 'apparentPower': 0.186, 'reactivePower': 0.0, 'pwrFactor': -1.0, 'voltage': 2.658, 'current': 0.072, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1693230164, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 16304.196, 'apparentEnergy': 3619.37, 'reactEnergyLagg': 494.43, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.217, 'activePower': -0.217, 'apparentPower': 0.57, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 4.202, 'current': 0.136, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1693230164, 'actEnergyDlvd': 4792549.544, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200838.782, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086878.486, 'instantaneousDemand': 1150.363, 'activePower': 1150.363, 'apparentPower': 1412.178, 'reactivePower': -741.815, 'pwrFactor': 0.82, 'voltage': 234.051, 'current': 6.042, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1693230164, 'actEnergyDlvd': 4792549.544, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200838.782, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086878.486, 'instantaneousDemand': 1150.363, 'activePower': 1150.363, 'apparentPower': 1412.178, 'reactivePower': -741.815, 'pwrFactor': 0.82, 'voltage': 234.051, 'current': 6.042, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1693230164, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5293.173, 'apparentEnergy': 34.275, 'reactEnergyLagg': 457.675, 'reactEnergyLead': 0.33, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 3.804, 'current': 0.0, 'freq': 50.0}, {'eid': 1778385427, 'timestamp': 1693230164, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11987.255, 'apparentEnergy': 17.442, 'reactEnergyLagg': 464.681, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': -0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 0.861, 'current': -0.0, 'freq': 50.0}]}] [2023-08-28 13:40:55][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:40:55][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:41:05][DEBUG] : Signal 15 caught, exiting... [2023-08-28 13:41:05][DEBUG] : Shutdown [2023-08-28 13:41:05][DEBUG] : Removing PID file /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:41:05][INFO] : Send to jeedom : error arret [2023-08-28 13:41:05][DEBUG] : Exit 0 [2023-08-28 13:41:09][INFO] : Start demond [2023-08-28 13:41:09][INFO] : Log level : debug [2023-08-28 13:41:09][DEBUG] : Socket port : 62586 [2023-08-28 13:41:09][DEBUG] : Socket host : localhost [2023-08-28 13:41:09][DEBUG] : PID file : /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:41:09][DEBUG] : Apikey : wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM [2023-08-28 13:41:09][DEBUG] : Device : auto [2023-08-28 13:41:09][DEBUG] : Callback : http://127.0.0.1:80/plugins/enphasesecur/core/php/jeeenphasesecur.php [2023-08-28 13:41:09][DEBUG] : Delais actualisation : 15 [2023-08-28 13:41:09][INFO] : Adresse IP Passerelle : 192.168.0.70 [2023-08-28 13:41:09][DEBUG] : User : m_mickael@yahoo.fr [2023-08-28 13:41:09][DEBUG] : Password : %scream%enphase [2023-08-28 13:41:09][DEBUG] : Numero de serie : 122239084064 [2023-08-28 13:41:09][INFO] : Writing PID 394 to /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:41:09][INFO] : Init request module v2.31.0 [2023-08-28 13:41:09][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:41:09][DEBUG] : http://127.0.0.1:80 "GET /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 2 [2023-08-28 13:41:24][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-28 13:41:24][INFO] : Recuperation token [2023-08-28 13:41:24][DEBUG] : Starting new HTTPS connection (1): enlighten.enphaseenergy.com:443 [2023-08-28 13:41:27][DEBUG] : https://enlighten.enphaseenergy.com:443 "POST /login/login.json HTTP/1.1" 200 None [2023-08-28 13:41:27][DEBUG] : Starting new HTTPS connection (1): entrez.enphaseenergy.com:443 [2023-08-28 13:41:28][DEBUG] : https://entrez.enphaseenergy.com:443 "POST /tokens HTTP/1.1" 200 None [2023-08-28 13:41:28][DEBUG] : eyJraWQiOiI3ZDEwMDA1ZC03ODk5LTRkMGQtYmNiNC0yNDRmOThlZTE1NmIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJhdWQiOiIxMjIyMzkwODQwNjQiLCJpc3MiOiJFbnRyZXoiLCJlbnBoYXNlVXNlciI6Im93bmVyIiwiZXhwIjoxNzI0NzY2MDg4LCJpYXQiOjE2OTMyMzAwODgsImp0aSI6IjgwMzk0ZTNjLWVhMjctNDdhZC1iNzUzLWU1OTU0ZDQ5N2YwOSIsInVzZXJuYW1lIjoibV9taWNrYWVsQHlhaG9vLmZyIn0.cJLn2XUzWzk1LPbnb-QnPwayyH4FqfZlh9Q4tIvTFxKNBzLBIXbufPdb69TtOREeQJlZwmige3nrUuQRu4npvQ [2023-08-28 13:41:28][INFO] : Test Token [2023-08-28 13:41:28][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:41:28][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:41:28][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:41:28][DEBUG] : start_tls.complete return_value= [2023-08-28 13:41:28][DEBUG] : send_request_headers.started request= [2023-08-28 13:41:28][DEBUG] : send_request_headers.complete [2023-08-28 13:41:28][DEBUG] : send_request_body.started request= [2023-08-28 13:41:28][DEBUG] : send_request_body.complete [2023-08-28 13:41:28][DEBUG] : receive_response_headers.started request= [2023-08-28 13:41:28][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:43:17 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=o7sJTfaWdA4gM9mEjU6l6cIOHeesCak8; Secure; HttpOnly; path=/'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:41:28][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-28 13:41:28][DEBUG] : receive_response_body.started request= [2023-08-28 13:41:28][DEBUG] : receive_response_body.complete [2023-08-28 13:41:28][DEBUG] : response_closed.started [2023-08-28 13:41:28][DEBUG] : response_closed.complete [2023-08-28 13:41:28][DEBUG] : Recuperation Inventaire [2023-08-28 13:41:28][DEBUG] : send_request_headers.started request= [2023-08-28 13:41:28][DEBUG] : send_request_headers.complete [2023-08-28 13:41:28][DEBUG] : send_request_body.started request= [2023-08-28 13:41:28][DEBUG] : send_request_body.complete [2023-08-28 13:41:28][DEBUG] : receive_response_headers.started request= [2023-08-28 13:41:29][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:43:17 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:41:29][INFO] : HTTP Request: GET https://192.168.0.70/inventory.json "HTTP/1.1 200 OK" [2023-08-28 13:41:29][DEBUG] : receive_response_body.started request= [2023-08-28 13:41:29][DEBUG] : receive_response_body.complete [2023-08-28 13:41:29][DEBUG] : response_closed.started [2023-08-28 13:41:29][DEBUG] : response_closed.complete [2023-08-28 13:41:29][INFO] : Send to jeedom : [{'type': 'PCU', 'devices': [{'part_num': '800-01736-r02', 'installed': '1670094034', 'serial_num': '482236085960', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229612', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094034', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390225, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094034', 'serial_num': '482236085940', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229672', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094034', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390481, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094035', 'serial_num': '482236085744', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229762', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094035', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390737, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094035', 'serial_num': '482236085917', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229792', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094035', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390993, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}]}, {'type': 'ACB', 'devices': []}, {'type': 'NSRB', 'devices': [{'part_num': '800-00598-r04', 'installed': '1670088923', 'serial_num': '122232095000', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229822', 'admin_state': 1, 'dev_type': 12, 'created_date': '1670088923', 'img_load_date': '1522376696', 'img_pnum_running': '520-00086-r01-v02.12.07', 'ptpn': '540-00139-r01-v02.12.00', 'chaneid': 1811939601, 'device_control': [{'gficlearset': False}], 'producing': False, 'communicating': True, 'provisioned': True, 'operating': True, 'relay': 'closed', 'reason_code': -1, 'reason': 'ok', 'line-count': 1, 'line1-connected': True, 'line2-connected': False, 'line3-connected': False}]}, {'type': 'ESUB', 'devices': []}] [2023-08-28 13:41:29][DEBUG] : Attente de 5s [2023-08-28 13:41:29][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:41:29][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:41:34][INFO] : Recuperation mesures [2023-08-28 13:41:34][DEBUG] : close.started [2023-08-28 13:41:34][DEBUG] : close.complete [2023-08-28 13:41:34][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:41:34][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:41:34][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:41:34][DEBUG] : start_tls.complete return_value= [2023-08-28 13:41:34][DEBUG] : send_request_headers.started request= [2023-08-28 13:41:34][DEBUG] : send_request_headers.complete [2023-08-28 13:41:34][DEBUG] : send_request_body.started request= [2023-08-28 13:41:34][DEBUG] : send_request_body.complete [2023-08-28 13:41:34][DEBUG] : receive_response_headers.started request= [2023-08-28 13:41:34][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:43:23 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:41:34][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-28 13:41:34][DEBUG] : receive_response_body.started request= [2023-08-28 13:41:34][DEBUG] : receive_response_body.complete [2023-08-28 13:41:34][DEBUG] : response_closed.started [2023-08-28 13:41:34][DEBUG] : response_closed.complete [2023-08-28 13:41:34][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1693229822, 'wNow': 376, 'whLifetime': 27613}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1693230203, 'wNow': 386.644, 'whLifetime': 1226441.773, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468478.711, 'vahLifetime': 1557813.52, 'rmsCurrent': 1.676, 'rmsVoltage': 233.903, 'reactPwr': 62.422, 'apprntPwr': 392.4, 'pwrFactor': 0.99, 'whToday': 2862.773, 'whLastSevenDays': 41432.773, 'vahToday': 3468.52, 'varhLeadToday': 0.104, 'varhLagToday': 1007.711, 'lines': [{'wNow': 386.644, 'whLifetime': 1226441.773, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468478.711, 'vahLifetime': 1557813.52, 'rmsCurrent': 1.676, 'rmsVoltage': 233.903, 'reactPwr': 62.422, 'apprntPwr': 392.4, 'pwrFactor': 0.99, 'whToday': 2862.773, 'whLastSevenDays': 41432.773, 'vahToday': 3468.52, 'varhLeadToday': 0.104, 'varhLagToday': 1007.711}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1693230203, 'wNow': 1540.16, 'whLifetime': 5848252.899, 'varhLeadLifetime': 4085736.418, 'varhLagLifetime': -468189.676, 'vahLifetime': 7200854.166, 'rmsCurrent': 7.708, 'rmsVoltage': 234.053, 'reactPwr': -678.031, 'apprntPwr': 1804.038, 'pwrFactor': 0.85, 'whToday': 12469.899, 'whLastSevenDays': 335.899, 'vahToday': 16091.166, 'varhLeadToday': 10407.418, 'varhLagToday': 0.0, 'lines': [{'wNow': 1540.16, 'whLifetime': 5848252.899, 'varhLeadLifetime': 4085736.418, 'varhLagLifetime': -468189.676, 'vahLifetime': 7200854.166, 'rmsCurrent': 7.708, 'rmsVoltage': 234.053, 'reactPwr': -678.031, 'apprntPwr': 1804.038, 'pwrFactor': 0.85, 'whToday': 12469.899, 'whLastSevenDays': 335.899, 'vahToday': 16091.166, 'varhLeadToday': 10407.418, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1693230203, 'wNow': 1153.516, 'whLifetime': 4622126.096, 'varhLeadLifetime': 4086886.522, 'varhLagLifetime': 289.035, 'vahLifetime': 7200854.166, 'rmsCurrent': 6.031, 'rmsVoltage': 234.053, 'reactPwr': -740.453, 'apprntPwr': 1411.663, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 1153.516, 'whLifetime': 4622126.096, 'varhLeadLifetime': 4086886.522, 'varhLagLifetime': 289.035, 'vahLifetime': 7200854.166, 'rmsCurrent': 6.031, 'rmsVoltage': 234.053, 'reactPwr': -740.453, 'apprntPwr': 1411.663, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0}]}], 'storage': [{'type': 'acb', 'activeCount': 0, 'readingTime': 0, 'wNow': 0, 'whNow': 0, 'state': 'idle'}]} [2023-08-28 13:41:34][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:41:35][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:41:35][DEBUG] : send_request_headers.started request= [2023-08-28 13:41:35][DEBUG] : send_request_headers.complete [2023-08-28 13:41:35][DEBUG] : send_request_body.started request= [2023-08-28 13:41:35][DEBUG] : send_request_body.complete [2023-08-28 13:41:35][DEBUG] : receive_response_headers.started request= [2023-08-28 13:41:35][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:43:24 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'603'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:41:35][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-28 13:41:35][DEBUG] : receive_response_body.started request= [2023-08-28 13:41:35][DEBUG] : receive_response_body.complete [2023-08-28 13:41:35][DEBUG] : response_closed.started [2023-08-28 13:41:35][DEBUG] : response_closed.complete [2023-08-28 13:41:35][DEBUG] : Recuperation mesures onduleurs2 [2023-08-28 13:41:35][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1693229611, 'devType': 1, 'lastReportWatts': 89, 'maxReportWatts': 293}, {'serialNumber': '482236085940', 'lastReportDate': 1693229670, 'devType': 1, 'lastReportWatts': 90, 'maxReportWatts': 296}, {'serialNumber': '482236085744', 'lastReportDate': 1693229760, 'devType': 1, 'lastReportWatts': 99, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1693229790, 'devType': 1, 'lastReportWatts': 98, 'maxReportWatts': 296}] [2023-08-28 13:41:35][DEBUG] : Recuperation index [2023-08-28 13:41:35][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:41:35][DEBUG] : send_request_headers.started request= [2023-08-28 13:41:35][DEBUG] : send_request_headers.complete [2023-08-28 13:41:35][DEBUG] : send_request_body.started request= [2023-08-28 13:41:35][DEBUG] : send_request_body.complete [2023-08-28 13:41:35][DEBUG] : receive_response_headers.started request= [2023-08-28 13:41:35][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:41:35][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:43:24 GMT'), (b'Content-Length', b'4850'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:41:35][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-28 13:41:35][DEBUG] : receive_response_body.started request= [2023-08-28 13:41:35][DEBUG] : receive_response_body.complete [2023-08-28 13:41:35][DEBUG] : response_closed.started [2023-08-28 13:41:35][DEBUG] : response_closed.complete [2023-08-28 13:41:35][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1693230204, 'actEnergyDlvd': 1226441.881, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557813.629, 'reactEnergyLagg': 468478.729, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 386.257, 'activePower': 386.257, 'apparentPower': 392.178, 'reactivePower': 62.452, 'pwrFactor': 0.986, 'voltage': 233.851, 'current': 1.677, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1693230204, 'actEnergyDlvd': 1226441.881, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557813.629, 'reactEnergyLagg': 468478.729, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 386.257, 'activePower': 386.257, 'apparentPower': 392.178, 'reactivePower': 62.452, 'pwrFactor': 0.986, 'voltage': 233.851, 'current': 1.677, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1693230204, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7928.923, 'apparentEnergy': 1153.275, 'reactEnergyLagg': 493.231, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.042, 'activePower': -0.042, 'apparentPower': 0.186, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 2.658, 'current': 0.07, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1693230204, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 16304.224, 'apparentEnergy': 3619.377, 'reactEnergyLagg': 494.431, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.207, 'activePower': -0.207, 'apparentPower': 0.575, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 4.202, 'current': 0.136, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1693230204, 'actEnergyDlvd': 4792562.426, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200854.56, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086886.727, 'instantaneousDemand': 1152.559, 'activePower': 1152.559, 'apparentPower': 1413.525, 'reactivePower': -740.746, 'pwrFactor': 0.815, 'voltage': 234.004, 'current': 6.037, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1693230204, 'actEnergyDlvd': 4792562.426, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200854.56, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086886.727, 'instantaneousDemand': 1152.559, 'activePower': 1152.559, 'apparentPower': 1413.525, 'reactivePower': -740.746, 'pwrFactor': 0.815, 'voltage': 234.004, 'current': 6.037, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1693230204, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5293.182, 'apparentEnergy': 34.275, 'reactEnergyLagg': 457.676, 'reactEnergyLead': 0.33, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 3.804, 'current': 0.0, 'freq': 50.0}, {'eid': 1778385427, 'timestamp': 1693230204, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11987.277, 'apparentEnergy': 17.442, 'reactEnergyLagg': 464.682, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': -0.0, 'reactivePower': 0.0, 'pwrFactor': -1.0, 'voltage': 0.861, 'current': -0.0, 'freq': 50.0}]}] [2023-08-28 13:41:35][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:41:35][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:41:50][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-28 13:41:50][INFO] : Test Token [2023-08-28 13:41:50][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:41:50][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:41:50][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:41:51][DEBUG] : start_tls.complete return_value= [2023-08-28 13:41:51][DEBUG] : send_request_headers.started request= [2023-08-28 13:41:51][DEBUG] : send_request_headers.complete [2023-08-28 13:41:51][DEBUG] : send_request_body.started request= [2023-08-28 13:41:51][DEBUG] : send_request_body.complete [2023-08-28 13:41:51][DEBUG] : receive_response_headers.started request= [2023-08-28 13:41:51][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:43:39 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=o7sJTfaWdA4gM9mEjU6l6cIOHeesCak8; Secure; HttpOnly; path=/'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:41:51][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-28 13:41:51][DEBUG] : receive_response_body.started request= [2023-08-28 13:41:51][DEBUG] : receive_response_body.complete [2023-08-28 13:41:51][DEBUG] : response_closed.started [2023-08-28 13:41:51][DEBUG] : response_closed.complete [2023-08-28 13:41:51][INFO] : Recuperation mesures [2023-08-28 13:41:51][DEBUG] : send_request_headers.started request= [2023-08-28 13:41:51][DEBUG] : send_request_headers.complete [2023-08-28 13:41:51][DEBUG] : send_request_body.started request= [2023-08-28 13:41:51][DEBUG] : send_request_body.complete [2023-08-28 13:41:51][DEBUG] : receive_response_headers.started request= [2023-08-28 13:41:51][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:43:39 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:41:51][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-28 13:41:51][DEBUG] : receive_response_body.started request= [2023-08-28 13:41:51][DEBUG] : receive_response_body.complete [2023-08-28 13:41:51][DEBUG] : response_closed.started [2023-08-28 13:41:51][DEBUG] : response_closed.complete [2023-08-28 13:41:51][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1693229822, 'wNow': 376, 'whLifetime': 27613}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1693230219, 'wNow': 388.765, 'whLifetime': 1226443.466, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468478.986, 'vahLifetime': 1557815.232, 'rmsCurrent': 1.681, 'rmsVoltage': 234.222, 'reactPwr': 63.344, 'apprntPwr': 393.554, 'pwrFactor': 0.97, 'whToday': 2864.466, 'whLastSevenDays': 41434.466, 'vahToday': 3470.232, 'varhLeadToday': 0.104, 'varhLagToday': 1007.986, 'lines': [{'wNow': 388.765, 'whLifetime': 1226443.466, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468478.986, 'vahLifetime': 1557815.232, 'rmsCurrent': 1.681, 'rmsVoltage': 234.222, 'reactPwr': 63.344, 'apprntPwr': 393.554, 'pwrFactor': 0.97, 'whToday': 2864.466, 'whLastSevenDays': 41434.466, 'vahToday': 3470.232, 'varhLeadToday': 0.104, 'varhLagToday': 1007.986}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1693230219, 'wNow': 1551.186, 'whLifetime': 5848259.653, 'varhLeadLifetime': 4085739.655, 'varhLagLifetime': -468189.951, 'vahLifetime': 7200860.364, 'rmsCurrent': 7.749, 'rmsVoltage': 234.292, 'reactPwr': -680.26, 'apprntPwr': 1815.585, 'pwrFactor': 0.85, 'whToday': 12476.653, 'whLastSevenDays': 342.653, 'vahToday': 16097.364, 'varhLeadToday': 10410.655, 'varhLagToday': 0.0, 'lines': [{'wNow': 1551.186, 'whLifetime': 5848259.653, 'varhLeadLifetime': 4085739.655, 'varhLagLifetime': -468189.951, 'vahLifetime': 7200860.364, 'rmsCurrent': 7.749, 'rmsVoltage': 234.292, 'reactPwr': -680.26, 'apprntPwr': 1815.585, 'pwrFactor': 0.85, 'whToday': 12476.653, 'whLastSevenDays': 342.653, 'vahToday': 16097.364, 'varhLeadToday': 10410.655, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1693230219, 'wNow': 1162.421, 'whLifetime': 4622131.158, 'varhLeadLifetime': 4086889.759, 'varhLagLifetime': 289.035, 'vahLifetime': 7200860.364, 'rmsCurrent': 6.068, 'rmsVoltage': 234.292, 'reactPwr': -743.604, 'apprntPwr': 1421.725, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 1162.421, 'whLifetime': 4622131.158, 'varhLeadLifetime': 4086889.759, 'varhLagLifetime': 289.035, 'vahLifetime': 7200860.364, 'rmsCurrent': 6.068, 'rmsVoltage': 234.292, 'reactPwr': -743.604, 'apprntPwr': 1421.725, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0}]}], 'storage': [{'type': 'acb', 'activeCount': 0, 'readingTime': 0, 'wNow': 0, 'whNow': 0, 'state': 'idle'}]} [2023-08-28 13:41:51][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:41:51][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:41:52][DEBUG] : send_request_headers.started request= [2023-08-28 13:41:52][DEBUG] : send_request_headers.complete [2023-08-28 13:41:52][DEBUG] : send_request_body.started request= [2023-08-28 13:41:52][DEBUG] : send_request_body.complete [2023-08-28 13:41:52][DEBUG] : receive_response_headers.started request= [2023-08-28 13:41:52][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:43:41 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'603'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:41:52][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-28 13:41:52][DEBUG] : receive_response_body.started request= [2023-08-28 13:41:52][DEBUG] : receive_response_body.complete [2023-08-28 13:41:52][DEBUG] : response_closed.started [2023-08-28 13:41:52][DEBUG] : response_closed.complete [2023-08-28 13:41:52][DEBUG] : Recuperation mesures onduleurs [2023-08-28 13:41:52][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1693229611, 'devType': 1, 'lastReportWatts': 89, 'maxReportWatts': 293}, {'serialNumber': '482236085940', 'lastReportDate': 1693229670, 'devType': 1, 'lastReportWatts': 90, 'maxReportWatts': 296}, {'serialNumber': '482236085744', 'lastReportDate': 1693229760, 'devType': 1, 'lastReportWatts': 99, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1693229790, 'devType': 1, 'lastReportWatts': 98, 'maxReportWatts': 296}] [2023-08-28 13:41:52][DEBUG] : Recuperation index [2023-08-28 13:41:52][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:41:52][DEBUG] : send_request_headers.started request= [2023-08-28 13:41:52][DEBUG] : send_request_headers.complete [2023-08-28 13:41:52][DEBUG] : send_request_body.started request= [2023-08-28 13:41:52][DEBUG] : send_request_body.complete [2023-08-28 13:41:52][DEBUG] : receive_response_headers.started request= [2023-08-28 13:41:52][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:41:52][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:43:41 GMT'), (b'Content-Length', b'4850'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:41:52][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-28 13:41:52][DEBUG] : receive_response_body.started request= [2023-08-28 13:41:52][DEBUG] : receive_response_body.complete [2023-08-28 13:41:52][DEBUG] : response_closed.started [2023-08-28 13:41:52][DEBUG] : response_closed.complete [2023-08-28 13:41:52][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1693230220, 'actEnergyDlvd': 1226443.585, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557815.352, 'reactEnergyLagg': 468479.005, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 389.138, 'activePower': 389.138, 'apparentPower': 393.999, 'reactivePower': 62.944, 'pwrFactor': 1.0, 'voltage': 234.228, 'current': 1.682, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1693230220, 'actEnergyDlvd': 1226443.585, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557815.352, 'reactEnergyLagg': 468479.005, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 389.138, 'activePower': 389.138, 'apparentPower': 393.999, 'reactivePower': 62.944, 'pwrFactor': 1.0, 'voltage': 234.228, 'current': 1.682, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1693230220, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7928.928, 'apparentEnergy': 1153.276, 'reactEnergyLagg': 493.231, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.043, 'activePower': -0.043, 'apparentPower': 0.19, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 2.658, 'current': 0.072, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1693230220, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 16304.236, 'apparentEnergy': 3619.38, 'reactEnergyLagg': 494.431, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.265, 'activePower': -0.265, 'apparentPower': 0.571, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 4.202, 'current': 0.135, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1693230220, 'actEnergyDlvd': 4792567.521, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200860.797, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086889.986, 'instantaneousDemand': 1160.561, 'activePower': 1160.561, 'apparentPower': 1421.038, 'reactivePower': -743.715, 'pwrFactor': 0.82, 'voltage': 234.286, 'current': 6.062, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1693230220, 'actEnergyDlvd': 4792567.521, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200860.797, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086889.986, 'instantaneousDemand': 1160.561, 'activePower': 1160.561, 'apparentPower': 1421.038, 'reactivePower': -743.715, 'pwrFactor': 0.82, 'voltage': 234.286, 'current': 6.062, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1693230220, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5293.186, 'apparentEnergy': 34.275, 'reactEnergyLagg': 457.676, 'reactEnergyLead': 0.33, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.0, 'reactivePower': 0.0, 'pwrFactor': -1.0, 'voltage': 3.804, 'current': 0.0, 'freq': 50.0}, {'eid': 1778385427, 'timestamp': 1693230220, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11987.285, 'apparentEnergy': 17.442, 'reactEnergyLagg': 464.682, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': -0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 0.861, 'current': -0.0, 'freq': 50.0}]}] [2023-08-28 13:41:52][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:41:52][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:42:05][DEBUG] : Signal 15 caught, exiting... [2023-08-28 13:42:05][DEBUG] : Shutdown [2023-08-28 13:42:05][DEBUG] : Removing PID file /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:42:05][INFO] : Send to jeedom : error arret [2023-08-28 13:42:05][DEBUG] : Exit 0 [2023-08-28 13:42:09][INFO] : Start demond [2023-08-28 13:42:09][INFO] : Log level : debug [2023-08-28 13:42:09][DEBUG] : Socket port : 14865 [2023-08-28 13:42:09][DEBUG] : Socket host : localhost [2023-08-28 13:42:09][DEBUG] : PID file : /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:42:09][DEBUG] : Apikey : wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM [2023-08-28 13:42:09][DEBUG] : Device : auto [2023-08-28 13:42:09][DEBUG] : Callback : http://127.0.0.1:80/plugins/enphasesecur/core/php/jeeenphasesecur.php [2023-08-28 13:42:09][DEBUG] : Delais actualisation : 15 [2023-08-28 13:42:09][INFO] : Adresse IP Passerelle : 192.168.0.70 [2023-08-28 13:42:09][DEBUG] : User : m_mickael@yahoo.fr [2023-08-28 13:42:09][DEBUG] : Password : %scream%enphase [2023-08-28 13:42:09][DEBUG] : Numero de serie : 122239084064 [2023-08-28 13:42:09][INFO] : Writing PID 2389 to /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:42:09][INFO] : Init request module v2.31.0 [2023-08-28 13:42:09][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:42:09][DEBUG] : http://127.0.0.1:80 "GET /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 2 [2023-08-28 13:42:24][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-28 13:42:24][INFO] : Recuperation token [2023-08-28 13:42:24][DEBUG] : Starting new HTTPS connection (1): enlighten.enphaseenergy.com:443 [2023-08-28 13:42:27][DEBUG] : https://enlighten.enphaseenergy.com:443 "POST /login/login.json HTTP/1.1" 200 None [2023-08-28 13:42:27][DEBUG] : Starting new HTTPS connection (1): entrez.enphaseenergy.com:443 [2023-08-28 13:42:27][DEBUG] : https://entrez.enphaseenergy.com:443 "POST /tokens HTTP/1.1" 200 None [2023-08-28 13:42:27][DEBUG] : eyJraWQiOiI3ZDEwMDA1ZC03ODk5LTRkMGQtYmNiNC0yNDRmOThlZTE1NmIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJhdWQiOiIxMjIyMzkwODQwNjQiLCJpc3MiOiJFbnRyZXoiLCJlbnBoYXNlVXNlciI6Im93bmVyIiwiZXhwIjoxNzI0NzY2MTQ3LCJpYXQiOjE2OTMyMzAxNDcsImp0aSI6IjZlMDA4OGJjLTZmOGMtNDAxYS05MzFjLTUwMzNiMDhiMDgzZSIsInVzZXJuYW1lIjoibV9taWNrYWVsQHlhaG9vLmZyIn0._W2vbyP9AQKUK65j2h9t5BFtMdcMMlMiwvwjyoIHCxPsm-IGMPfEtBEtPMAj9oOB4zx_w3wwmmjs4OaT0-tJoA [2023-08-28 13:42:27][INFO] : Test Token [2023-08-28 13:42:27][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:42:27][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:42:27][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:42:28][DEBUG] : start_tls.complete return_value= [2023-08-28 13:42:28][DEBUG] : send_request_headers.started request= [2023-08-28 13:42:28][DEBUG] : send_request_headers.complete [2023-08-28 13:42:28][DEBUG] : send_request_body.started request= [2023-08-28 13:42:28][DEBUG] : send_request_body.complete [2023-08-28 13:42:28][DEBUG] : receive_response_headers.started request= [2023-08-28 13:42:28][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:44:16 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=vS8oLAl2yl0CIZvOyKzq0SgXfe4vv3mF; Secure; HttpOnly; path=/'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:42:28][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-28 13:42:28][DEBUG] : receive_response_body.started request= [2023-08-28 13:42:28][DEBUG] : receive_response_body.complete [2023-08-28 13:42:28][DEBUG] : response_closed.started [2023-08-28 13:42:28][DEBUG] : response_closed.complete [2023-08-28 13:42:28][DEBUG] : Recuperation Inventaire [2023-08-28 13:42:28][DEBUG] : send_request_headers.started request= [2023-08-28 13:42:28][DEBUG] : send_request_headers.complete [2023-08-28 13:42:28][DEBUG] : send_request_body.started request= [2023-08-28 13:42:28][DEBUG] : send_request_body.complete [2023-08-28 13:42:28][DEBUG] : receive_response_headers.started request= [2023-08-28 13:42:28][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:44:17 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:42:28][INFO] : HTTP Request: GET https://192.168.0.70/inventory.json "HTTP/1.1 200 OK" [2023-08-28 13:42:28][DEBUG] : receive_response_body.started request= [2023-08-28 13:42:28][DEBUG] : receive_response_body.complete [2023-08-28 13:42:28][DEBUG] : response_closed.started [2023-08-28 13:42:28][DEBUG] : response_closed.complete [2023-08-28 13:42:28][INFO] : Send to jeedom : [{'type': 'PCU', 'devices': [{'part_num': '800-01736-r02', 'installed': '1670094034', 'serial_num': '482236085960', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229612', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094034', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390225, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094034', 'serial_num': '482236085940', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229672', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094034', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390481, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094035', 'serial_num': '482236085744', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229762', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094035', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390737, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094035', 'serial_num': '482236085917', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229792', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094035', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390993, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}]}, {'type': 'ACB', 'devices': []}, {'type': 'NSRB', 'devices': [{'part_num': '800-00598-r04', 'installed': '1670088923', 'serial_num': '122232095000', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229822', 'admin_state': 1, 'dev_type': 12, 'created_date': '1670088923', 'img_load_date': '1522376696', 'img_pnum_running': '520-00086-r01-v02.12.07', 'ptpn': '540-00139-r01-v02.12.00', 'chaneid': 1811939601, 'device_control': [{'gficlearset': False}], 'producing': False, 'communicating': True, 'provisioned': True, 'operating': True, 'relay': 'closed', 'reason_code': -1, 'reason': 'ok', 'line-count': 1, 'line1-connected': True, 'line2-connected': False, 'line3-connected': False}]}, {'type': 'ESUB', 'devices': []}] [2023-08-28 13:42:28][DEBUG] : Attente de 5s [2023-08-28 13:42:28][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:42:29][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:42:33][INFO] : Recuperation mesures [2023-08-28 13:42:33][DEBUG] : close.started [2023-08-28 13:42:33][DEBUG] : close.complete [2023-08-28 13:42:33][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:42:34][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:42:34][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:42:34][DEBUG] : start_tls.complete return_value= [2023-08-28 13:42:34][DEBUG] : send_request_headers.started request= [2023-08-28 13:42:34][DEBUG] : send_request_headers.complete [2023-08-28 13:42:34][DEBUG] : send_request_body.started request= [2023-08-28 13:42:34][DEBUG] : send_request_body.complete [2023-08-28 13:42:34][DEBUG] : receive_response_headers.started request= [2023-08-28 13:42:34][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:44:23 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:42:34][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-28 13:42:34][DEBUG] : receive_response_body.started request= [2023-08-28 13:42:34][DEBUG] : receive_response_body.complete [2023-08-28 13:42:34][DEBUG] : response_closed.started [2023-08-28 13:42:34][DEBUG] : response_closed.complete [2023-08-28 13:42:34][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1693229822, 'wNow': 376, 'whLifetime': 27613}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1693230263, 'wNow': 391.939, 'whLifetime': 1226448.172, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468479.747, 'vahLifetime': 1557819.989, 'rmsCurrent': 1.696, 'rmsVoltage': 233.892, 'reactPwr': 63.152, 'apprntPwr': 396.538, 'pwrFactor': 0.98, 'whToday': 2869.172, 'whLastSevenDays': 41439.172, 'vahToday': 3474.989, 'varhLeadToday': 0.104, 'varhLagToday': 1008.747, 'lines': [{'wNow': 391.939, 'whLifetime': 1226448.172, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468479.747, 'vahLifetime': 1557819.989, 'rmsCurrent': 1.696, 'rmsVoltage': 233.892, 'reactPwr': 63.152, 'apprntPwr': 396.538, 'pwrFactor': 0.98, 'whToday': 2869.172, 'whLastSevenDays': 41439.172, 'vahToday': 3474.989, 'varhLeadToday': 0.104, 'varhLagToday': 1008.747}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1693230263, 'wNow': 1556.051, 'whLifetime': 5848278.34, 'varhLeadLifetime': 4085748.615, 'varhLagLifetime': -468190.711, 'vahLifetime': 7200877.479, 'rmsCurrent': 7.775, 'rmsVoltage': 233.848, 'reactPwr': -681.291, 'apprntPwr': 1818.186, 'pwrFactor': 0.86, 'whToday': 12495.34, 'whLastSevenDays': 361.34, 'vahToday': 16114.479, 'varhLeadToday': 10419.615, 'varhLagToday': 0.0, 'lines': [{'wNow': 1556.051, 'whLifetime': 5848278.34, 'varhLeadLifetime': 4085748.615, 'varhLagLifetime': -468190.711, 'vahLifetime': 7200877.479, 'rmsCurrent': 7.775, 'rmsVoltage': 233.848, 'reactPwr': -681.291, 'apprntPwr': 1818.186, 'pwrFactor': 0.86, 'whToday': 12495.34, 'whLastSevenDays': 361.34, 'vahToday': 16114.479, 'varhLeadToday': 10419.615, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1693230263, 'wNow': 1164.113, 'whLifetime': 4622145.138, 'varhLeadLifetime': 4086898.719, 'varhLagLifetime': 289.035, 'vahLifetime': 7200877.479, 'rmsCurrent': 6.08, 'rmsVoltage': 233.848, 'reactPwr': -744.443, 'apprntPwr': 1421.684, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 1164.113, 'whLifetime': 4622145.138, 'varhLeadLifetime': 4086898.719, 'varhLagLifetime': 289.035, 'vahLifetime': 7200877.479, 'rmsCurrent': 6.08, 'rmsVoltage': 233.848, 'reactPwr': -744.443, 'apprntPwr': 1421.684, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0}]}], 'storage': [{'type': 'acb', 'activeCount': 0, 'readingTime': 0, 'wNow': 0, 'whNow': 0, 'state': 'idle'}]} [2023-08-28 13:42:34][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:42:34][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:42:35][DEBUG] : send_request_headers.started request= [2023-08-28 13:42:35][DEBUG] : send_request_headers.complete [2023-08-28 13:42:35][DEBUG] : send_request_body.started request= [2023-08-28 13:42:35][DEBUG] : send_request_body.complete [2023-08-28 13:42:35][DEBUG] : receive_response_headers.started request= [2023-08-28 13:42:35][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:44:24 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'603'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:42:35][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-28 13:42:35][DEBUG] : receive_response_body.started request= [2023-08-28 13:42:35][DEBUG] : receive_response_body.complete [2023-08-28 13:42:35][DEBUG] : response_closed.started [2023-08-28 13:42:35][DEBUG] : response_closed.complete [2023-08-28 13:42:35][DEBUG] : Recuperation mesures onduleurs2 [2023-08-28 13:42:35][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1693229611, 'devType': 1, 'lastReportWatts': 89, 'maxReportWatts': 293}, {'serialNumber': '482236085940', 'lastReportDate': 1693229670, 'devType': 1, 'lastReportWatts': 90, 'maxReportWatts': 296}, {'serialNumber': '482236085744', 'lastReportDate': 1693229760, 'devType': 1, 'lastReportWatts': 99, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1693229790, 'devType': 1, 'lastReportWatts': 98, 'maxReportWatts': 296}] [2023-08-28 13:42:35][DEBUG] : Recuperation index [2023-08-28 13:42:35][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:42:35][DEBUG] : send_request_headers.started request= [2023-08-28 13:42:35][DEBUG] : send_request_headers.complete [2023-08-28 13:42:35][DEBUG] : send_request_body.started request= [2023-08-28 13:42:35][DEBUG] : send_request_body.complete [2023-08-28 13:42:35][DEBUG] : receive_response_headers.started request= [2023-08-28 13:42:35][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:42:35][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:44:24 GMT'), (b'Content-Length', b'4850'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:42:35][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-28 13:42:35][DEBUG] : receive_response_body.started request= [2023-08-28 13:42:35][DEBUG] : receive_response_body.complete [2023-08-28 13:42:35][DEBUG] : response_closed.started [2023-08-28 13:42:35][DEBUG] : response_closed.complete [2023-08-28 13:42:35][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1693230263, 'actEnergyDlvd': 1226448.292, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557820.11, 'reactEnergyLagg': 468479.766, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 392.08, 'activePower': 392.08, 'apparentPower': 396.421, 'reactivePower': 63.293, 'pwrFactor': 1.0, 'voltage': 233.908, 'current': 1.695, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1693230263, 'actEnergyDlvd': 1226448.292, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557820.11, 'reactEnergyLagg': 468479.766, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 392.08, 'activePower': 392.08, 'apparentPower': 396.421, 'reactivePower': 63.293, 'pwrFactor': 1.0, 'voltage': 233.908, 'current': 1.695, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1693230263, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7928.943, 'apparentEnergy': 1153.278, 'reactEnergyLagg': 493.232, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.031, 'activePower': -0.031, 'apparentPower': 0.18, 'reactivePower': 0.0, 'pwrFactor': -1.0, 'voltage': 2.659, 'current': 0.068, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1693230263, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 16304.266, 'apparentEnergy': 3619.386, 'reactEnergyLagg': 494.432, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.211, 'activePower': -0.211, 'apparentPower': 0.569, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 4.202, 'current': 0.137, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1693230263, 'actEnergyDlvd': 4792581.5, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200877.912, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086898.947, 'instantaneousDemand': 1157.897, 'activePower': 1157.897, 'apparentPower': 1418.109, 'reactivePower': -742.957, 'pwrFactor': 0.818, 'voltage': 233.858, 'current': 6.053, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1693230263, 'actEnergyDlvd': 4792581.5, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200877.912, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086898.947, 'instantaneousDemand': 1157.897, 'activePower': 1157.897, 'apparentPower': 1418.109, 'reactivePower': -742.957, 'pwrFactor': 0.818, 'voltage': 233.858, 'current': 6.053, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1693230263, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5293.196, 'apparentEnergy': 34.275, 'reactEnergyLagg': 457.677, 'reactEnergyLead': 0.33, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 3.804, 'current': 0.0, 'freq': 50.0}, {'eid': 1778385427, 'timestamp': 1693230263, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11987.307, 'apparentEnergy': 17.442, 'reactEnergyLagg': 464.683, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': -0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 0.861, 'current': -0.0, 'freq': 50.0}]}] [2023-08-28 13:42:35][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:42:35][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:42:50][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-28 13:42:50][INFO] : Test Token [2023-08-28 13:42:50][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:42:50][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:42:50][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:42:51][DEBUG] : start_tls.complete return_value= [2023-08-28 13:42:51][DEBUG] : send_request_headers.started request= [2023-08-28 13:42:51][DEBUG] : send_request_headers.complete [2023-08-28 13:42:51][DEBUG] : send_request_body.started request= [2023-08-28 13:42:51][DEBUG] : send_request_body.complete [2023-08-28 13:42:51][DEBUG] : receive_response_headers.started request= [2023-08-28 13:42:51][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:44:39 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=vS8oLAl2yl0CIZvOyKzq0SgXfe4vv3mF; Secure; HttpOnly; path=/'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:42:51][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-28 13:42:51][DEBUG] : receive_response_body.started request= [2023-08-28 13:42:51][DEBUG] : receive_response_body.complete [2023-08-28 13:42:51][DEBUG] : response_closed.started [2023-08-28 13:42:51][DEBUG] : response_closed.complete [2023-08-28 13:42:51][INFO] : Recuperation mesures [2023-08-28 13:42:51][DEBUG] : send_request_headers.started request= [2023-08-28 13:42:51][DEBUG] : send_request_headers.complete [2023-08-28 13:42:51][DEBUG] : send_request_body.started request= [2023-08-28 13:42:51][DEBUG] : send_request_body.complete [2023-08-28 13:42:51][DEBUG] : receive_response_headers.started request= [2023-08-28 13:42:51][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:44:40 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:42:51][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-28 13:42:51][DEBUG] : receive_response_body.started request= [2023-08-28 13:42:51][DEBUG] : receive_response_body.complete [2023-08-28 13:42:51][DEBUG] : response_closed.started [2023-08-28 13:42:51][DEBUG] : response_closed.complete [2023-08-28 13:42:51][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1693229822, 'wNow': 376, 'whLifetime': 27613}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1693230280, 'wNow': 393.884, 'whLifetime': 1226450.037, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468480.047, 'vahLifetime': 1557821.874, 'rmsCurrent': 1.701, 'rmsVoltage': 234.426, 'reactPwr': 63.169, 'apprntPwr': 398.551, 'pwrFactor': 0.98, 'whToday': 2871.037, 'whLastSevenDays': 41441.037, 'vahToday': 3476.874, 'varhLeadToday': 0.104, 'varhLagToday': 1009.047, 'lines': [{'wNow': 393.884, 'whLifetime': 1226450.037, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468480.047, 'vahLifetime': 1557821.874, 'rmsCurrent': 1.701, 'rmsVoltage': 234.426, 'reactPwr': 63.169, 'apprntPwr': 398.551, 'pwrFactor': 0.98, 'whToday': 2871.037, 'whLastSevenDays': 41441.037, 'vahToday': 3476.874, 'varhLeadToday': 0.104, 'varhLagToday': 1009.047}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1693230280, 'wNow': 1551.975, 'whLifetime': 5848285.684, 'varhLeadLifetime': 4085752.147, 'varhLagLifetime': -468191.012, 'vahLifetime': 7200884.196, 'rmsCurrent': 7.763, 'rmsVoltage': 234.408, 'reactPwr': -681.138, 'apprntPwr': 1819.771, 'pwrFactor': 0.85, 'whToday': 12502.684, 'whLastSevenDays': 368.684, 'vahToday': 16121.196, 'varhLeadToday': 10423.147, 'varhLagToday': 0.0, 'lines': [{'wNow': 1551.975, 'whLifetime': 5848285.684, 'varhLeadLifetime': 4085752.147, 'varhLagLifetime': -468191.012, 'vahLifetime': 7200884.196, 'rmsCurrent': 7.763, 'rmsVoltage': 234.408, 'reactPwr': -681.138, 'apprntPwr': 1819.771, 'pwrFactor': 0.85, 'whToday': 12502.684, 'whLastSevenDays': 368.684, 'vahToday': 16121.196, 'varhLeadToday': 10423.147, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1693230280, 'wNow': 1158.091, 'whLifetime': 4622150.617, 'varhLeadLifetime': 4086902.251, 'varhLagLifetime': 289.035, 'vahLifetime': 7200884.196, 'rmsCurrent': 6.062, 'rmsVoltage': 234.408, 'reactPwr': -744.307, 'apprntPwr': 1421.096, 'pwrFactor': 0.81, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 1158.091, 'whLifetime': 4622150.617, 'varhLeadLifetime': 4086902.251, 'varhLagLifetime': 289.035, 'vahLifetime': 7200884.196, 'rmsCurrent': 6.062, 'rmsVoltage': 234.408, 'reactPwr': -744.307, 'apprntPwr': 1421.096, 'pwrFactor': 0.81, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0}]}], 'storage': [{'type': 'acb', 'activeCount': 0, 'readingTime': 0, 'wNow': 0, 'whNow': 0, 'state': 'idle'}]} [2023-08-28 13:42:51][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:42:51][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:42:52][DEBUG] : send_request_headers.started request= [2023-08-28 13:42:52][DEBUG] : send_request_headers.complete [2023-08-28 13:42:52][DEBUG] : send_request_body.started request= [2023-08-28 13:42:52][DEBUG] : send_request_body.complete [2023-08-28 13:42:52][DEBUG] : receive_response_headers.started request= [2023-08-28 13:42:52][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:44:41 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'603'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:42:52][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-28 13:42:52][DEBUG] : receive_response_body.started request= [2023-08-28 13:42:52][DEBUG] : receive_response_body.complete [2023-08-28 13:42:52][DEBUG] : response_closed.started [2023-08-28 13:42:52][DEBUG] : response_closed.complete [2023-08-28 13:42:52][DEBUG] : Recuperation mesures onduleurs [2023-08-28 13:42:52][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1693229611, 'devType': 1, 'lastReportWatts': 89, 'maxReportWatts': 293}, {'serialNumber': '482236085940', 'lastReportDate': 1693229670, 'devType': 1, 'lastReportWatts': 90, 'maxReportWatts': 296}, {'serialNumber': '482236085744', 'lastReportDate': 1693229760, 'devType': 1, 'lastReportWatts': 99, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1693229790, 'devType': 1, 'lastReportWatts': 98, 'maxReportWatts': 296}] [2023-08-28 13:42:52][DEBUG] : Recuperation index [2023-08-28 13:42:52][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:42:52][DEBUG] : send_request_headers.started request= [2023-08-28 13:42:52][DEBUG] : send_request_headers.complete [2023-08-28 13:42:52][DEBUG] : send_request_body.started request= [2023-08-28 13:42:52][DEBUG] : send_request_body.complete [2023-08-28 13:42:52][DEBUG] : receive_response_headers.started request= [2023-08-28 13:42:52][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:42:52][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:44:41 GMT'), (b'Content-Length', b'4849'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:42:52][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-28 13:42:52][DEBUG] : receive_response_body.started request= [2023-08-28 13:42:52][DEBUG] : receive_response_body.complete [2023-08-28 13:42:52][DEBUG] : response_closed.started [2023-08-28 13:42:52][DEBUG] : response_closed.complete [2023-08-28 13:42:52][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1693230280, 'actEnergyDlvd': 1226450.157, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557821.996, 'reactEnergyLagg': 468480.067, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 394.296, 'activePower': 394.296, 'apparentPower': 398.72, 'reactivePower': 63.567, 'pwrFactor': 0.982, 'voltage': 234.393, 'current': 1.7, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1693230280, 'actEnergyDlvd': 1226450.157, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557821.996, 'reactEnergyLagg': 468480.067, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 394.296, 'activePower': 394.296, 'apparentPower': 398.72, 'reactivePower': 63.567, 'pwrFactor': 0.982, 'voltage': 234.393, 'current': 1.7, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1693230280, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7928.949, 'apparentEnergy': 1153.279, 'reactEnergyLagg': 493.233, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.048, 'activePower': -0.048, 'apparentPower': 0.181, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 2.658, 'current': 0.069, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1693230280, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 16304.279, 'apparentEnergy': 3619.389, 'reactEnergyLagg': 494.433, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.228, 'activePower': -0.228, 'apparentPower': 0.569, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 4.202, 'current': 0.134, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1693230280, 'actEnergyDlvd': 4792586.98, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200884.629, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086902.478, 'instantaneousDemand': 1160.977, 'activePower': 1160.977, 'apparentPower': 1421.322, 'reactivePower': -745.294, 'pwrFactor': 0.815, 'voltage': 234.426, 'current': 6.068, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1693230280, 'actEnergyDlvd': 4792586.98, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200884.629, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086902.478, 'instantaneousDemand': 1160.977, 'activePower': 1160.977, 'apparentPower': 1421.322, 'reactivePower': -745.294, 'pwrFactor': 0.815, 'voltage': 234.426, 'current': 6.068, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1693230280, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5293.2, 'apparentEnergy': 34.275, 'reactEnergyLagg': 457.677, 'reactEnergyLead': 0.33, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 3.804, 'current': 0.0, 'freq': 50.0}, {'eid': 1778385427, 'timestamp': 1693230280, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11987.316, 'apparentEnergy': 17.442, 'reactEnergyLagg': 464.683, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': -0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 0.861, 'current': -0.0, 'freq': 50.0}]}] [2023-08-28 13:42:52][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:42:52][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:43:05][DEBUG] : Signal 15 caught, exiting... [2023-08-28 13:43:05][DEBUG] : Shutdown [2023-08-28 13:43:05][DEBUG] : Removing PID file /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:43:05][INFO] : Send to jeedom : error arret [2023-08-28 13:43:05][DEBUG] : Exit 0 [2023-08-28 13:43:09][INFO] : Start demond [2023-08-28 13:43:09][INFO] : Log level : debug [2023-08-28 13:43:09][DEBUG] : Socket port : 45894 [2023-08-28 13:43:09][DEBUG] : Socket host : localhost [2023-08-28 13:43:09][DEBUG] : PID file : /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:43:09][DEBUG] : Apikey : wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM [2023-08-28 13:43:09][DEBUG] : Device : auto [2023-08-28 13:43:09][DEBUG] : Callback : http://127.0.0.1:80/plugins/enphasesecur/core/php/jeeenphasesecur.php [2023-08-28 13:43:09][DEBUG] : Delais actualisation : 15 [2023-08-28 13:43:09][INFO] : Adresse IP Passerelle : 192.168.0.70 [2023-08-28 13:43:09][DEBUG] : User : m_mickael@yahoo.fr [2023-08-28 13:43:09][DEBUG] : Password : %scream%enphase [2023-08-28 13:43:09][DEBUG] : Numero de serie : 122239084064 [2023-08-28 13:43:09][INFO] : Writing PID 4240 to /tmp/jeedom/enphasesecur/deamon.pid [2023-08-28 13:43:09][INFO] : Init request module v2.31.0 [2023-08-28 13:43:09][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:43:09][DEBUG] : http://127.0.0.1:80 "GET /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 2 [2023-08-28 13:43:24][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-28 13:43:24][INFO] : Recuperation token [2023-08-28 13:43:24][DEBUG] : Starting new HTTPS connection (1): enlighten.enphaseenergy.com:443 [2023-08-28 13:43:27][DEBUG] : https://enlighten.enphaseenergy.com:443 "POST /login/login.json HTTP/1.1" 200 None [2023-08-28 13:43:27][DEBUG] : Starting new HTTPS connection (1): entrez.enphaseenergy.com:443 [2023-08-28 13:43:27][DEBUG] : https://entrez.enphaseenergy.com:443 "POST /tokens HTTP/1.1" 200 None [2023-08-28 13:43:27][DEBUG] : eyJraWQiOiI3ZDEwMDA1ZC03ODk5LTRkMGQtYmNiNC0yNDRmOThlZTE1NmIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJhdWQiOiIxMjIyMzkwODQwNjQiLCJpc3MiOiJFbnRyZXoiLCJlbnBoYXNlVXNlciI6Im93bmVyIiwiZXhwIjoxNzI0NzY2MjA3LCJpYXQiOjE2OTMyMzAyMDcsImp0aSI6IjFmMTI3ZjZkLTlmYWUtNGVkOC04MWU0LThmMWE0YzBlZmQwOSIsInVzZXJuYW1lIjoibV9taWNrYWVsQHlhaG9vLmZyIn0.NT6sFW8UHjxL7OqdZ4GN4GHyJ7kAOGfyiEmu5MF5M_oeZ60k2nOq-WCB72b2V7eeSmXJ2vzIvhvrCk5thicGyw [2023-08-28 13:43:27][INFO] : Test Token [2023-08-28 13:43:27][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:43:27][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:43:27][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:43:27][DEBUG] : start_tls.complete return_value= [2023-08-28 13:43:27][DEBUG] : send_request_headers.started request= [2023-08-28 13:43:27][DEBUG] : send_request_headers.complete [2023-08-28 13:43:27][DEBUG] : send_request_body.started request= [2023-08-28 13:43:27][DEBUG] : send_request_body.complete [2023-08-28 13:43:27][DEBUG] : receive_response_headers.started request= [2023-08-28 13:43:27][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:45:16 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=lMHWgaWikmL2qdzftOOpXtoSq3ynkizO; Secure; HttpOnly; path=/'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:43:27][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-28 13:43:27][DEBUG] : receive_response_body.started request= [2023-08-28 13:43:27][DEBUG] : receive_response_body.complete [2023-08-28 13:43:27][DEBUG] : response_closed.started [2023-08-28 13:43:27][DEBUG] : response_closed.complete [2023-08-28 13:43:27][DEBUG] : Recuperation Inventaire [2023-08-28 13:43:27][DEBUG] : send_request_headers.started request= [2023-08-28 13:43:27][DEBUG] : send_request_headers.complete [2023-08-28 13:43:27][DEBUG] : send_request_body.started request= [2023-08-28 13:43:27][DEBUG] : send_request_body.complete [2023-08-28 13:43:27][DEBUG] : receive_response_headers.started request= [2023-08-28 13:43:28][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:45:17 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:43:28][INFO] : HTTP Request: GET https://192.168.0.70/inventory.json "HTTP/1.1 200 OK" [2023-08-28 13:43:28][DEBUG] : receive_response_body.started request= [2023-08-28 13:43:28][DEBUG] : receive_response_body.complete [2023-08-28 13:43:28][DEBUG] : response_closed.started [2023-08-28 13:43:28][DEBUG] : response_closed.complete [2023-08-28 13:43:28][INFO] : Send to jeedom : [{'type': 'PCU', 'devices': [{'part_num': '800-01736-r02', 'installed': '1670094034', 'serial_num': '482236085960', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229612', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094034', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390225, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094034', 'serial_num': '482236085940', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229672', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094034', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390481, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094035', 'serial_num': '482236085744', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229762', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094035', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390737, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}, {'part_num': '800-01736-r02', 'installed': '1670094035', 'serial_num': '482236085917', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229792', 'admin_state': 2, 'dev_type': 1, 'created_date': '1670094035', 'img_load_date': '1613405093', 'img_pnum_running': '520-00082-r01-v04.27.04', 'ptpn': '540-00135-r01-v04.27.10', 'chaneid': 1627390993, 'device_control': [{'gficlearset': False}], 'producing': True, 'communicating': True, 'provisioned': True, 'operating': True}]}, {'type': 'ACB', 'devices': []}, {'type': 'NSRB', 'devices': [{'part_num': '800-00598-r04', 'installed': '1670088923', 'serial_num': '122232095000', 'device_status': ['envoy.global.ok'], 'last_rpt_date': '1693229822', 'admin_state': 1, 'dev_type': 12, 'created_date': '1670088923', 'img_load_date': '1522376696', 'img_pnum_running': '520-00086-r01-v02.12.07', 'ptpn': '540-00139-r01-v02.12.00', 'chaneid': 1811939601, 'device_control': [{'gficlearset': False}], 'producing': False, 'communicating': True, 'provisioned': True, 'operating': True, 'relay': 'closed', 'reason_code': -1, 'reason': 'ok', 'line-count': 1, 'line1-connected': True, 'line2-connected': False, 'line3-connected': False}]}, {'type': 'ESUB', 'devices': []}] [2023-08-28 13:43:28][DEBUG] : Attente de 5s [2023-08-28 13:43:28][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:43:28][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:43:33][INFO] : Recuperation mesures [2023-08-28 13:43:33][DEBUG] : close.started [2023-08-28 13:43:33][DEBUG] : close.complete [2023-08-28 13:43:33][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:43:33][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:43:33][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:43:33][DEBUG] : start_tls.complete return_value= [2023-08-28 13:43:33][DEBUG] : send_request_headers.started request= [2023-08-28 13:43:33][DEBUG] : send_request_headers.complete [2023-08-28 13:43:33][DEBUG] : send_request_body.started request= [2023-08-28 13:43:33][DEBUG] : send_request_body.complete [2023-08-28 13:43:33][DEBUG] : receive_response_headers.started request= [2023-08-28 13:43:34][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:45:22 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:43:34][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-28 13:43:34][DEBUG] : receive_response_body.started request= [2023-08-28 13:43:34][DEBUG] : receive_response_body.complete [2023-08-28 13:43:34][DEBUG] : response_closed.started [2023-08-28 13:43:34][DEBUG] : response_closed.complete [2023-08-28 13:43:34][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1693229822, 'wNow': 376, 'whLifetime': 27613}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1693230322, 'wNow': 395.984, 'whLifetime': 1226454.787, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468480.806, 'vahLifetime': 1557826.674, 'rmsCurrent': 1.71, 'rmsVoltage': 234.086, 'reactPwr': 63.02, 'apprntPwr': 400.286, 'pwrFactor': 1.0, 'whToday': 2875.787, 'whLastSevenDays': 41351.787, 'vahToday': 3481.674, 'varhLeadToday': 0.104, 'varhLagToday': 1009.806, 'lines': [{'wNow': 395.984, 'whLifetime': 1226454.787, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468480.806, 'vahLifetime': 1557826.674, 'rmsCurrent': 1.71, 'rmsVoltage': 234.086, 'reactPwr': 63.02, 'apprntPwr': 400.286, 'pwrFactor': 1.0, 'whToday': 2875.787, 'whLastSevenDays': 41351.787, 'vahToday': 3481.674, 'varhLeadToday': 0.104, 'varhLagToday': 1009.806}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1693230322, 'wNow': 1553.092, 'whLifetime': 5848304.316, 'varhLeadLifetime': 4085761.081, 'varhLagLifetime': -468191.771, 'vahLifetime': 7200901.213, 'rmsCurrent': 7.764, 'rmsVoltage': 234.083, 'reactPwr': -679.786, 'apprntPwr': 1817.515, 'pwrFactor': 0.85, 'whToday': 12521.316, 'whLastSevenDays': 10.316, 'vahToday': 16138.213, 'varhLeadToday': 10432.081, 'varhLagToday': 0.0, 'lines': [{'wNow': 1553.092, 'whLifetime': 5848304.316, 'varhLeadLifetime': 4085761.081, 'varhLagLifetime': -468191.771, 'vahLifetime': 7200901.213, 'rmsCurrent': 7.764, 'rmsVoltage': 234.083, 'reactPwr': -679.786, 'apprntPwr': 1817.515, 'pwrFactor': 0.85, 'whToday': 12521.316, 'whLastSevenDays': 10.316, 'vahToday': 16138.213, 'varhLeadToday': 10432.081, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1693230322, 'wNow': 1157.109, 'whLifetime': 4622164.499, 'varhLeadLifetime': 4086911.185, 'varhLagLifetime': 289.035, 'vahLifetime': 7200901.213, 'rmsCurrent': 6.055, 'rmsVoltage': 234.083, 'reactPwr': -742.807, 'apprntPwr': 1417.322, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 1157.109, 'whLifetime': 4622164.499, 'varhLeadLifetime': 4086911.185, 'varhLagLifetime': 289.035, 'vahLifetime': 7200901.213, 'rmsCurrent': 6.055, 'rmsVoltage': 234.083, 'reactPwr': -742.807, 'apprntPwr': 1417.322, 'pwrFactor': 0.82, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0}]}], 'storage': [{'type': 'acb', 'activeCount': 0, 'readingTime': 0, 'wNow': 0, 'whNow': 0, 'state': 'idle'}]} [2023-08-28 13:43:34][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:43:34][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:43:35][DEBUG] : send_request_headers.started request= [2023-08-28 13:43:35][DEBUG] : send_request_headers.complete [2023-08-28 13:43:35][DEBUG] : send_request_body.started request= [2023-08-28 13:43:35][DEBUG] : send_request_body.complete [2023-08-28 13:43:35][DEBUG] : receive_response_headers.started request= [2023-08-28 13:43:35][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:45:23 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'603'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:43:35][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-28 13:43:35][DEBUG] : receive_response_body.started request= [2023-08-28 13:43:35][DEBUG] : receive_response_body.complete [2023-08-28 13:43:35][DEBUG] : response_closed.started [2023-08-28 13:43:35][DEBUG] : response_closed.complete [2023-08-28 13:43:35][DEBUG] : Recuperation mesures onduleurs2 [2023-08-28 13:43:35][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1693229611, 'devType': 1, 'lastReportWatts': 89, 'maxReportWatts': 293}, {'serialNumber': '482236085940', 'lastReportDate': 1693229670, 'devType': 1, 'lastReportWatts': 90, 'maxReportWatts': 296}, {'serialNumber': '482236085744', 'lastReportDate': 1693229760, 'devType': 1, 'lastReportWatts': 99, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1693229790, 'devType': 1, 'lastReportWatts': 98, 'maxReportWatts': 296}] [2023-08-28 13:43:35][DEBUG] : Recuperation index [2023-08-28 13:43:35][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:43:35][DEBUG] : send_request_headers.started request= [2023-08-28 13:43:35][DEBUG] : send_request_headers.complete [2023-08-28 13:43:35][DEBUG] : send_request_body.started request= [2023-08-28 13:43:35][DEBUG] : send_request_body.complete [2023-08-28 13:43:35][DEBUG] : receive_response_headers.started request= [2023-08-28 13:43:35][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:43:35][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:45:24 GMT'), (b'Content-Length', b'4851'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:43:35][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-28 13:43:35][DEBUG] : receive_response_body.started request= [2023-08-28 13:43:35][DEBUG] : receive_response_body.complete [2023-08-28 13:43:35][DEBUG] : response_closed.started [2023-08-28 13:43:35][DEBUG] : response_closed.complete [2023-08-28 13:43:35][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1693230323, 'actEnergyDlvd': 1226454.897, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557826.785, 'reactEnergyLagg': 468480.824, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 396.25, 'activePower': 396.25, 'apparentPower': 400.367, 'reactivePower': 63.029, 'pwrFactor': 1.0, 'voltage': 234.18, 'current': 1.71, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1693230323, 'actEnergyDlvd': 1226454.897, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557826.785, 'reactEnergyLagg': 468480.824, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 396.25, 'activePower': 396.25, 'apparentPower': 400.367, 'reactivePower': 63.029, 'pwrFactor': 1.0, 'voltage': 234.18, 'current': 1.71, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1693230323, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7928.964, 'apparentEnergy': 1153.281, 'reactEnergyLagg': 493.234, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.025, 'activePower': -0.025, 'apparentPower': 0.186, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 2.658, 'current': 0.071, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1693230323, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 16304.309, 'apparentEnergy': 3619.396, 'reactEnergyLagg': 494.434, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.249, 'activePower': -0.249, 'apparentPower': 0.576, 'reactivePower': -0.0, 'pwrFactor': -1.0, 'voltage': 4.202, 'current': 0.138, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1693230323, 'actEnergyDlvd': 4792600.83, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200901.607, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086911.392, 'instantaneousDemand': 1158.041, 'activePower': 1158.041, 'apparentPower': 1417.645, 'reactivePower': -743.222, 'pwrFactor': 0.819, 'voltage': 234.151, 'current': 6.056, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1693230323, 'actEnergyDlvd': 4792600.83, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200901.607, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086911.392, 'instantaneousDemand': 1158.041, 'activePower': 1158.041, 'apparentPower': 1417.645, 'reactivePower': -743.222, 'pwrFactor': 0.819, 'voltage': 234.151, 'current': 6.056, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1693230323, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5293.209, 'apparentEnergy': 34.275, 'reactEnergyLagg': 457.678, 'reactEnergyLead': 0.33, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 3.804, 'current': 0.0, 'freq': 50.0}, {'eid': 1778385427, 'timestamp': 1693230323, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11987.339, 'apparentEnergy': 17.442, 'reactEnergyLagg': 464.684, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': -0.0, 'reactivePower': 0.0, 'pwrFactor': -1.0, 'voltage': 0.861, 'current': -0.0, 'freq': 50.0}]}] [2023-08-28 13:43:35][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:43:35][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:43:50][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-28 13:43:50][INFO] : Test Token [2023-08-28 13:43:50][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-28 13:43:50][DEBUG] : connect_tcp.complete return_value= [2023-08-28 13:43:50][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-28 13:43:50][DEBUG] : start_tls.complete return_value= [2023-08-28 13:43:50][DEBUG] : send_request_headers.started request= [2023-08-28 13:43:50][DEBUG] : send_request_headers.complete [2023-08-28 13:43:50][DEBUG] : send_request_body.started request= [2023-08-28 13:43:50][DEBUG] : send_request_body.complete [2023-08-28 13:43:50][DEBUG] : receive_response_headers.started request= [2023-08-28 13:43:50][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:45:39 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=lMHWgaWikmL2qdzftOOpXtoSq3ynkizO; Secure; HttpOnly; path=/'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:43:50][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-28 13:43:50][DEBUG] : receive_response_body.started request= [2023-08-28 13:43:50][DEBUG] : receive_response_body.complete [2023-08-28 13:43:50][DEBUG] : response_closed.started [2023-08-28 13:43:50][DEBUG] : response_closed.complete [2023-08-28 13:43:50][INFO] : Recuperation mesures [2023-08-28 13:43:50][DEBUG] : send_request_headers.started request= [2023-08-28 13:43:50][DEBUG] : send_request_headers.complete [2023-08-28 13:43:50][DEBUG] : send_request_body.started request= [2023-08-28 13:43:50][DEBUG] : send_request_body.complete [2023-08-28 13:43:50][DEBUG] : receive_response_headers.started request= [2023-08-28 13:43:50][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:45:39 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Pragma', b'no-cache'), (b'Expires', b'1'), (b'Cache-Control', b'no-cache'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:43:50][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-28 13:43:50][DEBUG] : receive_response_body.started request= [2023-08-28 13:43:50][DEBUG] : receive_response_body.complete [2023-08-28 13:43:50][DEBUG] : response_closed.started [2023-08-28 13:43:50][DEBUG] : response_closed.complete [2023-08-28 13:43:50][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1693229822, 'wNow': 376, 'whLifetime': 27613}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1693230339, 'wNow': 397.9, 'whLifetime': 1226456.517, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468481.083, 'vahLifetime': 1557828.423, 'rmsCurrent': 1.715, 'rmsVoltage': 234.705, 'reactPwr': 62.751, 'apprntPwr': 402.522, 'pwrFactor': 0.98, 'whToday': 2877.517, 'whLastSevenDays': 41353.517, 'vahToday': 3483.423, 'varhLeadToday': 0.104, 'varhLagToday': 1010.083, 'lines': [{'wNow': 397.9, 'whLifetime': 1226456.517, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 468481.083, 'vahLifetime': 1557828.423, 'rmsCurrent': 1.715, 'rmsVoltage': 234.705, 'reactPwr': 62.751, 'apprntPwr': 402.522, 'pwrFactor': 0.98, 'whToday': 2877.517, 'whLastSevenDays': 41353.517, 'vahToday': 3483.423, 'varhLeadToday': 0.104, 'varhLagToday': 1010.083}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1693230339, 'wNow': 1552.336, 'whLifetime': 5848311.108, 'varhLeadLifetime': 4085764.329, 'varhLagLifetime': -468192.047, 'vahLifetime': 7200907.41, 'rmsCurrent': 7.755, 'rmsVoltage': 234.691, 'reactPwr': -682.384, 'apprntPwr': 1820.108, 'pwrFactor': 0.85, 'whToday': 12528.108, 'whLastSevenDays': 17.108, 'vahToday': 16144.41, 'varhLeadToday': 10435.329, 'varhLagToday': 0.0, 'lines': [{'wNow': 1552.336, 'whLifetime': 5848311.108, 'varhLeadLifetime': 4085764.329, 'varhLagLifetime': -468192.047, 'vahLifetime': 7200907.41, 'rmsCurrent': 7.755, 'rmsVoltage': 234.691, 'reactPwr': -682.384, 'apprntPwr': 1820.108, 'pwrFactor': 0.85, 'whToday': 12528.108, 'whLastSevenDays': 17.108, 'vahToday': 16144.41, 'varhLeadToday': 10435.329, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1693230339, 'wNow': 1154.435, 'whLifetime': 4622169.56, 'varhLeadLifetime': 4086914.433, 'varhLagLifetime': 289.035, 'vahLifetime': 7200907.41, 'rmsCurrent': 6.04, 'rmsVoltage': 234.691, 'reactPwr': -745.135, 'apprntPwr': 1417.589, 'pwrFactor': 0.81, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 1154.435, 'whLifetime': 4622169.56, 'varhLeadLifetime': 4086914.433, 'varhLagLifetime': 289.035, 'vahLifetime': 7200907.41, 'rmsCurrent': 6.04, 'rmsVoltage': 234.691, 'reactPwr': -745.135, 'apprntPwr': 1417.589, 'pwrFactor': 0.81, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0}]}], 'storage': [{'type': 'acb', 'activeCount': 0, 'readingTime': 0, 'wNow': 0, 'whNow': 0, 'state': 'idle'}]} [2023-08-28 13:43:50][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:43:51][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:43:51][DEBUG] : send_request_headers.started request= [2023-08-28 13:43:51][DEBUG] : send_request_headers.complete [2023-08-28 13:43:51][DEBUG] : send_request_body.started request= [2023-08-28 13:43:51][DEBUG] : send_request_body.complete [2023-08-28 13:43:51][DEBUG] : receive_response_headers.started request= [2023-08-28 13:43:51][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:45:40 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'603'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:43:51][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-28 13:43:51][DEBUG] : receive_response_body.started request= [2023-08-28 13:43:51][DEBUG] : receive_response_body.complete [2023-08-28 13:43:51][DEBUG] : response_closed.started [2023-08-28 13:43:51][DEBUG] : response_closed.complete [2023-08-28 13:43:51][DEBUG] : Recuperation mesures onduleurs [2023-08-28 13:43:51][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1693229611, 'devType': 1, 'lastReportWatts': 89, 'maxReportWatts': 293}, {'serialNumber': '482236085940', 'lastReportDate': 1693229670, 'devType': 1, 'lastReportWatts': 90, 'maxReportWatts': 296}, {'serialNumber': '482236085744', 'lastReportDate': 1693229760, 'devType': 1, 'lastReportWatts': 99, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1693229790, 'devType': 1, 'lastReportWatts': 98, 'maxReportWatts': 296}] [2023-08-28 13:43:51][DEBUG] : Recuperation index [2023-08-28 13:43:51][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:43:51][DEBUG] : send_request_headers.started request= [2023-08-28 13:43:51][DEBUG] : send_request_headers.complete [2023-08-28 13:43:51][DEBUG] : send_request_body.started request= [2023-08-28 13:43:51][DEBUG] : send_request_body.complete [2023-08-28 13:43:51][DEBUG] : receive_response_headers.started request= [2023-08-28 13:43:51][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-28 13:43:51][DEBUG] : receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty/1.17.8.1'), (b'Date', b'Mon, 28 Aug 2023 13:45:40 GMT'), (b'Content-Length', b'4849'), (b'Connection', b'keep-alive'), (b'Strict-Transport-Security', b'max-age=63072000; includeSubdomains'), (b'X-Frame-Options', b'DENY'), (b'X-Content-Type-Options', b'nosniff')]) [2023-08-28 13:43:51][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-28 13:43:51][DEBUG] : receive_response_body.started request= [2023-08-28 13:43:51][DEBUG] : receive_response_body.complete [2023-08-28 13:43:51][DEBUG] : response_closed.started [2023-08-28 13:43:51][DEBUG] : response_closed.complete [2023-08-28 13:43:51][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1693230339, 'actEnergyDlvd': 1226456.628, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557828.535, 'reactEnergyLagg': 468481.1, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 397.987, 'activePower': 397.987, 'apparentPower': 402.577, 'reactivePower': 63.326, 'pwrFactor': 0.986, 'voltage': 234.693, 'current': 1.714, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1693230339, 'actEnergyDlvd': 1226456.628, 'actEnergyRcvd': 16793.196, 'apparentEnergy': 1557828.535, 'reactEnergyLagg': 468481.1, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 397.987, 'activePower': 397.987, 'apparentPower': 402.577, 'reactivePower': 63.326, 'pwrFactor': 0.986, 'voltage': 234.693, 'current': 1.714, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1693230339, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7928.969, 'apparentEnergy': 1153.282, 'reactEnergyLagg': 493.234, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.048, 'activePower': -0.048, 'apparentPower': 0.183, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 2.658, 'current': 0.068, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1693230339, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 16304.32, 'apparentEnergy': 3619.398, 'reactEnergyLagg': 494.434, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.22, 'activePower': -0.22, 'apparentPower': 0.57, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 4.202, 'current': 0.136, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1693230339, 'actEnergyDlvd': 4792605.88, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200907.796, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086914.638, 'instantaneousDemand': 1145.504, 'activePower': 1145.504, 'apparentPower': 1407.906, 'reactivePower': -742.8, 'pwrFactor': 0.794, 'voltage': 234.709, 'current': 5.978, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1693230339, 'actEnergyDlvd': 4792605.88, 'actEnergyRcvd': 170593.494, 'apparentEnergy': 7200907.796, 'reactEnergyLagg': 289.035, 'reactEnergyLead': 4086914.638, 'instantaneousDemand': 1145.504, 'activePower': 1145.504, 'apparentPower': 1407.906, 'reactivePower': -742.8, 'pwrFactor': 0.794, 'voltage': 234.709, 'current': 5.978, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1693230339, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5293.213, 'apparentEnergy': 34.275, 'reactEnergyLagg': 457.679, 'reactEnergyLead': 0.33, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 3.804, 'current': 0.0, 'freq': 50.0}, {'eid': 1778385427, 'timestamp': 1693230339, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11987.347, 'apparentEnergy': 17.442, 'reactEnergyLagg': 464.685, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': -0.0, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 0.861, 'current': -0.0, 'freq': 50.0}]}] [2023-08-28 13:43:51][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-28 13:43:52][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0