[2023-08-18 06:43:04][DEBUG] : Exit 0 [2023-08-18 06:43:09][INFO] : Start demond [2023-08-18 06:43:09][INFO] : Log level : debug [2023-08-18 06:43:09][DEBUG] : Socket port : 3639 [2023-08-18 06:43:09][DEBUG] : Socket host : localhost [2023-08-18 06:43:09][DEBUG] : PID file : /tmp/jeedom/enphasesecur/deamon.pid [2023-08-18 06:43:09][DEBUG] : Apikey : wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM [2023-08-18 06:43:09][DEBUG] : Device : auto [2023-08-18 06:43:09][DEBUG] : Callback : http://127.0.0.1:80/plugins/enphasesecur/core/php/jeeenphasesecur.php [2023-08-18 06:43:09][DEBUG] : Delais actualisation : 15 [2023-08-18 06:43:09][INFO] : Adresse IP Passerelle : 192.168.0.70 [2023-08-18 06:43:09][DEBUG] : User : ********* [2023-08-18 06:43:09][DEBUG] : Password : ************* %scream%enphase [2023-08-18 06:43:09][DEBUG] : Numero de serie : 122239084064 [2023-08-18 06:43:09][INFO] : Writing PID 21910 to /tmp/jeedom/enphasesecur/deamon.pid [2023-08-18 06:43:09][INFO] : Init request module v2.31.0 [2023-08-18 06:43:09][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06: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-18 06:43:24][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-18 06:43:24][INFO] : Recuperation token [2023-08-18 06:43:24][DEBUG] : Starting new HTTPS connection (1): enlighten.enphaseenergy.com:443 [2023-08-18 06:43:27][DEBUG] : https://enlighten.enphaseenergy.com:443 "POST /login/login.json HTTP/1.1" 200 None [2023-08-18 06:43:27][DEBUG] : Starting new HTTPS connection (1): entrez.enphaseenergy.com:443 [2023-08-18 06:43:27][DEBUG] : https://entrez.enphaseenergy.com:443 "POST /tokens HTTP/1.1" 200 None [2023-08-18 06:43:27][DEBUG] : eyJraWQiOiI3ZDEwMDA1ZC03ODk5LTRkMGQtYmNiNC0yNDRmOThlZTE1NmIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJhdWQiOiIxMjIyMzkwODQwNjQiLCJpc3MiOiJFbnRyZXoiLCJlbnBoYXNlVXNlciI6Im93bmVyIiwiZXhwIjoxNzIzODc3MDA3LCJpYXQiOjE2OTIzNDEwMDcsImp0aSI6ImE0ZjcxMzhmLTkxNjYtNGQ3MS05ZjFiLTFiN2RiNTZiODBmZiIsInVzZXJuYW1lIjoibV9taWNrYWVsQHlhaG9vLmZyIn0.FZZ7tLnr9LNgaft2i3xQxhLVgQBjJJOWtES2uD7Od-Uf0_EfrDWSjiTuMvaAmLKCJ9zpb4v4FO6J1RKjBPNamg [2023-08-18 06:43:27][INFO] : Test Token [2023-08-18 06:43:27][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-18 06:43:27][DEBUG] : connect_tcp.complete return_value= [2023-08-18 06:43:27][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-18 06:43:27][DEBUG] : start_tls.complete return_value= [2023-08-18 06:43:27][DEBUG] : send_request_headers.started request= [2023-08-18 06:43:27][DEBUG] : send_request_headers.complete [2023-08-18 06:43:27][DEBUG] : send_request_body.started request= [2023-08-18 06:43:27][DEBUG] : send_request_body.complete [2023-08-18 06:43:27][DEBUG] : receive_response_headers.started request= [2023-08-18 06: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'Fri, 18 Aug 2023 06:43:54 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=VUKyLeoAPiHVGNfuHMwXdyeWd3p3gsLK; 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-18 06:43:27][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-18 06:43:27][DEBUG] : receive_response_body.started request= [2023-08-18 06:43:27][DEBUG] : receive_response_body.complete [2023-08-18 06:43:27][DEBUG] : response_closed.started [2023-08-18 06:43:27][DEBUG] : response_closed.complete [2023-08-18 06:43:27][DEBUG] : Recuperation Inventaire [2023-08-18 06:43:27][DEBUG] : send_request_headers.started request= [2023-08-18 06:43:27][DEBUG] : send_request_headers.complete [2023-08-18 06:43:27][DEBUG] : send_request_body.started request= [2023-08-18 06:43:27][DEBUG] : send_request_body.complete [2023-08-18 06:43:27][DEBUG] : receive_response_headers.started request= [2023-08-18 06: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'Fri, 18 Aug 2023 06:43:55 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-18 06:43:28][INFO] : HTTP Request: GET https://192.168.0.70/inventory.json "HTTP/1.1 200 OK" [2023-08-18 06:43:28][DEBUG] : receive_response_body.started request= [2023-08-18 06:43:28][DEBUG] : receive_response_body.complete [2023-08-18 06:43:28][DEBUG] : response_closed.started [2023-08-18 06:43:28][DEBUG] : response_closed.complete [2023-08-18 06: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': '1692340970', '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': '1692341030', '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': '1692340157', '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': '1692340187', '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': '1692340217', '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-18 06:43:28][DEBUG] : Attente de 5s [2023-08-18 06:43:28][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06: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-18 06:43:33][INFO] : Recuperation mesures [2023-08-18 06:43:33][DEBUG] : close.started [2023-08-18 06:43:33][DEBUG] : close.complete [2023-08-18 06:43:33][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-18 06:43:33][DEBUG] : connect_tcp.complete return_value= [2023-08-18 06:43:33][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-18 06:43:33][DEBUG] : start_tls.complete return_value= [2023-08-18 06:43:33][DEBUG] : send_request_headers.started request= [2023-08-18 06:43:33][DEBUG] : send_request_headers.complete [2023-08-18 06:43:33][DEBUG] : send_request_body.started request= [2023-08-18 06:43:33][DEBUG] : send_request_body.complete [2023-08-18 06:43:33][DEBUG] : receive_response_headers.started request= [2023-08-18 06: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'Fri, 18 Aug 2023 06:44:01 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-18 06:43:34][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-18 06:43:34][DEBUG] : receive_response_body.started request= [2023-08-18 06:43:34][DEBUG] : receive_response_body.complete [2023-08-18 06:43:34][DEBUG] : response_closed.started [2023-08-18 06:43:34][DEBUG] : response_closed.complete [2023-08-18 06:43:34][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1692341028, 'wNow': 110, 'whLifetime': 1157078}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1692341041, 'wNow': 134.426, 'whLifetime': 1162059.488, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 452704.461, 'vahLifetime': 1483745.947, 'rmsCurrent': 0.759, 'rmsVoltage': 234.777, 'reactPwr': 63.987, 'apprntPwr': 177.785, 'pwrFactor': 0.69, 'whToday': 114.488, 'whLastSevenDays': 36052.488, 'vahToday': 631.947, 'varhLeadToday': 0.104, 'varhLagToday': 568.461, 'lines': [{'wNow': 134.426, 'whLifetime': 1162059.488, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 452704.461, 'vahLifetime': 1483745.947, 'rmsCurrent': 0.759, 'rmsVoltage': 234.777, 'reactPwr': 63.987, 'apprntPwr': 177.785, 'pwrFactor': 0.69, 'whToday': 114.488, 'whLastSevenDays': 36052.488, 'vahToday': 631.947, 'varhLeadToday': 0.104, 'varhLagToday': 568.461}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1692341041, 'wNow': 456.189, 'whLifetime': 5745473.265, 'varhLeadLifetime': 3938976.078, 'varhLagLifetime': -452418.142, 'vahLifetime': 7011491.229, 'rmsCurrent': 4.298, 'rmsVoltage': 234.927, 'reactPwr': -642.151, 'apprntPwr': 1009.824, 'pwrFactor': 0.45, 'whToday': 2684.265, 'whLastSevenDays': 148.265, 'vahToday': 6713.229, 'varhLeadToday': 5793.078, 'varhLagToday': 0.0, 'lines': [{'wNow': 456.189, 'whLifetime': 5745473.265, 'varhLeadLifetime': 3938976.078, 'varhLagLifetime': -452418.142, 'vahLifetime': 7011491.229, 'rmsCurrent': 4.298, 'rmsVoltage': 234.927, 'reactPwr': -642.151, 'apprntPwr': 1009.824, 'pwrFactor': 0.45, 'whToday': 2684.265, 'whLastSevenDays': 148.265, 'vahToday': 6713.229, 'varhLeadToday': 5793.078, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1692341041, 'wNow': 321.763, 'whLifetime': 4583728.747, 'varhLeadLifetime': 3940126.182, 'varhLagLifetime': 286.319, 'vahLifetime': 7011491.229, 'rmsCurrent': 3.54, 'rmsVoltage': 234.927, 'reactPwr': -706.138, 'apprntPwr': 831.62, 'pwrFactor': 0.39, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 321.763, 'whLifetime': 4583728.747, 'varhLeadLifetime': 3940126.182, 'varhLagLifetime': 286.319, 'vahLifetime': 7011491.229, 'rmsCurrent': 3.54, 'rmsVoltage': 234.927, 'reactPwr': -706.138, 'apprntPwr': 831.62, 'pwrFactor': 0.39, '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-18 06:43:34][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06: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-18 06:43:35][DEBUG] : send_request_headers.started request= [2023-08-18 06:43:35][DEBUG] : send_request_headers.complete [2023-08-18 06:43:35][DEBUG] : send_request_body.started request= [2023-08-18 06:43:35][DEBUG] : send_request_body.complete [2023-08-18 06:43:35][DEBUG] : receive_response_headers.started request= [2023-08-18 06: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'Fri, 18 Aug 2023 06:44:02 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-18 06:43:35][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-18 06:43:35][DEBUG] : receive_response_body.started request= [2023-08-18 06:43:35][DEBUG] : receive_response_body.complete [2023-08-18 06:43:35][DEBUG] : response_closed.started [2023-08-18 06:43:35][DEBUG] : response_closed.complete [2023-08-18 06:43:35][DEBUG] : Recuperation mesures onduleurs2 [2023-08-18 06:43:35][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1692340968, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 255}, {'serialNumber': '482236085940', 'lastReportDate': 1692341028, 'devType': 1, 'lastReportWatts': 31, 'maxReportWatts': 259}, {'serialNumber': '482236085744', 'lastReportDate': 1692340157, 'devType': 1, 'lastReportWatts': 25, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1692340187, 'devType': 1, 'lastReportWatts': 25, 'maxReportWatts': 296}] [2023-08-18 06:43:35][DEBUG] : Recuperation index [2023-08-18 06:43:35][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:43:35][DEBUG] : send_request_headers.started request= [2023-08-18 06:43:35][DEBUG] : send_request_headers.complete [2023-08-18 06:43:35][DEBUG] : send_request_body.started request= [2023-08-18 06:43:35][DEBUG] : send_request_body.complete [2023-08-18 06:43:35][DEBUG] : receive_response_headers.started request= [2023-08-18 06: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-18 06: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'Fri, 18 Aug 2023 06:44:02 GMT'), (b'Content-Length', b'4841'), (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-18 06:43:35][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-18 06:43:35][DEBUG] : receive_response_body.started request= [2023-08-18 06:43:35][DEBUG] : receive_response_body.complete [2023-08-18 06:43:35][DEBUG] : response_closed.started [2023-08-18 06:43:35][DEBUG] : response_closed.complete [2023-08-18 06:43:35][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1692341041, 'actEnergyDlvd': 1162059.528, 'actEnergyRcvd': 16375.349, 'apparentEnergy': 1483746.001, 'reactEnergyLagg': 452704.48, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 133.674, 'activePower': 133.674, 'apparentPower': 177.688, 'reactivePower': 63.958, 'pwrFactor': 0.75, 'voltage': 234.725, 'current': 0.757, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1692341041, 'actEnergyDlvd': 1162059.528, 'actEnergyRcvd': 16375.349, 'apparentEnergy': 1483746.001, 'reactEnergyLagg': 452704.48, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 133.674, 'activePower': 133.674, 'apparentPower': 177.688, 'reactivePower': 63.958, 'pwrFactor': 0.75, 'voltage': 234.725, 'current': 0.757, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1692341041, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7624.277, 'apparentEnergy': 1107.751, 'reactEnergyLagg': 474.266, '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': 1692341041, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 15677.799, 'apparentEnergy': 3477.478, 'reactEnergyLagg': 475.417, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.19, 'activePower': -0.19, 'apparentPower': 0.573, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 4.202, 'current': 0.137, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1692341041, 'actEnergyDlvd': 4728992.593, 'actEnergyRcvd': 145421.233, 'apparentEnergy': 7011491.483, 'reactEnergyLagg': 286.319, 'reactEnergyLead': 3940126.397, 'instantaneousDemand': 321.533, 'activePower': 321.533, 'apparentPower': 831.722, 'reactivePower': -706.926, 'pwrFactor': 0.386, 'voltage': 234.874, 'current': 3.538, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1692341041, 'actEnergyDlvd': 4728992.593, 'actEnergyRcvd': 145421.233, 'apparentEnergy': 7011491.483, 'reactEnergyLagg': 286.319, 'reactEnergyLead': 3940126.397, 'instantaneousDemand': 321.533, 'activePower': 321.533, 'apparentPower': 831.722, 'reactivePower': -706.926, 'pwrFactor': 0.386, 'voltage': 234.874, 'current': 3.538, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1692341041, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5089.864, 'apparentEnergy': 32.953, 'reactEnergyLagg': 440.095, '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': 1692341041, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11526.675, 'apparentEnergy': 16.782, 'reactEnergyLagg': 446.424, 'reactEnergyLead': 0.0, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.111, 'reactivePower': 0.0, 'pwrFactor': 0.0, 'voltage': 0.861, 'current': 0.0, 'freq': 50.0}]}] [2023-08-18 06:43:35][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06: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-18 06:43:50][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-18 06:43:50][INFO] : Test Token [2023-08-18 06:43:50][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-18 06:43:50][DEBUG] : connect_tcp.complete return_value= [2023-08-18 06:43:50][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-18 06:43:50][DEBUG] : start_tls.complete return_value= [2023-08-18 06:43:50][DEBUG] : send_request_headers.started request= [2023-08-18 06:43:50][DEBUG] : send_request_headers.complete [2023-08-18 06:43:50][DEBUG] : send_request_body.started request= [2023-08-18 06:43:50][DEBUG] : send_request_body.complete [2023-08-18 06:43:50][DEBUG] : receive_response_headers.started request= [2023-08-18 06: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'Fri, 18 Aug 2023 06:44:17 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=VUKyLeoAPiHVGNfuHMwXdyeWd3p3gsLK; 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-18 06:43:50][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-18 06:43:50][DEBUG] : receive_response_body.started request= [2023-08-18 06:43:50][DEBUG] : receive_response_body.complete [2023-08-18 06:43:50][DEBUG] : response_closed.started [2023-08-18 06:43:50][DEBUG] : response_closed.complete [2023-08-18 06:43:50][INFO] : Recuperation mesures [2023-08-18 06:43:50][DEBUG] : send_request_headers.started request= [2023-08-18 06:43:50][DEBUG] : send_request_headers.complete [2023-08-18 06:43:50][DEBUG] : send_request_body.started request= [2023-08-18 06:43:50][DEBUG] : send_request_body.complete [2023-08-18 06:43:50][DEBUG] : receive_response_headers.started request= [2023-08-18 06: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'Fri, 18 Aug 2023 06:44: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-18 06:43:51][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-18 06:43:51][DEBUG] : receive_response_body.started request= [2023-08-18 06:43:51][DEBUG] : receive_response_body.complete [2023-08-18 06:43:51][DEBUG] : response_closed.started [2023-08-18 06:43:51][DEBUG] : response_closed.complete [2023-08-18 06:43:51][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1692341028, 'wNow': 110, 'whLifetime': 1157078}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1692341058, 'wNow': 137.36, 'whLifetime': 1162060.174, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 452704.786, 'vahLifetime': 1483746.85, 'rmsCurrent': 0.766, 'rmsVoltage': 234.43, 'reactPwr': 64.423, 'apprntPwr': 179.687, 'pwrFactor': 0.72, 'whToday': 115.174, 'whLastSevenDays': 36053.174, 'vahToday': 632.85, 'varhLeadToday': 0.104, 'varhLagToday': 568.786, 'lines': [{'wNow': 137.36, 'whLifetime': 1162060.174, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 452704.786, 'vahLifetime': 1483746.85, 'rmsCurrent': 0.766, 'rmsVoltage': 234.43, 'reactPwr': 64.423, 'apprntPwr': 179.687, 'pwrFactor': 0.72, 'whToday': 115.174, 'whLastSevenDays': 36053.174, 'vahToday': 632.85, 'varhLeadToday': 0.104, 'varhLagToday': 568.786}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1692341058, 'wNow': 435.041, 'whLifetime': 5745475.477, 'varhLeadLifetime': 3938979.578, 'varhLagLifetime': -452418.467, 'vahLifetime': 7011495.395, 'rmsCurrent': 4.295, 'rmsVoltage': 234.278, 'reactPwr': -619.694, 'apprntPwr': 1006.193, 'pwrFactor': 0.43, 'whToday': 2686.477, 'whLastSevenDays': 150.477, 'vahToday': 6717.395, 'varhLeadToday': 5796.578, 'varhLagToday': 0.0, 'lines': [{'wNow': 435.041, 'whLifetime': 5745475.477, 'varhLeadLifetime': 3938979.578, 'varhLagLifetime': -452418.467, 'vahLifetime': 7011495.395, 'rmsCurrent': 4.295, 'rmsVoltage': 234.278, 'reactPwr': -619.694, 'apprntPwr': 1006.193, 'pwrFactor': 0.43, 'whToday': 2686.477, 'whLastSevenDays': 150.477, 'vahToday': 6717.395, 'varhLeadToday': 5796.578, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1692341058, 'wNow': 297.681, 'whLifetime': 4583730.273, 'varhLeadLifetime': 3940129.682, 'varhLagLifetime': 286.319, 'vahLifetime': 7011495.395, 'rmsCurrent': 3.529, 'rmsVoltage': 234.278, 'reactPwr': -684.117, 'apprntPwr': 826.701, 'pwrFactor': 0.36, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 297.681, 'whLifetime': 4583730.273, 'varhLeadLifetime': 3940129.682, 'varhLagLifetime': 286.319, 'vahLifetime': 7011495.395, 'rmsCurrent': 3.529, 'rmsVoltage': 234.278, 'reactPwr': -684.117, 'apprntPwr': 826.701, 'pwrFactor': 0.36, '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-18 06:43:51][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06: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-18 06:43:52][DEBUG] : send_request_headers.started request= [2023-08-18 06:43:52][DEBUG] : send_request_headers.complete [2023-08-18 06:43:52][DEBUG] : send_request_body.started request= [2023-08-18 06:43:52][DEBUG] : send_request_body.complete [2023-08-18 06:43:52][DEBUG] : receive_response_headers.started request= [2023-08-18 06:43: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'Fri, 18 Aug 2023 06:44:19 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-18 06:43:52][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-18 06:43:52][DEBUG] : receive_response_body.started request= [2023-08-18 06:43:52][DEBUG] : receive_response_body.complete [2023-08-18 06:43:52][DEBUG] : response_closed.started [2023-08-18 06:43:52][DEBUG] : response_closed.complete [2023-08-18 06:43:52][DEBUG] : Recuperation mesures onduleurs [2023-08-18 06:43:52][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1692340968, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 255}, {'serialNumber': '482236085940', 'lastReportDate': 1692341028, 'devType': 1, 'lastReportWatts': 31, 'maxReportWatts': 259}, {'serialNumber': '482236085744', 'lastReportDate': 1692340157, 'devType': 1, 'lastReportWatts': 25, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1692340187, 'devType': 1, 'lastReportWatts': 25, 'maxReportWatts': 296}] [2023-08-18 06:43:52][DEBUG] : Recuperation index [2023-08-18 06:43:52][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:43:52][DEBUG] : send_request_headers.started request= [2023-08-18 06:43:52][DEBUG] : send_request_headers.complete [2023-08-18 06:43:52][DEBUG] : send_request_body.started request= [2023-08-18 06:43:52][DEBUG] : send_request_body.complete [2023-08-18 06:43:52][DEBUG] : receive_response_headers.started request= [2023-08-18 06:43:52][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:43: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'Fri, 18 Aug 2023 06:44:19 GMT'), (b'Content-Length', b'4842'), (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-18 06:43:52][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-18 06:43:52][DEBUG] : receive_response_body.started request= [2023-08-18 06:43:52][DEBUG] : receive_response_body.complete [2023-08-18 06:43:52][DEBUG] : response_closed.started [2023-08-18 06:43:52][DEBUG] : response_closed.complete [2023-08-18 06:43:52][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1692341059, 'actEnergyDlvd': 1162060.216, 'actEnergyRcvd': 16375.349, 'apparentEnergy': 1483746.905, 'reactEnergyLagg': 452704.806, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 137.501, 'activePower': 137.501, 'apparentPower': 179.968, 'reactivePower': 64.648, 'pwrFactor': 0.76, 'voltage': 234.437, 'current': 0.768, 'freq': 50.062, 'channels': [{'eid': 1778385169, 'timestamp': 1692341059, 'actEnergyDlvd': 1162060.216, 'actEnergyRcvd': 16375.349, 'apparentEnergy': 1483746.905, 'reactEnergyLagg': 452704.806, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 137.501, 'activePower': 137.501, 'apparentPower': 179.968, 'reactivePower': 64.648, 'pwrFactor': 0.76, 'voltage': 234.437, 'current': 0.768, 'freq': 50.062}, {'eid': 1778385170, 'timestamp': 1692341059, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7624.283, 'apparentEnergy': 1107.752, 'reactEnergyLagg': 474.266, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.0, 'activePower': -0.0, 'apparentPower': 0.182, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 2.659, 'current': 0.069, 'freq': 50.062}, {'eid': 1778385171, 'timestamp': 1692341059, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 15677.812, 'apparentEnergy': 3477.481, 'reactEnergyLagg': 475.417, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.174, 'activePower': -0.174, 'apparentPower': 0.568, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 4.203, 'current': 0.135, 'freq': 50.062}]}, {'eid': 704643584, 'timestamp': 1692341059, 'actEnergyDlvd': 4728994.124, 'actEnergyRcvd': 145421.233, 'apparentEnergy': 7011495.654, 'reactEnergyLagg': 286.319, 'reactEnergyLead': 3940129.889, 'instantaneousDemand': 320.457, 'activePower': 320.457, 'apparentPower': 836.317, 'reactivePower': -694.893, 'pwrFactor': 0.547, 'voltage': 234.299, 'current': 3.519, 'freq': 50.062, 'channels': [{'eid': 1778385425, 'timestamp': 1692341059, 'actEnergyDlvd': 4728994.124, 'actEnergyRcvd': 145421.233, 'apparentEnergy': 7011495.654, 'reactEnergyLagg': 286.319, 'reactEnergyLead': 3940129.889, 'instantaneousDemand': 320.457, 'activePower': 320.457, 'apparentPower': 836.317, 'reactivePower': -694.893, 'pwrFactor': 0.547, 'voltage': 234.299, 'current': 3.519, 'freq': 50.062}, {'eid': 1778385426, 'timestamp': 1692341059, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5089.867, 'apparentEnergy': 32.953, 'reactEnergyLagg': 440.095, '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': 1692341059, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11526.684, 'apparentEnergy': 16.782, 'reactEnergyLagg': 446.425, '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-18 06:43:52][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:43:52][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:44:04][DEBUG] : Signal 15 caught, exiting... [2023-08-18 06:44:04][DEBUG] : Shutdown [2023-08-18 06:44:04][DEBUG] : Removing PID file /tmp/jeedom/enphasesecur/deamon.pid [2023-08-18 06:44:04][INFO] : Send to jeedom : error arret [2023-08-18 06:44:04][DEBUG] : Exit 0 [2023-08-18 06:44:09][INFO] : Start demond [2023-08-18 06:44:09][INFO] : Log level : debug [2023-08-18 06:44:09][DEBUG] : Socket port : 52207 [2023-08-18 06:44:09][DEBUG] : Socket host : localhost [2023-08-18 06:44:09][DEBUG] : PID file : /tmp/jeedom/enphasesecur/deamon.pid [2023-08-18 06:44:09][DEBUG] : Apikey : wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM [2023-08-18 06:44:09][DEBUG] : Device : auto [2023-08-18 06:44:09][DEBUG] : Callback : http://127.0.0.1:80/plugins/enphasesecur/core/php/jeeenphasesecur.php [2023-08-18 06:44:09][DEBUG] : Delais actualisation : 15 [2023-08-18 06:44:09][INFO] : Adresse IP Passerelle : 192.168.0.70 [2023-08-18 06:44:09][DEBUG] : User : ********* [2023-08-18 06:44:09][DEBUG] : Password : ************* %scream%enphase [2023-08-18 06:44:09][DEBUG] : Numero de serie : 122239084064 [2023-08-18 06:44:09][INFO] : Writing PID 23770 to /tmp/jeedom/enphasesecur/deamon.pid [2023-08-18 06:44:09][INFO] : Init request module v2.31.0 [2023-08-18 06:44:09][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:44:09][DEBUG] : http://127.0.0.1:80 "GET /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 2 [2023-08-18 06:44:24][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-18 06:44:24][INFO] : Recuperation token [2023-08-18 06:44:24][DEBUG] : Starting new HTTPS connection (1): enlighten.enphaseenergy.com:443 [2023-08-18 06:44:27][DEBUG] : https://enlighten.enphaseenergy.com:443 "POST /login/login.json HTTP/1.1" 200 None [2023-08-18 06:44:27][DEBUG] : Starting new HTTPS connection (1): entrez.enphaseenergy.com:443 [2023-08-18 06:44:27][DEBUG] : https://entrez.enphaseenergy.com:443 "POST /tokens HTTP/1.1" 200 None [2023-08-18 06:44:27][DEBUG] : eyJraWQiOiI3ZDEwMDA1ZC03ODk5LTRkMGQtYmNiNC0yNDRmOThlZTE1NmIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJhdWQiOiIxMjIyMzkwODQwNjQiLCJpc3MiOiJFbnRyZXoiLCJlbnBoYXNlVXNlciI6Im93bmVyIiwiZXhwIjoxNzIzODc3MDY3LCJpYXQiOjE2OTIzNDEwNjcsImp0aSI6ImY3OGQ4NDYwLTA0NWItNGI3Yi1hMzY5LTA1OTZlNjUzMDExYyIsInVzZXJuYW1lIjoibV9taWNrYWVsQHlhaG9vLmZyIn0.mXi1PJfGkYstYVqA595DPOUp2hr50-3umSrjNzXliG9STFmmVY2TaeUn1FguQKkLtuV89iWL0kaDp06ABOep5w [2023-08-18 06:44:27][INFO] : Test Token [2023-08-18 06:44:27][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-18 06:44:27][DEBUG] : connect_tcp.complete return_value= [2023-08-18 06:44:27][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-18 06:44:27][DEBUG] : start_tls.complete return_value= [2023-08-18 06:44:27][DEBUG] : send_request_headers.started request= [2023-08-18 06:44:27][DEBUG] : send_request_headers.complete [2023-08-18 06:44:27][DEBUG] : send_request_body.started request= [2023-08-18 06:44:27][DEBUG] : send_request_body.complete [2023-08-18 06:44:27][DEBUG] : receive_response_headers.started request= [2023-08-18 06:44: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'Fri, 18 Aug 2023 06:44:54 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=VEa4gAnspZ8if8rARnhxn0vfeKiq4e3I; 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-18 06:44:27][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-18 06:44:27][DEBUG] : receive_response_body.started request= [2023-08-18 06:44:27][DEBUG] : receive_response_body.complete [2023-08-18 06:44:27][DEBUG] : response_closed.started [2023-08-18 06:44:27][DEBUG] : response_closed.complete [2023-08-18 06:44:27][DEBUG] : Recuperation Inventaire [2023-08-18 06:44:27][DEBUG] : send_request_headers.started request= [2023-08-18 06:44:27][DEBUG] : send_request_headers.complete [2023-08-18 06:44:27][DEBUG] : send_request_body.started request= [2023-08-18 06:44:27][DEBUG] : send_request_body.complete [2023-08-18 06:44:27][DEBUG] : receive_response_headers.started request= [2023-08-18 06:44: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'Fri, 18 Aug 2023 06:44:55 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-18 06:44:28][INFO] : HTTP Request: GET https://192.168.0.70/inventory.json "HTTP/1.1 200 OK" [2023-08-18 06:44:28][DEBUG] : receive_response_body.started request= [2023-08-18 06:44:28][DEBUG] : receive_response_body.complete [2023-08-18 06:44:28][DEBUG] : response_closed.started [2023-08-18 06:44:28][DEBUG] : response_closed.complete [2023-08-18 06:44: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': '1692340970', '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': '1692341030', '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': '1692341061', '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': '1692341090', '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': '1692340217', '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-18 06:44:28][DEBUG] : Attente de 5s [2023-08-18 06:44:28][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:44:28][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:44:33][INFO] : Recuperation mesures [2023-08-18 06:44:33][DEBUG] : close.started [2023-08-18 06:44:33][DEBUG] : close.complete [2023-08-18 06:44:33][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-18 06:44:33][DEBUG] : connect_tcp.complete return_value= [2023-08-18 06:44:33][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-18 06:44:33][DEBUG] : start_tls.complete return_value= [2023-08-18 06:44:33][DEBUG] : send_request_headers.started request= [2023-08-18 06:44:33][DEBUG] : send_request_headers.complete [2023-08-18 06:44:33][DEBUG] : send_request_body.started request= [2023-08-18 06:44:33][DEBUG] : send_request_body.complete [2023-08-18 06:44:33][DEBUG] : receive_response_headers.started request= [2023-08-18 06:44: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'Fri, 18 Aug 2023 06:45:00 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-18 06:44:33][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-18 06:44:33][DEBUG] : receive_response_body.started request= [2023-08-18 06:44:33][DEBUG] : receive_response_body.complete [2023-08-18 06:44:33][DEBUG] : response_closed.started [2023-08-18 06:44:33][DEBUG] : response_closed.complete [2023-08-18 06:44:33][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1692341089, 'wNow': 121, 'whLifetime': 1157093}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1692341100, 'wNow': 139.652, 'whLifetime': 1162061.758, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 452705.522, 'vahLifetime': 1483748.928, 'rmsCurrent': 0.784, 'rmsVoltage': 234.042, 'reactPwr': 64.157, 'apprntPwr': 183.47, 'pwrFactor': 0.76, 'whToday': 116.758, 'whLastSevenDays': 36023.758, 'vahToday': 634.928, 'varhLeadToday': 0.104, 'varhLagToday': 569.522, 'lines': [{'wNow': 139.652, 'whLifetime': 1162061.758, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 452705.522, 'vahLifetime': 1483748.928, 'rmsCurrent': 0.784, 'rmsVoltage': 234.042, 'reactPwr': 64.157, 'apprntPwr': 183.47, 'pwrFactor': 0.76, 'whToday': 116.758, 'whLastSevenDays': 36023.758, 'vahToday': 634.928, 'varhLeadToday': 0.104, 'varhLagToday': 569.522}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1692341100, 'wNow': 852.025, 'whLifetime': 5745482.073, 'varhLeadLifetime': 3938987.4, 'varhLagLifetime': -452419.203, 'vahLifetime': 7011505.915, 'rmsCurrent': 6.136, 'rmsVoltage': 234.193, 'reactPwr': -635.064, 'apprntPwr': 1436.906, 'pwrFactor': 0.59, 'whToday': 2693.073, 'whLastSevenDays': 0.073, 'vahToday': 6727.915, 'varhLeadToday': 5804.4, 'varhLagToday': 0.0, 'lines': [{'wNow': 852.025, 'whLifetime': 5745482.073, 'varhLeadLifetime': 3938987.4, 'varhLagLifetime': -452419.203, 'vahLifetime': 7011505.915, 'rmsCurrent': 6.136, 'rmsVoltage': 234.193, 'reactPwr': -635.064, 'apprntPwr': 1436.906, 'pwrFactor': 0.59, 'whToday': 2693.073, 'whLastSevenDays': 0.073, 'vahToday': 6727.915, 'varhLeadToday': 5804.4, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1692341100, 'wNow': 712.373, 'whLifetime': 4583735.285, 'varhLeadLifetime': 3940137.504, 'varhLagLifetime': 286.319, 'vahLifetime': 7011505.915, 'rmsCurrent': 5.351, 'rmsVoltage': 234.193, 'reactPwr': -699.221, 'apprntPwr': 1253.242, 'pwrFactor': 0.57, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 712.373, 'whLifetime': 4583735.285, 'varhLeadLifetime': 3940137.504, 'varhLagLifetime': 286.319, 'vahLifetime': 7011505.915, 'rmsCurrent': 5.351, 'rmsVoltage': 234.193, 'reactPwr': -699.221, 'apprntPwr': 1253.242, 'pwrFactor': 0.57, '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-18 06:44:33][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:44:33][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:44:34][DEBUG] : send_request_headers.started request= [2023-08-18 06:44:34][DEBUG] : send_request_headers.complete [2023-08-18 06:44:34][DEBUG] : send_request_body.started request= [2023-08-18 06:44:34][DEBUG] : send_request_body.complete [2023-08-18 06:44:34][DEBUG] : receive_response_headers.started request= [2023-08-18 06:44: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'Fri, 18 Aug 2023 06:45:01 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-18 06:44:34][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-18 06:44:34][DEBUG] : receive_response_body.started request= [2023-08-18 06:44:34][DEBUG] : receive_response_body.complete [2023-08-18 06:44:34][DEBUG] : response_closed.started [2023-08-18 06:44:34][DEBUG] : response_closed.complete [2023-08-18 06:44:34][DEBUG] : Recuperation mesures onduleurs2 [2023-08-18 06:44:34][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1692340968, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 255}, {'serialNumber': '482236085940', 'lastReportDate': 1692341028, 'devType': 1, 'lastReportWatts': 31, 'maxReportWatts': 259}, {'serialNumber': '482236085744', 'lastReportDate': 1692341059, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1692341089, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 296}] [2023-08-18 06:44:34][DEBUG] : Recuperation index [2023-08-18 06:44:34][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:44:34][DEBUG] : send_request_headers.started request= [2023-08-18 06:44:34][DEBUG] : send_request_headers.complete [2023-08-18 06:44:34][DEBUG] : send_request_body.started request= [2023-08-18 06:44:34][DEBUG] : send_request_body.complete [2023-08-18 06:44:34][DEBUG] : receive_response_headers.started request= [2023-08-18 06:44: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'Fri, 18 Aug 2023 06:45:01 GMT'), (b'Content-Length', b'4844'), (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-18 06:44:34][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-18 06:44:34][DEBUG] : receive_response_body.started request= [2023-08-18 06:44:34][DEBUG] : receive_response_body.complete [2023-08-18 06:44:34][DEBUG] : response_closed.started [2023-08-18 06:44:34][DEBUG] : response_closed.complete [2023-08-18 06:44:34][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1692341100, 'actEnergyDlvd': 1162061.801, 'actEnergyRcvd': 16375.349, 'apparentEnergy': 1483748.984, 'reactEnergyLagg': 452705.543, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 140.299, 'activePower': 140.299, 'apparentPower': 183.778, 'reactivePower': 64.104, 'pwrFactor': 0.765, 'voltage': 234.352, 'current': 0.783, 'freq': 50.062, 'channels': [{'eid': 1778385169, 'timestamp': 1692341100, 'actEnergyDlvd': 1162061.801, 'actEnergyRcvd': 16375.349, 'apparentEnergy': 1483748.984, 'reactEnergyLagg': 452705.543, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 140.299, 'activePower': 140.299, 'apparentPower': 183.778, 'reactivePower': 64.104, 'pwrFactor': 0.765, 'voltage': 234.352, 'current': 0.783, 'freq': 50.062}, {'eid': 1778385170, 'timestamp': 1692341100, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7624.297, 'apparentEnergy': 1107.754, 'reactEnergyLagg': 474.267, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.046, 'activePower': -0.046, 'apparentPower': 0.181, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 2.658, 'current': 0.067, 'freq': 50.062}, {'eid': 1778385171, 'timestamp': 1692341100, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 15677.841, 'apparentEnergy': 3477.488, 'reactEnergyLagg': 475.418, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.206, 'activePower': -0.206, 'apparentPower': 0.575, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 4.202, 'current': 0.134, 'freq': 50.062}]}, {'eid': 704643584, 'timestamp': 1692341100, 'actEnergyDlvd': 4728999.123, 'actEnergyRcvd': 145421.233, 'apparentEnergy': 7011506.147, 'reactEnergyLagg': 286.319, 'reactEnergyLead': 3940137.698, 'instantaneousDemand': 712.938, 'activePower': 712.938, 'apparentPower': 1092.691, 'reactivePower': -678.589, 'pwrFactor': 0.391, 'voltage': 234.498, 'current': 4.25, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1692341100, 'actEnergyDlvd': 4728999.123, 'actEnergyRcvd': 145421.233, 'apparentEnergy': 7011506.147, 'reactEnergyLagg': 286.319, 'reactEnergyLead': 3940137.698, 'instantaneousDemand': 712.938, 'activePower': 712.938, 'apparentPower': 1092.691, 'reactivePower': -678.589, 'pwrFactor': 0.391, 'voltage': 234.498, 'current': 4.25, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1692341100, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5089.877, 'apparentEnergy': 32.953, 'reactEnergyLagg': 440.097, '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': 1692341100, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11526.706, 'apparentEnergy': 16.782, 'reactEnergyLagg': 446.425, '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-18 06:44:34][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:44:34][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:44:34][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:44:49][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-18 06:44:49][INFO] : Test Token [2023-08-18 06:44:49][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-18 06:44:49][DEBUG] : connect_tcp.complete return_value= [2023-08-18 06:44:49][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-18 06:44:49][DEBUG] : start_tls.complete return_value= [2023-08-18 06:44:49][DEBUG] : send_request_headers.started request= [2023-08-18 06:44:49][DEBUG] : send_request_headers.complete [2023-08-18 06:44:49][DEBUG] : send_request_body.started request= [2023-08-18 06:44:49][DEBUG] : send_request_body.complete [2023-08-18 06:44:49][DEBUG] : receive_response_headers.started request= [2023-08-18 06:44:49][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'Fri, 18 Aug 2023 06: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=VEa4gAnspZ8if8rARnhxn0vfeKiq4e3I; 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-18 06:44:49][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-18 06:44:49][DEBUG] : receive_response_body.started request= [2023-08-18 06:44:49][DEBUG] : receive_response_body.complete [2023-08-18 06:44:49][DEBUG] : response_closed.started [2023-08-18 06:44:49][DEBUG] : response_closed.complete [2023-08-18 06:44:49][INFO] : Recuperation mesures [2023-08-18 06:44:49][DEBUG] : send_request_headers.started request= [2023-08-18 06:44:49][DEBUG] : send_request_headers.complete [2023-08-18 06:44:49][DEBUG] : send_request_body.started request= [2023-08-18 06:44:49][DEBUG] : send_request_body.complete [2023-08-18 06:44:49][DEBUG] : receive_response_headers.started request= [2023-08-18 06:44: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'Fri, 18 Aug 2023 06: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-18 06:44:50][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-18 06:44:50][DEBUG] : receive_response_body.started request= [2023-08-18 06:44:50][DEBUG] : receive_response_body.complete [2023-08-18 06:44:50][DEBUG] : response_closed.started [2023-08-18 06:44:50][DEBUG] : response_closed.complete [2023-08-18 06:44:50][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1692341089, 'wNow': 121, 'whLifetime': 1157093}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1692341117, 'wNow': 141.388, 'whLifetime': 1162062.421, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 452705.825, 'vahLifetime': 1483749.852, 'rmsCurrent': 0.862, 'rmsVoltage': 233.849, 'reactPwr': 64.194, 'apprntPwr': 202.984, 'pwrFactor': 0.72, 'whToday': 117.421, 'whLastSevenDays': 36024.421, 'vahToday': 635.852, 'varhLeadToday': 0.104, 'varhLagToday': 569.825, 'lines': [{'wNow': 141.388, 'whLifetime': 1162062.421, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 452705.825, 'vahLifetime': 1483749.852, 'rmsCurrent': 0.862, 'rmsVoltage': 233.849, 'reactPwr': 64.194, 'apprntPwr': 202.984, 'pwrFactor': 0.72, 'whToday': 117.421, 'whLastSevenDays': 36024.421, 'vahToday': 635.852, 'varhLeadToday': 0.104, 'varhLagToday': 569.825}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1692341117, 'wNow': 1306.303, 'whLifetime': 5745487.129, 'varhLeadLifetime': 3938990.449, 'varhLagLifetime': -452419.506, 'vahLifetime': 7011511.811, 'rmsCurrent': 6.24, 'rmsVoltage': 233.822, 'reactPwr': -555.536, 'apprntPwr': 1459.152, 'pwrFactor': 0.9, 'whToday': 2698.129, 'whLastSevenDays': 5.129, 'vahToday': 6733.811, 'varhLeadToday': 5807.449, 'varhLagToday': 0.0, 'lines': [{'wNow': 1306.303, 'whLifetime': 5745487.129, 'varhLeadLifetime': 3938990.449, 'varhLagLifetime': -452419.506, 'vahLifetime': 7011511.811, 'rmsCurrent': 6.24, 'rmsVoltage': 233.822, 'reactPwr': -555.536, 'apprntPwr': 1459.152, 'pwrFactor': 0.9, 'whToday': 2698.129, 'whLastSevenDays': 5.129, 'vahToday': 6733.811, 'varhLeadToday': 5807.449, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1692341117, 'wNow': 1164.915, 'whLifetime': 4583739.678, 'varhLeadLifetime': 3940140.553, 'varhLagLifetime': 286.319, 'vahLifetime': 7011511.811, 'rmsCurrent': 5.378, 'rmsVoltage': 233.822, 'reactPwr': -619.73, 'apprntPwr': 1257.603, 'pwrFactor': 0.93, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 1164.915, 'whLifetime': 4583739.678, 'varhLeadLifetime': 3940140.553, 'varhLagLifetime': 286.319, 'vahLifetime': 7011511.811, 'rmsCurrent': 5.378, 'rmsVoltage': 233.822, 'reactPwr': -619.73, 'apprntPwr': 1257.603, 'pwrFactor': 0.93, '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-18 06:44:50][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:44:50][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:44:51][DEBUG] : send_request_headers.started request= [2023-08-18 06:44:51][DEBUG] : send_request_headers.complete [2023-08-18 06:44:51][DEBUG] : send_request_body.started request= [2023-08-18 06:44:51][DEBUG] : send_request_body.complete [2023-08-18 06:44:51][DEBUG] : receive_response_headers.started request= [2023-08-18 06:44: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'Fri, 18 Aug 2023 06:45:18 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-18 06:44:51][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-18 06:44:51][DEBUG] : receive_response_body.started request= [2023-08-18 06:44:51][DEBUG] : receive_response_body.complete [2023-08-18 06:44:51][DEBUG] : response_closed.started [2023-08-18 06:44:51][DEBUG] : response_closed.complete [2023-08-18 06:44:51][DEBUG] : Recuperation mesures onduleurs [2023-08-18 06:44:51][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1692340968, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 255}, {'serialNumber': '482236085940', 'lastReportDate': 1692341028, 'devType': 1, 'lastReportWatts': 31, 'maxReportWatts': 259}, {'serialNumber': '482236085744', 'lastReportDate': 1692341059, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1692341089, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 296}] [2023-08-18 06:44:51][DEBUG] : Recuperation index [2023-08-18 06:44:51][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:44:51][DEBUG] : send_request_headers.started request= [2023-08-18 06:44:51][DEBUG] : send_request_headers.complete [2023-08-18 06:44:51][DEBUG] : send_request_body.started request= [2023-08-18 06:44:51][DEBUG] : send_request_body.complete [2023-08-18 06:44:51][DEBUG] : receive_response_headers.started request= [2023-08-18 06:44:51][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:44: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'Fri, 18 Aug 2023 06:45:18 GMT'), (b'Content-Length', b'4848'), (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-18 06:44:51][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-18 06:44:51][DEBUG] : receive_response_body.started request= [2023-08-18 06:44:51][DEBUG] : receive_response_body.complete [2023-08-18 06:44:51][DEBUG] : response_closed.started [2023-08-18 06:44:51][DEBUG] : response_closed.complete [2023-08-18 06:44:51][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1692341117, 'actEnergyDlvd': 1162062.46, 'actEnergyRcvd': 16375.349, 'apparentEnergy': 1483749.909, 'reactEnergyLagg': 452705.843, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 139.778, 'activePower': 139.778, 'apparentPower': 202.665, 'reactivePower': 63.555, 'pwrFactor': 0.6, 'voltage': 233.725, 'current': 0.888, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1692341117, 'actEnergyDlvd': 1162062.46, 'actEnergyRcvd': 16375.349, 'apparentEnergy': 1483749.909, 'reactEnergyLagg': 452705.843, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 139.778, 'activePower': 139.778, 'apparentPower': 202.665, 'reactivePower': 63.555, 'pwrFactor': 0.6, 'voltage': 233.725, 'current': 0.888, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1692341117, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7624.303, 'apparentEnergy': 1107.755, 'reactEnergyLagg': 474.268, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.044, 'activePower': -0.044, 'apparentPower': 0.189, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 2.659, 'current': 0.073, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1692341117, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 15677.853, 'apparentEnergy': 3477.49, 'reactEnergyLagg': 475.418, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.21, 'activePower': -0.21, 'apparentPower': 0.575, 'reactivePower': 0.058, 'pwrFactor': -1.0, 'voltage': 4.203, 'current': 0.136, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1692341117, 'actEnergyDlvd': 4729003.899, 'actEnergyRcvd': 145421.233, 'apparentEnergy': 7011512.318, 'reactEnergyLagg': 286.319, 'reactEnergyLead': 3940140.731, 'instantaneousDemand': 1193.979, 'activePower': 1193.979, 'apparentPower': 1450.615, 'reactivePower': -638.987, 'pwrFactor': 0.913, 'voltage': 233.729, 'current': 5.727, 'freq': 50.062, 'channels': [{'eid': 1778385425, 'timestamp': 1692341117, 'actEnergyDlvd': 4729003.899, 'actEnergyRcvd': 145421.233, 'apparentEnergy': 7011512.318, 'reactEnergyLagg': 286.319, 'reactEnergyLead': 3940140.731, 'instantaneousDemand': 1193.979, 'activePower': 1193.979, 'apparentPower': 1450.615, 'reactivePower': -638.987, 'pwrFactor': 0.913, 'voltage': 233.729, 'current': 5.727, 'freq': 50.062}, {'eid': 1778385426, 'timestamp': 1692341117, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5089.881, 'apparentEnergy': 32.953, 'reactEnergyLagg': 440.097, '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': 1692341117, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11526.715, 'apparentEnergy': 16.782, 'reactEnergyLagg': 446.425, '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-18 06:44:51][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:44:51][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:45:06][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-18 06:45:06][INFO] : Test Token [2023-08-18 06:45:07][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-18 06:45:07][DEBUG] : connect_tcp.complete return_value= [2023-08-18 06:45:07][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-18 06:45:07][DEBUG] : start_tls.complete return_value= [2023-08-18 06:45:07][DEBUG] : send_request_headers.started request= [2023-08-18 06:45:07][DEBUG] : send_request_headers.complete [2023-08-18 06:45:07][DEBUG] : send_request_body.started request= [2023-08-18 06:45:07][DEBUG] : send_request_body.complete [2023-08-18 06:45:07][DEBUG] : receive_response_headers.started request= [2023-08-18 06:45:07][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'Fri, 18 Aug 2023 06:45:34 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=VEa4gAnspZ8if8rARnhxn0vfeKiq4e3I; 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-18 06:45:07][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-18 06:45:07][DEBUG] : receive_response_body.started request= [2023-08-18 06:45:07][DEBUG] : receive_response_body.complete [2023-08-18 06:45:07][DEBUG] : response_closed.started [2023-08-18 06:45:07][DEBUG] : response_closed.complete [2023-08-18 06:45:07][INFO] : Recuperation mesures [2023-08-18 06:45:07][DEBUG] : send_request_headers.started request= [2023-08-18 06:45:07][DEBUG] : send_request_headers.complete [2023-08-18 06:45:07][DEBUG] : send_request_body.started request= [2023-08-18 06:45:07][DEBUG] : send_request_body.complete [2023-08-18 06:45:07][DEBUG] : receive_response_headers.started request= [2023-08-18 06:45:08][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'Fri, 18 Aug 2023 06:45:35 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-18 06:45:08][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-18 06:45:08][DEBUG] : receive_response_body.started request= [2023-08-18 06:45:08][DEBUG] : receive_response_body.complete [2023-08-18 06:45:08][DEBUG] : response_closed.started [2023-08-18 06:45:08][DEBUG] : response_closed.complete [2023-08-18 06:45:08][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1692341120, 'wNow': 121, 'whLifetime': 1157093}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1692341135, 'wNow': 143.429, 'whLifetime': 1162063.12, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 452706.145, 'vahLifetime': 1483750.863, 'rmsCurrent': 0.892, 'rmsVoltage': 235.318, 'reactPwr': 64.558, 'apprntPwr': 205.563, 'pwrFactor': 0.66, 'whToday': 118.12, 'whLastSevenDays': 36025.12, 'vahToday': 636.863, 'varhLeadToday': 0.104, 'varhLagToday': 570.145, 'lines': [{'wNow': 143.429, 'whLifetime': 1162063.12, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 452706.145, 'vahLifetime': 1483750.863, 'rmsCurrent': 0.892, 'rmsVoltage': 235.318, 'reactPwr': 64.558, 'apprntPwr': 205.563, 'pwrFactor': 0.66, 'whToday': 118.12, 'whLastSevenDays': 36025.12, 'vahToday': 636.863, 'varhLeadToday': 0.104, 'varhLagToday': 570.145}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1692341135, 'wNow': 411.587, 'whLifetime': 5745491.904, 'varhLeadLifetime': 3938993.729, 'varhLagLifetime': -452419.825, 'vahLifetime': 7011517.766, 'rmsCurrent': 4.292, 'rmsVoltage': 235.211, 'reactPwr': -626.635, 'apprntPwr': 1009.515, 'pwrFactor': 0.41, 'whToday': 2702.904, 'whLastSevenDays': 9.904, 'vahToday': 6739.766, 'varhLeadToday': 5810.729, 'varhLagToday': 0.0, 'lines': [{'wNow': 411.587, 'whLifetime': 5745491.904, 'varhLeadLifetime': 3938993.729, 'varhLagLifetime': -452419.825, 'vahLifetime': 7011517.766, 'rmsCurrent': 4.292, 'rmsVoltage': 235.211, 'reactPwr': -626.635, 'apprntPwr': 1009.515, 'pwrFactor': 0.41, 'whToday': 2702.904, 'whLastSevenDays': 9.904, 'vahToday': 6739.766, 'varhLeadToday': 5810.729, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1692341135, 'wNow': 268.158, 'whLifetime': 4583743.754, 'varhLeadLifetime': 3940143.833, 'varhLagLifetime': 286.319, 'vahLifetime': 7011517.766, 'rmsCurrent': 3.4, 'rmsVoltage': 235.211, 'reactPwr': -691.193, 'apprntPwr': 799.6, 'pwrFactor': 0.34, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 268.158, 'whLifetime': 4583743.754, 'varhLeadLifetime': 3940143.833, 'varhLagLifetime': 286.319, 'vahLifetime': 7011517.766, 'rmsCurrent': 3.4, 'rmsVoltage': 235.211, 'reactPwr': -691.193, 'apprntPwr': 799.6, 'pwrFactor': 0.34, '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-18 06:45:09][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:45:09][DEBUG] : send_request_headers.started request= [2023-08-18 06:45:09][DEBUG] : send_request_headers.complete [2023-08-18 06:45:09][DEBUG] : send_request_body.started request= [2023-08-18 06:45:09][DEBUG] : send_request_body.complete [2023-08-18 06:45:09][DEBUG] : receive_response_headers.started request= [2023-08-18 06:45:09][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'Fri, 18 Aug 2023 06:45:36 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-18 06:45:09][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-18 06:45:09][DEBUG] : receive_response_body.started request= [2023-08-18 06:45:09][DEBUG] : receive_response_body.complete [2023-08-18 06:45:09][DEBUG] : response_closed.started [2023-08-18 06:45:09][DEBUG] : response_closed.complete [2023-08-18 06:45:09][DEBUG] : Recuperation mesures onduleurs [2023-08-18 06:45:09][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1692340968, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 255}, {'serialNumber': '482236085940', 'lastReportDate': 1692341028, 'devType': 1, 'lastReportWatts': 31, 'maxReportWatts': 259}, {'serialNumber': '482236085744', 'lastReportDate': 1692341059, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1692341089, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 296}] [2023-08-18 06:45:09][DEBUG] : Recuperation index [2023-08-18 06:45:09][DEBUG] : send_request_headers.started request= [2023-08-18 06:45:09][DEBUG] : send_request_headers.complete [2023-08-18 06:45:09][DEBUG] : send_request_body.started request= [2023-08-18 06:45:09][DEBUG] : send_request_body.complete [2023-08-18 06:45:09][DEBUG] : receive_response_headers.started request= [2023-08-18 06:45:09][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:45:09][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'Fri, 18 Aug 2023 06:45:36 GMT'), (b'Content-Length', b'4842'), (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-18 06:45:09][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-18 06:45:09][DEBUG] : receive_response_body.started request= [2023-08-18 06:45:09][DEBUG] : receive_response_body.complete [2023-08-18 06:45:09][DEBUG] : response_closed.started [2023-08-18 06:45:09][DEBUG] : response_closed.complete [2023-08-18 06:45:09][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1692341136, 'actEnergyDlvd': 1162063.207, 'actEnergyRcvd': 16375.349, 'apparentEnergy': 1483750.986, 'reactEnergyLagg': 452706.184, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 143.573, 'activePower': 143.573, 'apparentPower': 205.326, 'reactivePower': 65.444, 'pwrFactor': 0.8, 'voltage': 235.268, 'current': 0.85, 'freq': 50.125, 'channels': [{'eid': 1778385169, 'timestamp': 1692341136, 'actEnergyDlvd': 1162063.207, 'actEnergyRcvd': 16375.349, 'apparentEnergy': 1483750.986, 'reactEnergyLagg': 452706.184, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 143.573, 'activePower': 143.573, 'apparentPower': 205.326, 'reactivePower': 65.444, 'pwrFactor': 0.8, 'voltage': 235.268, 'current': 0.85, 'freq': 50.125}, {'eid': 1778385170, 'timestamp': 1692341136, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7624.31, 'apparentEnergy': 1107.756, 'reactEnergyLagg': 474.268, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.048, 'activePower': -0.048, 'apparentPower': 0.185, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 2.658, 'current': 0.071, 'freq': 50.125}, {'eid': 1778385171, 'timestamp': 1692341136, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 15677.867, 'apparentEnergy': 3477.493, 'reactEnergyLagg': 475.419, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.282, 'activePower': -0.282, 'apparentPower': 0.572, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 4.202, 'current': 0.137, 'freq': 50.125}]}, {'eid': 704643584, 'timestamp': 1692341136, 'actEnergyDlvd': 4729007.657, 'actEnergyRcvd': 145421.233, 'apparentEnergy': 7011518.254, 'reactEnergyLagg': 286.319, 'reactEnergyLead': 3940144.26, 'instantaneousDemand': 252.727, 'activePower': 252.727, 'apparentPower': 798.145, 'reactivePower': -697.208, 'pwrFactor': 0.315, 'voltage': 235.209, 'current': 3.389, 'freq': 50.125, 'channels': [{'eid': 1778385425, 'timestamp': 1692341136, 'actEnergyDlvd': 4729007.657, 'actEnergyRcvd': 145421.233, 'apparentEnergy': 7011518.254, 'reactEnergyLagg': 286.319, 'reactEnergyLead': 3940144.26, 'instantaneousDemand': 252.727, 'activePower': 252.727, 'apparentPower': 798.145, 'reactivePower': -697.208, 'pwrFactor': 0.315, 'voltage': 235.209, 'current': 3.389, 'freq': 50.125}, {'eid': 1778385426, 'timestamp': 1692341136, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5089.885, 'apparentEnergy': 32.953, 'reactEnergyLagg': 440.097, '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': 1692341136, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11526.724, 'apparentEnergy': 16.782, 'reactEnergyLagg': 446.426, '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.125}]}] [2023-08-18 06:45:09][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:45:09][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:45:10][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:45:10][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:45:10][DEBUG] : Signal 15 caught, exiting... [2023-08-18 06:45:10][DEBUG] : Shutdown [2023-08-18 06:45:10][DEBUG] : Removing PID file /tmp/jeedom/enphasesecur/deamon.pid [2023-08-18 06:45:10][INFO] : Send to jeedom : error arret [2023-08-18 06:45:10][DEBUG] : Exit 0 [2023-08-18 06:45:14][INFO] : Start demond [2023-08-18 06:45:14][INFO] : Log level : debug [2023-08-18 06:45:14][DEBUG] : Socket port : 17797 [2023-08-18 06:45:14][DEBUG] : Socket host : localhost [2023-08-18 06:45:14][DEBUG] : PID file : /tmp/jeedom/enphasesecur/deamon.pid [2023-08-18 06:45:14][DEBUG] : Apikey : wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM [2023-08-18 06:45:14][DEBUG] : Device : auto [2023-08-18 06:45:14][DEBUG] : Callback : http://127.0.0.1:80/plugins/enphasesecur/core/php/jeeenphasesecur.php [2023-08-18 06:45:14][DEBUG] : Delais actualisation : 15 [2023-08-18 06:45:14][INFO] : Adresse IP Passerelle : 192.168.0.70 [2023-08-18 06:45:14][DEBUG] : User : ********* [2023-08-18 06:45:14][DEBUG] : Password : ************* %scream%enphase [2023-08-18 06:45:14][DEBUG] : Numero de serie : 122239084064 [2023-08-18 06:45:14][INFO] : Writing PID 25959 to /tmp/jeedom/enphasesecur/deamon.pid [2023-08-18 06:45:14][INFO] : Init request module v2.31.0 [2023-08-18 06:45:14][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:45:14][DEBUG] : http://127.0.0.1:80 "GET /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 2 [2023-08-18 06:45:29][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-18 06:45:29][INFO] : Recuperation token [2023-08-18 06:45:29][DEBUG] : Starting new HTTPS connection (1): enlighten.enphaseenergy.com:443 [2023-08-18 06:45:32][DEBUG] : https://enlighten.enphaseenergy.com:443 "POST /login/login.json HTTP/1.1" 200 None [2023-08-18 06:45:32][DEBUG] : Starting new HTTPS connection (1): entrez.enphaseenergy.com:443 [2023-08-18 06:45:33][DEBUG] : https://entrez.enphaseenergy.com:443 "POST /tokens HTTP/1.1" 200 None [2023-08-18 06:45:33][DEBUG] : eyJraWQiOiI3ZDEwMDA1ZC03ODk5LTRkMGQtYmNiNC0yNDRmOThlZTE1NmIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJhdWQiOiIxMjIyMzkwODQwNjQiLCJpc3MiOiJFbnRyZXoiLCJlbnBoYXNlVXNlciI6Im93bmVyIiwiZXhwIjoxNzIzODc3MTMzLCJpYXQiOjE2OTIzNDExMzMsImp0aSI6ImExY2ZlNGE3LTg5YzAtNGJmNC1iZTE1LTdjMGM4NjJmZTdjMSIsInVzZXJuYW1lIjoibV9taWNrYWVsQHlhaG9vLmZyIn0.zaMaIcHvW8V8E34JwE1YdTi2DXhimKfBUVMYLM9AH1asxSgxEolJOzKI1C3Gt3hMIs8QMBVljJ9dXZ6gA2LGCQ [2023-08-18 06:45:33][INFO] : Test Token [2023-08-18 06:45:33][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-18 06:45:33][DEBUG] : connect_tcp.complete return_value= [2023-08-18 06:45:33][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-18 06:45:33][DEBUG] : start_tls.complete return_value= [2023-08-18 06:45:33][DEBUG] : send_request_headers.started request= [2023-08-18 06:45:33][DEBUG] : send_request_headers.complete [2023-08-18 06:45:33][DEBUG] : send_request_body.started request= [2023-08-18 06:45:33][DEBUG] : send_request_body.complete [2023-08-18 06:45:33][DEBUG] : receive_response_headers.started request= [2023-08-18 06:45: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'Fri, 18 Aug 2023 06:46:00 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=gyQWX1usJp7XvE2jtoyUMXd98ebdYHa4; 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-18 06:45:33][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-18 06:45:33][DEBUG] : receive_response_body.started request= [2023-08-18 06:45:33][DEBUG] : receive_response_body.complete [2023-08-18 06:45:33][DEBUG] : response_closed.started [2023-08-18 06:45:33][DEBUG] : response_closed.complete [2023-08-18 06:45:33][DEBUG] : Recuperation Inventaire [2023-08-18 06:45:33][DEBUG] : send_request_headers.started request= [2023-08-18 06:45:33][DEBUG] : send_request_headers.complete [2023-08-18 06:45:33][DEBUG] : send_request_body.started request= [2023-08-18 06:45:33][DEBUG] : send_request_body.complete [2023-08-18 06:45:33][DEBUG] : receive_response_headers.started request= [2023-08-18 06:45: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'Fri, 18 Aug 2023 06:46:01 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-18 06:45:34][INFO] : HTTP Request: GET https://192.168.0.70/inventory.json "HTTP/1.1 200 OK" [2023-08-18 06:45:34][DEBUG] : receive_response_body.started request= [2023-08-18 06:45:34][DEBUG] : receive_response_body.complete [2023-08-18 06:45:34][DEBUG] : response_closed.started [2023-08-18 06:45:34][DEBUG] : response_closed.complete [2023-08-18 06:45: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': '1692340970', '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': '1692341030', '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': '1692341061', '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': '1692341090', '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': '1692341120', '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-18 06:45:34][DEBUG] : Attente de 5s [2023-08-18 06:45:34][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:45:34][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:45:39][INFO] : Recuperation mesures [2023-08-18 06:45:39][DEBUG] : close.started [2023-08-18 06:45:39][DEBUG] : close.complete [2023-08-18 06:45:39][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-18 06:45:39][DEBUG] : connect_tcp.complete return_value= [2023-08-18 06:45:39][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-18 06:45:39][DEBUG] : start_tls.complete return_value= [2023-08-18 06:45:39][DEBUG] : send_request_headers.started request= [2023-08-18 06:45:39][DEBUG] : send_request_headers.complete [2023-08-18 06:45:39][DEBUG] : send_request_body.started request= [2023-08-18 06:45:39][DEBUG] : send_request_body.complete [2023-08-18 06:45:39][DEBUG] : receive_response_headers.started request= [2023-08-18 06:45: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'Fri, 18 Aug 2023 06:46:06 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-18 06:45:39][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-18 06:45:39][DEBUG] : receive_response_body.started request= [2023-08-18 06:45:39][DEBUG] : receive_response_body.complete [2023-08-18 06:45:39][DEBUG] : response_closed.started [2023-08-18 06:45:39][DEBUG] : response_closed.complete [2023-08-18 06:45:39][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1692341120, 'wNow': 121, 'whLifetime': 1157093}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1692341166, 'wNow': 143.713, 'whLifetime': 1162064.389, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 452706.721, 'vahLifetime': 1483752.693, 'rmsCurrent': 0.858, 'rmsVoltage': 235.474, 'reactPwr': 65.499, 'apprntPwr': 207.04, 'pwrFactor': 0.77, 'whToday': 119.389, 'whLastSevenDays': 36026.389, 'vahToday': 638.693, 'varhLeadToday': 0.104, 'varhLagToday': 570.721, 'lines': [{'wNow': 143.713, 'whLifetime': 1162064.389, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 452706.721, 'vahLifetime': 1483752.693, 'rmsCurrent': 0.858, 'rmsVoltage': 235.474, 'reactPwr': 65.499, 'apprntPwr': 207.04, 'pwrFactor': 0.77, 'whToday': 119.389, 'whLastSevenDays': 36026.389, 'vahToday': 638.693, 'varhLeadToday': 0.104, 'varhLagToday': 570.721}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1692341166, 'wNow': 474.838, 'whLifetime': 5745495.651, 'varhLeadLifetime': 3938999.931, 'varhLagLifetime': -452420.402, 'vahLifetime': 7011525.048, 'rmsCurrent': 4.447, 'rmsVoltage': 235.408, 'reactPwr': -635.294, 'apprntPwr': 1046.759, 'pwrFactor': 0.45, 'whToday': 2706.651, 'whLastSevenDays': 13.651, 'vahToday': 6747.048, 'varhLeadToday': 5816.931, 'varhLagToday': 0.0, 'lines': [{'wNow': 474.838, 'whLifetime': 5745495.651, 'varhLeadLifetime': 3938999.931, 'varhLagLifetime': -452420.402, 'vahLifetime': 7011525.048, 'rmsCurrent': 4.447, 'rmsVoltage': 235.408, 'reactPwr': -635.294, 'apprntPwr': 1046.759, 'pwrFactor': 0.45, 'whToday': 2706.651, 'whLastSevenDays': 13.651, 'vahToday': 6747.048, 'varhLeadToday': 5816.931, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1692341166, 'wNow': 331.125, 'whLifetime': 4583746.232, 'varhLeadLifetime': 3940150.035, 'varhLagLifetime': 286.319, 'vahLifetime': 7011525.048, 'rmsCurrent': 3.589, 'rmsVoltage': 235.408, 'reactPwr': -700.793, 'apprntPwr': 844.806, 'pwrFactor': 0.39, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 331.125, 'whLifetime': 4583746.232, 'varhLeadLifetime': 3940150.035, 'varhLagLifetime': 286.319, 'vahLifetime': 7011525.048, 'rmsCurrent': 3.589, 'rmsVoltage': 235.408, 'reactPwr': -700.793, 'apprntPwr': 844.806, 'pwrFactor': 0.39, '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-18 06:45:39][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:45:40][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:45:40][DEBUG] : send_request_headers.started request= [2023-08-18 06:45:40][DEBUG] : send_request_headers.complete [2023-08-18 06:45:40][DEBUG] : send_request_body.started request= [2023-08-18 06:45:40][DEBUG] : send_request_body.complete [2023-08-18 06:45:40][DEBUG] : receive_response_headers.started request= [2023-08-18 06:45: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'Fri, 18 Aug 2023 06:46:07 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-18 06:45:40][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-18 06:45:40][DEBUG] : receive_response_body.started request= [2023-08-18 06:45:40][DEBUG] : receive_response_body.complete [2023-08-18 06:45:40][DEBUG] : response_closed.started [2023-08-18 06:45:40][DEBUG] : response_closed.complete [2023-08-18 06:45:40][DEBUG] : Recuperation mesures onduleurs2 [2023-08-18 06:45:40][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1692340968, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 255}, {'serialNumber': '482236085940', 'lastReportDate': 1692341028, 'devType': 1, 'lastReportWatts': 31, 'maxReportWatts': 259}, {'serialNumber': '482236085744', 'lastReportDate': 1692341059, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1692341089, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 296}] [2023-08-18 06:45:40][DEBUG] : Recuperation index [2023-08-18 06:45:40][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:45:40][DEBUG] : send_request_headers.started request= [2023-08-18 06:45:40][DEBUG] : send_request_headers.complete [2023-08-18 06:45:40][DEBUG] : send_request_body.started request= [2023-08-18 06:45:40][DEBUG] : send_request_body.complete [2023-08-18 06:45:40][DEBUG] : receive_response_headers.started request= [2023-08-18 06:45:40][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:45: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'Fri, 18 Aug 2023 06:46:07 GMT'), (b'Content-Length', b'4844'), (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-18 06:45:40][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-18 06:45:40][DEBUG] : receive_response_body.started request= [2023-08-18 06:45:40][DEBUG] : receive_response_body.complete [2023-08-18 06:45:40][DEBUG] : response_closed.started [2023-08-18 06:45:40][DEBUG] : response_closed.complete [2023-08-18 06:45:40][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1692341167, 'actEnergyDlvd': 1162064.429, 'actEnergyRcvd': 16375.349, 'apparentEnergy': 1483752.753, 'reactEnergyLagg': 452706.74, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 143.777, 'activePower': 143.777, 'apparentPower': 206.71, 'reactivePower': 65.487, 'pwrFactor': 0.633, 'voltage': 235.365, 'current': 0.892, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1692341167, 'actEnergyDlvd': 1162064.429, 'actEnergyRcvd': 16375.349, 'apparentEnergy': 1483752.753, 'reactEnergyLagg': 452706.74, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 143.777, 'activePower': 143.777, 'apparentPower': 206.71, 'reactivePower': 65.487, 'pwrFactor': 0.633, 'voltage': 235.365, 'current': 0.892, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1692341167, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7624.32, 'apparentEnergy': 1107.758, 'reactEnergyLagg': 474.269, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.019, 'activePower': -0.019, 'apparentPower': 0.184, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 2.658, 'current': 0.07, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1692341167, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 15677.889, 'apparentEnergy': 3477.499, 'reactEnergyLagg': 475.419, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.228, 'activePower': -0.228, 'apparentPower': 0.569, 'reactivePower': -0.0, 'pwrFactor': -1.0, 'voltage': 4.202, 'current': 0.136, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1692341167, 'actEnergyDlvd': 4729010.059, 'actEnergyRcvd': 145421.233, 'apparentEnergy': 7011525.275, 'reactEnergyLagg': 286.319, 'reactEnergyLead': 3940150.231, 'instantaneousDemand': 304.079, 'activePower': 304.079, 'apparentPower': 835.678, 'reactivePower': -700.993, 'pwrFactor': 0.333, 'voltage': 235.339, 'current': 3.606, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1692341167, 'actEnergyDlvd': 4729010.059, 'actEnergyRcvd': 145421.233, 'apparentEnergy': 7011525.275, 'reactEnergyLagg': 286.319, 'reactEnergyLead': 3940150.231, 'instantaneousDemand': 304.079, 'activePower': 304.079, 'apparentPower': 835.678, 'reactivePower': -700.993, 'pwrFactor': 0.333, 'voltage': 235.339, 'current': 3.606, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1692341167, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5089.893, 'apparentEnergy': 32.953, 'reactEnergyLagg': 440.098, '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': 1692341167, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11526.74, 'apparentEnergy': 16.782, 'reactEnergyLagg': 446.426, '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-18 06:45:40][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:45:40][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:45:55][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-18 06:45:55][INFO] : Test Token [2023-08-18 06:45:55][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-18 06:45:55][DEBUG] : connect_tcp.complete return_value= [2023-08-18 06:45:55][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-18 06:45:56][DEBUG] : start_tls.complete return_value= [2023-08-18 06:45:56][DEBUG] : send_request_headers.started request= [2023-08-18 06:45:56][DEBUG] : send_request_headers.complete [2023-08-18 06:45:56][DEBUG] : send_request_body.started request= [2023-08-18 06:45:56][DEBUG] : send_request_body.complete [2023-08-18 06:45:56][DEBUG] : receive_response_headers.started request= [2023-08-18 06:45: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'Fri, 18 Aug 2023 06:46:23 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=gyQWX1usJp7XvE2jtoyUMXd98ebdYHa4; 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-18 06:45:56][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-18 06:45:56][DEBUG] : receive_response_body.started request= [2023-08-18 06:45:56][DEBUG] : receive_response_body.complete [2023-08-18 06:45:56][DEBUG] : response_closed.started [2023-08-18 06:45:56][DEBUG] : response_closed.complete [2023-08-18 06:45:56][INFO] : Recuperation mesures [2023-08-18 06:45:56][DEBUG] : send_request_headers.started request= [2023-08-18 06:45:56][DEBUG] : send_request_headers.complete [2023-08-18 06:45:56][DEBUG] : send_request_body.started request= [2023-08-18 06:45:56][DEBUG] : send_request_body.complete [2023-08-18 06:45:56][DEBUG] : receive_response_headers.started request= [2023-08-18 06:45: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'Fri, 18 Aug 2023 06:46: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-18 06:45:56][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-18 06:45:56][DEBUG] : receive_response_body.started request= [2023-08-18 06:45:56][DEBUG] : receive_response_body.complete [2023-08-18 06:45:56][DEBUG] : response_closed.started [2023-08-18 06:45:56][DEBUG] : response_closed.complete [2023-08-18 06:45:56][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1692341120, 'wNow': 121, 'whLifetime': 1157093}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1692341183, 'wNow': 142.815, 'whLifetime': 1162065.016, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 452707.004, 'vahLifetime': 1483753.603, 'rmsCurrent': 0.892, 'rmsVoltage': 234.289, 'reactPwr': 64.204, 'apprntPwr': 206.104, 'pwrFactor': 0.65, 'whToday': 120.016, 'whLastSevenDays': 36027.016, 'vahToday': 639.603, 'varhLeadToday': 0.104, 'varhLagToday': 571.004, 'lines': [{'wNow': 142.815, 'whLifetime': 1162065.016, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 452707.004, 'vahLifetime': 1483753.603, 'rmsCurrent': 0.892, 'rmsVoltage': 234.289, 'reactPwr': 64.204, 'apprntPwr': 206.104, 'pwrFactor': 0.65, 'whToday': 120.016, 'whLastSevenDays': 36027.016, 'vahToday': 639.603, 'varhLeadToday': 0.104, 'varhLagToday': 571.004}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1692341183, 'wNow': 443.455, 'whLifetime': 5745498.09, 'varhLeadLifetime': 3939003.001, 'varhLagLifetime': -452420.684, 'vahLifetime': 7011529.036, 'rmsCurrent': 4.399, 'rmsVoltage': 234.223, 'reactPwr': -636.284, 'apprntPwr': 1030.296, 'pwrFactor': 0.43, 'whToday': 2709.09, 'whLastSevenDays': 16.09, 'vahToday': 6751.036, 'varhLeadToday': 5820.001, 'varhLagToday': 0.0, 'lines': [{'wNow': 443.455, 'whLifetime': 5745498.09, 'varhLeadLifetime': 3939003.001, 'varhLagLifetime': -452420.684, 'vahLifetime': 7011529.036, 'rmsCurrent': 4.399, 'rmsVoltage': 234.223, 'reactPwr': -636.284, 'apprntPwr': 1030.296, 'pwrFactor': 0.43, 'whToday': 2709.09, 'whLastSevenDays': 16.09, 'vahToday': 6751.036, 'varhLeadToday': 5820.001, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1692341183, 'wNow': 300.639, 'whLifetime': 4583748.044, 'varhLeadLifetime': 3940153.105, 'varhLagLifetime': 286.319, 'vahLifetime': 7011529.036, 'rmsCurrent': 3.506, 'rmsVoltage': 234.223, 'reactPwr': -700.488, 'apprntPwr': 821.274, 'pwrFactor': 0.37, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 300.639, 'whLifetime': 4583748.044, 'varhLeadLifetime': 3940153.105, 'varhLagLifetime': 286.319, 'vahLifetime': 7011529.036, 'rmsCurrent': 3.506, 'rmsVoltage': 234.223, 'reactPwr': -700.488, 'apprntPwr': 821.274, 'pwrFactor': 0.37, '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-18 06:45:56][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:45:56][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:45:57][DEBUG] : send_request_headers.started request= [2023-08-18 06:45:57][DEBUG] : send_request_headers.complete [2023-08-18 06:45:57][DEBUG] : send_request_body.started request= [2023-08-18 06:45:57][DEBUG] : send_request_body.complete [2023-08-18 06:45:57][DEBUG] : receive_response_headers.started request= [2023-08-18 06:45: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'Fri, 18 Aug 2023 06:46: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-18 06:45:57][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-18 06:45:57][DEBUG] : receive_response_body.started request= [2023-08-18 06:45:57][DEBUG] : receive_response_body.complete [2023-08-18 06:45:57][DEBUG] : response_closed.started [2023-08-18 06:45:57][DEBUG] : response_closed.complete [2023-08-18 06:45:57][DEBUG] : Recuperation mesures onduleurs [2023-08-18 06:45:57][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1692340968, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 255}, {'serialNumber': '482236085940', 'lastReportDate': 1692341028, 'devType': 1, 'lastReportWatts': 31, 'maxReportWatts': 259}, {'serialNumber': '482236085744', 'lastReportDate': 1692341059, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1692341089, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 296}] [2023-08-18 06:45:57][DEBUG] : Recuperation index [2023-08-18 06:45:57][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:45:57][DEBUG] : send_request_headers.started request= [2023-08-18 06:45:57][DEBUG] : send_request_headers.complete [2023-08-18 06:45:57][DEBUG] : send_request_body.started request= [2023-08-18 06:45:57][DEBUG] : send_request_body.complete [2023-08-18 06:45:57][DEBUG] : receive_response_headers.started request= [2023-08-18 06:45:57][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:45: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'Fri, 18 Aug 2023 06:46:24 GMT'), (b'Content-Length', b'4843'), (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-18 06:45:57][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-18 06:45:57][DEBUG] : receive_response_body.started request= [2023-08-18 06:45:57][DEBUG] : receive_response_body.complete [2023-08-18 06:45:57][DEBUG] : response_closed.started [2023-08-18 06:45:57][DEBUG] : response_closed.complete [2023-08-18 06:45:57][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1692341183, 'actEnergyDlvd': 1162065.057, 'actEnergyRcvd': 16375.349, 'apparentEnergy': 1483753.658, 'reactEnergyLagg': 452707.022, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 142.601, 'activePower': 142.601, 'apparentPower': 206.462, 'reactivePower': 64.448, 'pwrFactor': 0.65, 'voltage': 234.482, 'current': 0.892, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1692341183, 'actEnergyDlvd': 1162065.057, 'actEnergyRcvd': 16375.349, 'apparentEnergy': 1483753.658, 'reactEnergyLagg': 452707.022, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 142.601, 'activePower': 142.601, 'apparentPower': 206.462, 'reactivePower': 64.448, 'pwrFactor': 0.65, 'voltage': 234.482, 'current': 0.892, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1692341183, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7624.325, 'apparentEnergy': 1107.759, 'reactEnergyLagg': 474.269, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.05, 'activePower': -0.05, 'apparentPower': 0.19, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 2.659, 'current': 0.071, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1692341183, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 15677.9, 'apparentEnergy': 3477.501, 'reactEnergyLagg': 475.42, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.21, 'activePower': -0.21, 'apparentPower': 0.578, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 4.203, 'current': 0.137, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1692341183, 'actEnergyDlvd': 4729011.877, 'actEnergyRcvd': 145421.233, 'apparentEnergy': 7011529.266, 'reactEnergyLagg': 286.319, 'reactEnergyLead': 3940153.302, 'instantaneousDemand': 303.275, 'activePower': 303.275, 'apparentPower': 822.447, 'reactivePower': -701.976, 'pwrFactor': 0.375, 'voltage': 234.378, 'current': 3.519, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1692341183, 'actEnergyDlvd': 4729011.877, 'actEnergyRcvd': 145421.233, 'apparentEnergy': 7011529.266, 'reactEnergyLagg': 286.319, 'reactEnergyLead': 3940153.302, 'instantaneousDemand': 303.275, 'activePower': 303.275, 'apparentPower': 822.447, 'reactivePower': -701.976, 'pwrFactor': 0.375, 'voltage': 234.378, 'current': 3.519, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1692341183, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5089.896, 'apparentEnergy': 32.953, 'reactEnergyLagg': 440.098, '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': 1692341183, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11526.749, 'apparentEnergy': 16.782, 'reactEnergyLagg': 446.427, '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-18 06:45:57][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:45:57][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:46:05][DEBUG] : Signal 15 caught, exiting... [2023-08-18 06:46:05][DEBUG] : Shutdown [2023-08-18 06:46:05][DEBUG] : Removing PID file /tmp/jeedom/enphasesecur/deamon.pid [2023-08-18 06:46:05][INFO] : Send to jeedom : error arret [2023-08-18 06:46:05][DEBUG] : Exit 0 [2023-08-18 06:46:09][INFO] : Start demond [2023-08-18 06:46:09][INFO] : Log level : debug [2023-08-18 06:46:09][DEBUG] : Socket port : 44143 [2023-08-18 06:46:09][DEBUG] : Socket host : localhost [2023-08-18 06:46:09][DEBUG] : PID file : /tmp/jeedom/enphasesecur/deamon.pid [2023-08-18 06:46:09][DEBUG] : Apikey : wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM [2023-08-18 06:46:09][DEBUG] : Device : auto [2023-08-18 06:46:09][DEBUG] : Callback : http://127.0.0.1:80/plugins/enphasesecur/core/php/jeeenphasesecur.php [2023-08-18 06:46:09][DEBUG] : Delais actualisation : 15 [2023-08-18 06:46:09][INFO] : Adresse IP Passerelle : 192.168.0.70 [2023-08-18 06:46:09][DEBUG] : User : ********* [2023-08-18 06:46:09][DEBUG] : Password : ************* %scream%enphase [2023-08-18 06:46:09][DEBUG] : Numero de serie : 122239084064 [2023-08-18 06:46:09][INFO] : Writing PID 27736 to /tmp/jeedom/enphasesecur/deamon.pid [2023-08-18 06:46:09][INFO] : Init request module v2.31.0 [2023-08-18 06:46:09][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:46:09][DEBUG] : http://127.0.0.1:80 "GET /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 2 [2023-08-18 06:46:24][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-18 06:46:24][INFO] : Recuperation token [2023-08-18 06:46:24][DEBUG] : Starting new HTTPS connection (1): enlighten.enphaseenergy.com:443 [2023-08-18 06:46:27][DEBUG] : https://enlighten.enphaseenergy.com:443 "POST /login/login.json HTTP/1.1" 200 None [2023-08-18 06:46:27][DEBUG] : Starting new HTTPS connection (1): entrez.enphaseenergy.com:443 [2023-08-18 06:46:27][DEBUG] : https://entrez.enphaseenergy.com:443 "POST /tokens HTTP/1.1" 200 None [2023-08-18 06:46:27][DEBUG] : eyJraWQiOiI3ZDEwMDA1ZC03ODk5LTRkMGQtYmNiNC0yNDRmOThlZTE1NmIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJhdWQiOiIxMjIyMzkwODQwNjQiLCJpc3MiOiJFbnRyZXoiLCJlbnBoYXNlVXNlciI6Im93bmVyIiwiZXhwIjoxNzIzODc3MTg3LCJpYXQiOjE2OTIzNDExODcsImp0aSI6IjQ1YzJkZWE0LTRlMjUtNGRhMi1iNTcyLThmNjA0MTE5ZTI3YyIsInVzZXJuYW1lIjoibV9taWNrYWVsQHlhaG9vLmZyIn0.-M6MgrKLpLOfgsAQcPvTsitx2MZczZt8nYmHSwybP5jpfLcOSAG2ajW0Ybw516BHss1a_danrTCVEuoZJ_yynQ [2023-08-18 06:46:27][INFO] : Test Token [2023-08-18 06:46:27][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-18 06:46:27][DEBUG] : connect_tcp.complete return_value= [2023-08-18 06:46:27][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-18 06:46:28][DEBUG] : start_tls.complete return_value= [2023-08-18 06:46:28][DEBUG] : send_request_headers.started request= [2023-08-18 06:46:28][DEBUG] : send_request_headers.complete [2023-08-18 06:46:28][DEBUG] : send_request_body.started request= [2023-08-18 06:46:28][DEBUG] : send_request_body.complete [2023-08-18 06:46:28][DEBUG] : receive_response_headers.started request= [2023-08-18 06:46: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'Fri, 18 Aug 2023 06:46:55 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=Y9KGvx7ljIkwzYShXTcH3sLiUNzB1NV0; 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-18 06:46:28][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-18 06:46:28][DEBUG] : receive_response_body.started request= [2023-08-18 06:46:28][DEBUG] : receive_response_body.complete [2023-08-18 06:46:28][DEBUG] : response_closed.started [2023-08-18 06:46:28][DEBUG] : response_closed.complete [2023-08-18 06:46:28][DEBUG] : Recuperation Inventaire [2023-08-18 06:46:28][DEBUG] : send_request_headers.started request= [2023-08-18 06:46:28][DEBUG] : send_request_headers.complete [2023-08-18 06:46:28][DEBUG] : send_request_body.started request= [2023-08-18 06:46:28][DEBUG] : send_request_body.complete [2023-08-18 06:46:28][DEBUG] : receive_response_headers.started request= [2023-08-18 06:46: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'Fri, 18 Aug 2023 06:46:55 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-18 06:46:28][INFO] : HTTP Request: GET https://192.168.0.70/inventory.json "HTTP/1.1 200 OK" [2023-08-18 06:46:28][DEBUG] : receive_response_body.started request= [2023-08-18 06:46:28][DEBUG] : receive_response_body.complete [2023-08-18 06:46:28][DEBUG] : response_closed.started [2023-08-18 06:46:28][DEBUG] : response_closed.complete [2023-08-18 06:46: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': '1692340970', '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': '1692341030', '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': '1692341061', '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': '1692341090', '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': '1692341120', '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-18 06:46:28][DEBUG] : Attente de 5s [2023-08-18 06:46:28][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:46:29][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:46:33][INFO] : Recuperation mesures [2023-08-18 06:46:33][DEBUG] : close.started [2023-08-18 06:46:33][DEBUG] : close.complete [2023-08-18 06:46:33][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-18 06:46:34][DEBUG] : connect_tcp.complete return_value= [2023-08-18 06:46:34][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-18 06:46:34][DEBUG] : start_tls.complete return_value= [2023-08-18 06:46:34][DEBUG] : send_request_headers.started request= [2023-08-18 06:46:34][DEBUG] : send_request_headers.complete [2023-08-18 06:46:34][DEBUG] : send_request_body.started request= [2023-08-18 06:46:34][DEBUG] : send_request_body.complete [2023-08-18 06:46:34][DEBUG] : receive_response_headers.started request= [2023-08-18 06:46: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'Fri, 18 Aug 2023 06:47:01 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-18 06:46:34][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-18 06:46:34][DEBUG] : receive_response_body.started request= [2023-08-18 06:46:34][DEBUG] : receive_response_body.complete [2023-08-18 06:46:34][DEBUG] : response_closed.started [2023-08-18 06:46:34][DEBUG] : response_closed.complete [2023-08-18 06:46:34][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1692341120, 'wNow': 121, 'whLifetime': 1157093}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1692341221, 'wNow': 143.833, 'whLifetime': 1162066.54, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 452707.69, 'vahLifetime': 1483755.802, 'rmsCurrent': 0.875, 'rmsVoltage': 234.781, 'reactPwr': 64.956, 'apprntPwr': 207.056, 'pwrFactor': 0.77, 'whToday': 121.54, 'whLastSevenDays': 36028.54, 'vahToday': 641.802, 'varhLeadToday': 0.104, 'varhLagToday': 571.69, 'lines': [{'wNow': 143.833, 'whLifetime': 1162066.54, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 452707.69, 'vahLifetime': 1483755.802, 'rmsCurrent': 0.875, 'rmsVoltage': 234.781, 'reactPwr': 64.956, 'apprntPwr': 207.056, 'pwrFactor': 0.77, 'whToday': 121.54, 'whLastSevenDays': 36028.54, 'vahToday': 641.802, 'varhLeadToday': 0.104, 'varhLagToday': 571.69}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1692341221, 'wNow': 463.541, 'whLifetime': 5745503.162, 'varhLeadLifetime': 3939010.515, 'varhLagLifetime': -452421.37, 'vahLifetime': 7011538.051, 'rmsCurrent': 4.436, 'rmsVoltage': 234.881, 'reactPwr': -641.284, 'apprntPwr': 1042.044, 'pwrFactor': 0.44, 'whToday': 2714.162, 'whLastSevenDays': 21.162, 'vahToday': 6760.051, 'varhLeadToday': 5827.515, 'varhLagToday': 0.0, 'lines': [{'wNow': 463.541, 'whLifetime': 5745503.162, 'varhLeadLifetime': 3939010.515, 'varhLagLifetime': -452421.37, 'vahLifetime': 7011538.051, 'rmsCurrent': 4.436, 'rmsVoltage': 234.881, 'reactPwr': -641.284, 'apprntPwr': 1042.044, 'pwrFactor': 0.44, 'whToday': 2714.162, 'whLastSevenDays': 21.162, 'vahToday': 6760.051, 'varhLeadToday': 5827.515, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1692341221, 'wNow': 319.708, 'whLifetime': 4583751.593, 'varhLeadLifetime': 3940160.619, 'varhLagLifetime': 286.319, 'vahLifetime': 7011538.051, 'rmsCurrent': 3.561, 'rmsVoltage': 234.881, 'reactPwr': -706.24, 'apprntPwr': 836.488, 'pwrFactor': 0.38, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 319.708, 'whLifetime': 4583751.593, 'varhLeadLifetime': 3940160.619, 'varhLagLifetime': 286.319, 'vahLifetime': 7011538.051, 'rmsCurrent': 3.561, 'rmsVoltage': 234.881, 'reactPwr': -706.24, 'apprntPwr': 836.488, 'pwrFactor': 0.38, '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-18 06:46:34][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:46:34][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:46:35][DEBUG] : send_request_headers.started request= [2023-08-18 06:46:35][DEBUG] : send_request_headers.complete [2023-08-18 06:46:35][DEBUG] : send_request_body.started request= [2023-08-18 06:46:35][DEBUG] : send_request_body.complete [2023-08-18 06:46:35][DEBUG] : receive_response_headers.started request= [2023-08-18 06:46: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'Fri, 18 Aug 2023 06:47:02 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-18 06:46:35][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-18 06:46:35][DEBUG] : receive_response_body.started request= [2023-08-18 06:46:35][DEBUG] : receive_response_body.complete [2023-08-18 06:46:35][DEBUG] : response_closed.started [2023-08-18 06:46:35][DEBUG] : response_closed.complete [2023-08-18 06:46:35][DEBUG] : Recuperation mesures onduleurs2 [2023-08-18 06:46:35][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1692340968, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 255}, {'serialNumber': '482236085940', 'lastReportDate': 1692341028, 'devType': 1, 'lastReportWatts': 31, 'maxReportWatts': 259}, {'serialNumber': '482236085744', 'lastReportDate': 1692341059, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1692341089, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 296}] [2023-08-18 06:46:35][DEBUG] : Recuperation index [2023-08-18 06:46:35][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:46:35][DEBUG] : send_request_headers.started request= [2023-08-18 06:46:35][DEBUG] : send_request_headers.complete [2023-08-18 06:46:35][DEBUG] : send_request_body.started request= [2023-08-18 06:46:35][DEBUG] : send_request_body.complete [2023-08-18 06:46:35][DEBUG] : receive_response_headers.started request= [2023-08-18 06:46:35][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:46: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'Fri, 18 Aug 2023 06:47:02 GMT'), (b'Content-Length', b'4841'), (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-18 06:46:35][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-18 06:46:35][DEBUG] : receive_response_body.started request= [2023-08-18 06:46:35][DEBUG] : receive_response_body.complete [2023-08-18 06:46:35][DEBUG] : response_closed.started [2023-08-18 06:46:35][DEBUG] : response_closed.complete [2023-08-18 06:46:35][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1692341221, 'actEnergyDlvd': 1162066.583, 'actEnergyRcvd': 16375.349, 'apparentEnergy': 1483755.867, 'reactEnergyLagg': 452707.71, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 142.056, 'activePower': 142.056, 'apparentPower': 207.097, 'reactivePower': 64.042, 'pwrFactor': 0.722, 'voltage': 234.786, 'current': 0.901, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1692341221, 'actEnergyDlvd': 1162066.583, 'actEnergyRcvd': 16375.349, 'apparentEnergy': 1483755.867, 'reactEnergyLagg': 452707.71, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 142.056, 'activePower': 142.056, 'apparentPower': 207.097, 'reactivePower': 64.042, 'pwrFactor': 0.722, 'voltage': 234.786, 'current': 0.901, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1692341221, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7624.339, 'apparentEnergy': 1107.76, 'reactEnergyLagg': 474.269, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.042, 'activePower': -0.042, 'apparentPower': 0.185, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 2.659, 'current': 0.069, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1692341221, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 15677.926, 'apparentEnergy': 3477.507, 'reactEnergyLagg': 475.421, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.188, 'activePower': -0.188, 'apparentPower': 0.58, 'reactivePower': 0.076, 'pwrFactor': 0.0, 'voltage': 4.203, 'current': 0.138, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1692341221, 'actEnergyDlvd': 4729015.44, 'actEnergyRcvd': 145421.233, 'apparentEnergy': 7011538.308, 'reactEnergyLagg': 286.319, 'reactEnergyLead': 3940160.836, 'instantaneousDemand': 321.453, 'activePower': 321.453, 'apparentPower': 838.11, 'reactivePower': -706.745, 'pwrFactor': 0.386, 'voltage': 234.842, 'current': 3.578, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1692341221, 'actEnergyDlvd': 4729015.44, 'actEnergyRcvd': 145421.233, 'apparentEnergy': 7011538.308, 'reactEnergyLagg': 286.319, 'reactEnergyLead': 3940160.836, 'instantaneousDemand': 321.453, 'activePower': 321.453, 'apparentPower': 838.11, 'reactivePower': -706.745, 'pwrFactor': 0.386, 'voltage': 234.842, 'current': 3.578, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1692341221, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5089.905, 'apparentEnergy': 32.953, 'reactEnergyLagg': 440.099, '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': 1692341221, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11526.768, 'apparentEnergy': 16.782, 'reactEnergyLagg': 446.428, '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-18 06:46:35][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:46:35][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:46:50][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-18 06:46:50][INFO] : Test Token [2023-08-18 06:46:50][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-18 06:46:50][DEBUG] : connect_tcp.complete return_value= [2023-08-18 06:46:50][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-18 06:46:50][DEBUG] : start_tls.complete return_value= [2023-08-18 06:46:50][DEBUG] : send_request_headers.started request= [2023-08-18 06:46:50][DEBUG] : send_request_headers.complete [2023-08-18 06:46:50][DEBUG] : send_request_body.started request= [2023-08-18 06:46:50][DEBUG] : send_request_body.complete [2023-08-18 06:46:50][DEBUG] : receive_response_headers.started request= [2023-08-18 06:46: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'Fri, 18 Aug 2023 06:47:17 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=Y9KGvx7ljIkwzYShXTcH3sLiUNzB1NV0; 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-18 06:46:50][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-18 06:46:50][DEBUG] : receive_response_body.started request= [2023-08-18 06:46:50][DEBUG] : receive_response_body.complete [2023-08-18 06:46:50][DEBUG] : response_closed.started [2023-08-18 06:46:50][DEBUG] : response_closed.complete [2023-08-18 06:46:50][INFO] : Recuperation mesures [2023-08-18 06:46:50][DEBUG] : send_request_headers.started request= [2023-08-18 06:46:50][DEBUG] : send_request_headers.complete [2023-08-18 06:46:50][DEBUG] : send_request_body.started request= [2023-08-18 06:46:50][DEBUG] : send_request_body.complete [2023-08-18 06:46:50][DEBUG] : receive_response_headers.started request= [2023-08-18 06:46: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'Fri, 18 Aug 2023 06:47: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-18 06:46:51][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-18 06:46:51][DEBUG] : receive_response_body.started request= [2023-08-18 06:46:51][DEBUG] : receive_response_body.complete [2023-08-18 06:46:51][DEBUG] : response_closed.started [2023-08-18 06:46:51][DEBUG] : response_closed.complete [2023-08-18 06:46:51][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1692341120, 'wNow': 121, 'whLifetime': 1157093}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1692341238, 'wNow': 144.014, 'whLifetime': 1162067.216, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 452707.996, 'vahLifetime': 1483756.785, 'rmsCurrent': 0.915, 'rmsVoltage': 234.918, 'reactPwr': 65.198, 'apprntPwr': 212.616, 'pwrFactor': 0.62, 'whToday': 122.216, 'whLastSevenDays': 36029.216, 'vahToday': 642.785, 'varhLeadToday': 0.104, 'varhLagToday': 571.996, 'lines': [{'wNow': 144.014, 'whLifetime': 1162067.216, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 452707.996, 'vahLifetime': 1483756.785, 'rmsCurrent': 0.915, 'rmsVoltage': 234.918, 'reactPwr': 65.198, 'apprntPwr': 212.616, 'pwrFactor': 0.62, 'whToday': 122.216, 'whLastSevenDays': 36029.216, 'vahToday': 642.785, 'varhLeadToday': 0.104, 'varhLagToday': 571.996}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1692341238, 'wNow': 920.655, 'whLifetime': 5745505.915, 'varhLeadLifetime': 3939013.857, 'varhLagLifetime': -452421.677, 'vahLifetime': 7011542.436, 'rmsCurrent': 6.738, 'rmsVoltage': 235.019, 'reactPwr': -670.258, 'apprntPwr': 1583.515, 'pwrFactor': 0.58, 'whToday': 2716.915, 'whLastSevenDays': 23.915, 'vahToday': 6764.436, 'varhLeadToday': 5830.857, 'varhLagToday': 0.0, 'lines': [{'wNow': 920.655, 'whLifetime': 5745505.915, 'varhLeadLifetime': 3939013.857, 'varhLagLifetime': -452421.677, 'vahLifetime': 7011542.436, 'rmsCurrent': 6.738, 'rmsVoltage': 235.019, 'reactPwr': -670.258, 'apprntPwr': 1583.515, 'pwrFactor': 0.58, 'whToday': 2716.915, 'whLastSevenDays': 23.915, 'vahToday': 6764.436, 'varhLeadToday': 5830.857, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1692341238, 'wNow': 776.641, 'whLifetime': 4583753.67, 'varhLeadLifetime': 3940163.961, 'varhLagLifetime': 286.319, 'vahLifetime': 7011542.436, 'rmsCurrent': 5.823, 'rmsVoltage': 235.019, 'reactPwr': -735.457, 'apprntPwr': 1368.58, 'pwrFactor': 0.57, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 776.641, 'whLifetime': 4583753.67, 'varhLeadLifetime': 3940163.961, 'varhLagLifetime': 286.319, 'vahLifetime': 7011542.436, 'rmsCurrent': 5.823, 'rmsVoltage': 235.019, 'reactPwr': -735.457, 'apprntPwr': 1368.58, 'pwrFactor': 0.57, '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-18 06:46:51][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:46:51][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:46:52][DEBUG] : send_request_headers.started request= [2023-08-18 06:46:52][DEBUG] : send_request_headers.complete [2023-08-18 06:46:52][DEBUG] : send_request_body.started request= [2023-08-18 06:46:52][DEBUG] : send_request_body.complete [2023-08-18 06:46:52][DEBUG] : receive_response_headers.started request= [2023-08-18 06:46: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'Fri, 18 Aug 2023 06:47:19 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-18 06:46:52][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-18 06:46:52][DEBUG] : receive_response_body.started request= [2023-08-18 06:46:52][DEBUG] : receive_response_body.complete [2023-08-18 06:46:52][DEBUG] : response_closed.started [2023-08-18 06:46:52][DEBUG] : response_closed.complete [2023-08-18 06:46:52][DEBUG] : Recuperation mesures onduleurs [2023-08-18 06:46:52][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1692340968, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 255}, {'serialNumber': '482236085940', 'lastReportDate': 1692341028, 'devType': 1, 'lastReportWatts': 31, 'maxReportWatts': 259}, {'serialNumber': '482236085744', 'lastReportDate': 1692341059, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1692341089, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 296}] [2023-08-18 06:46:52][DEBUG] : Recuperation index [2023-08-18 06:46:52][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:46:52][DEBUG] : send_request_headers.started request= [2023-08-18 06:46:52][DEBUG] : send_request_headers.complete [2023-08-18 06:46:52][DEBUG] : send_request_body.started request= [2023-08-18 06:46:52][DEBUG] : send_request_body.complete [2023-08-18 06:46:52][DEBUG] : receive_response_headers.started request= [2023-08-18 06:46:52][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:46: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'Fri, 18 Aug 2023 06:47:19 GMT'), (b'Content-Length', b'4846'), (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-18 06:46:52][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-18 06:46:52][DEBUG] : receive_response_body.started request= [2023-08-18 06:46:52][DEBUG] : receive_response_body.complete [2023-08-18 06:46:52][DEBUG] : response_closed.started [2023-08-18 06:46:52][DEBUG] : response_closed.complete [2023-08-18 06:46:52][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1692341238, 'actEnergyDlvd': 1162067.26, 'actEnergyRcvd': 16375.349, 'apparentEnergy': 1483756.846, 'reactEnergyLagg': 452708.016, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 145.688, 'activePower': 145.688, 'apparentPower': 210.943, 'reactivePower': 65.773, 'pwrFactor': 0.667, 'voltage': 234.899, 'current': 0.884, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1692341238, 'actEnergyDlvd': 1162067.26, 'actEnergyRcvd': 16375.349, 'apparentEnergy': 1483756.846, 'reactEnergyLagg': 452708.016, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 145.688, 'activePower': 145.688, 'apparentPower': 210.943, 'reactivePower': 65.773, 'pwrFactor': 0.667, 'voltage': 234.899, 'current': 0.884, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1692341238, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7624.345, 'apparentEnergy': 1107.762, 'reactEnergyLagg': 474.27, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.038, 'activePower': -0.038, 'apparentPower': 0.19, 'reactivePower': -0.0, 'pwrFactor': -1.0, 'voltage': 2.658, 'current': 0.071, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1692341238, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 15677.939, 'apparentEnergy': 3477.51, 'reactEnergyLagg': 475.421, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.228, 'activePower': -0.228, 'apparentPower': 0.571, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 4.202, 'current': 0.136, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1692341238, 'actEnergyDlvd': 4729017.543, 'actEnergyRcvd': 145421.233, 'apparentEnergy': 7011542.733, 'reactEnergyLagg': 286.319, 'reactEnergyLead': 3940164.178, 'instantaneousDemand': 835.907, 'activePower': 835.907, 'apparentPower': 1229.34, 'reactivePower': -712.513, 'pwrFactor': 0.371, 'voltage': 234.959, 'current': 5.615, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1692341238, 'actEnergyDlvd': 4729017.543, 'actEnergyRcvd': 145421.233, 'apparentEnergy': 7011542.733, 'reactEnergyLagg': 286.319, 'reactEnergyLead': 3940164.178, 'instantaneousDemand': 835.907, 'activePower': 835.907, 'apparentPower': 1229.34, 'reactivePower': -712.513, 'pwrFactor': 0.371, 'voltage': 234.959, 'current': 5.615, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1692341238, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5089.909, 'apparentEnergy': 32.953, 'reactEnergyLagg': 440.099, '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': 1692341238, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11526.777, 'apparentEnergy': 16.782, 'reactEnergyLagg': 446.428, '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-18 06:46:52][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:46:52][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:47:05][DEBUG] : Signal 15 caught, exiting... [2023-08-18 06:47:05][DEBUG] : Shutdown [2023-08-18 06:47:05][DEBUG] : Removing PID file /tmp/jeedom/enphasesecur/deamon.pid [2023-08-18 06:47:05][INFO] : Send to jeedom : error arret [2023-08-18 06:47:05][DEBUG] : Exit 0 [2023-08-18 06:47:09][INFO] : Start demond [2023-08-18 06:47:09][INFO] : Log level : debug [2023-08-18 06:47:09][DEBUG] : Socket port : 30244 [2023-08-18 06:47:09][DEBUG] : Socket host : localhost [2023-08-18 06:47:09][DEBUG] : PID file : /tmp/jeedom/enphasesecur/deamon.pid [2023-08-18 06:47:09][DEBUG] : Apikey : wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM [2023-08-18 06:47:09][DEBUG] : Device : auto [2023-08-18 06:47:09][DEBUG] : Callback : http://127.0.0.1:80/plugins/enphasesecur/core/php/jeeenphasesecur.php [2023-08-18 06:47:09][DEBUG] : Delais actualisation : 15 [2023-08-18 06:47:09][INFO] : Adresse IP Passerelle : 192.168.0.70 [2023-08-18 06:47:09][DEBUG] : User : ********* [2023-08-18 06:47:09][DEBUG] : Password : ************* %scream%enphase [2023-08-18 06:47:09][DEBUG] : Numero de serie : 122239084064 [2023-08-18 06:47:09][INFO] : Writing PID 29659 to /tmp/jeedom/enphasesecur/deamon.pid [2023-08-18 06:47:09][INFO] : Init request module v2.31.0 [2023-08-18 06:47:09][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:47:09][DEBUG] : http://127.0.0.1:80 "GET /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 2 [2023-08-18 06:47:24][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-18 06:47:24][INFO] : Recuperation token [2023-08-18 06:47:24][DEBUG] : Starting new HTTPS connection (1): enlighten.enphaseenergy.com:443 [2023-08-18 06:47:27][DEBUG] : https://enlighten.enphaseenergy.com:443 "POST /login/login.json HTTP/1.1" 200 None [2023-08-18 06:47:27][DEBUG] : Starting new HTTPS connection (1): entrez.enphaseenergy.com:443 [2023-08-18 06:47:27][DEBUG] : https://entrez.enphaseenergy.com:443 "POST /tokens HTTP/1.1" 200 None [2023-08-18 06:47:27][DEBUG] : eyJraWQiOiI3ZDEwMDA1ZC03ODk5LTRkMGQtYmNiNC0yNDRmOThlZTE1NmIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJhdWQiOiIxMjIyMzkwODQwNjQiLCJpc3MiOiJFbnRyZXoiLCJlbnBoYXNlVXNlciI6Im93bmVyIiwiZXhwIjoxNzIzODc3MjQ3LCJpYXQiOjE2OTIzNDEyNDcsImp0aSI6IjVjZDIyZmNmLWY2MDUtNDA0Ny1hM2NhLTJiNGRlM2YzMWM0MiIsInVzZXJuYW1lIjoibV9taWNrYWVsQHlhaG9vLmZyIn0._W0LNNbyYEmmSCV1KZhHFe67T2YHYoFdOEnhLw3_8vnbFB7Tarla4qZdpP9PK6wG0rbUX74iJpbFFPJGiz5jUg [2023-08-18 06:47:27][INFO] : Test Token [2023-08-18 06:47:27][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-18 06:47:27][DEBUG] : connect_tcp.complete return_value= [2023-08-18 06:47:27][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-18 06:47:27][DEBUG] : start_tls.complete return_value= [2023-08-18 06:47:27][DEBUG] : send_request_headers.started request= [2023-08-18 06:47:27][DEBUG] : send_request_headers.complete [2023-08-18 06:47:27][DEBUG] : send_request_body.started request= [2023-08-18 06:47:27][DEBUG] : send_request_body.complete [2023-08-18 06:47:27][DEBUG] : receive_response_headers.started request= [2023-08-18 06:47: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'Fri, 18 Aug 2023 06:47:54 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=6jPS4esFdDwYpX4gcX95RMRb0qosjc4G; 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-18 06:47:27][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-18 06:47:27][DEBUG] : receive_response_body.started request= [2023-08-18 06:47:27][DEBUG] : receive_response_body.complete [2023-08-18 06:47:27][DEBUG] : response_closed.started [2023-08-18 06:47:27][DEBUG] : response_closed.complete [2023-08-18 06:47:27][DEBUG] : Recuperation Inventaire [2023-08-18 06:47:27][DEBUG] : send_request_headers.started request= [2023-08-18 06:47:27][DEBUG] : send_request_headers.complete [2023-08-18 06:47:27][DEBUG] : send_request_body.started request= [2023-08-18 06:47:27][DEBUG] : send_request_body.complete [2023-08-18 06:47:27][DEBUG] : receive_response_headers.started request= [2023-08-18 06:47: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'Fri, 18 Aug 2023 06:47:55 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-18 06:47:28][INFO] : HTTP Request: GET https://192.168.0.70/inventory.json "HTTP/1.1 200 OK" [2023-08-18 06:47:28][DEBUG] : receive_response_body.started request= [2023-08-18 06:47:28][DEBUG] : receive_response_body.complete [2023-08-18 06:47:28][DEBUG] : response_closed.started [2023-08-18 06:47:28][DEBUG] : response_closed.complete [2023-08-18 06:47: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': '1692340970', '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': '1692341030', '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': '1692341061', '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': '1692341090', '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': '1692341120', '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-18 06:47:28][DEBUG] : Attente de 5s [2023-08-18 06:47:28][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:47:28][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:47:33][INFO] : Recuperation mesures [2023-08-18 06:47:33][DEBUG] : close.started [2023-08-18 06:47:33][DEBUG] : close.complete [2023-08-18 06:47:33][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-18 06:47:33][DEBUG] : connect_tcp.complete return_value= [2023-08-18 06:47:33][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-18 06:47:33][DEBUG] : start_tls.complete return_value= [2023-08-18 06:47:33][DEBUG] : send_request_headers.started request= [2023-08-18 06:47:33][DEBUG] : send_request_headers.complete [2023-08-18 06:47:33][DEBUG] : send_request_body.started request= [2023-08-18 06:47:33][DEBUG] : send_request_body.complete [2023-08-18 06:47:33][DEBUG] : receive_response_headers.started request= [2023-08-18 06:47: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'Fri, 18 Aug 2023 06:48:00 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-18 06:47:33][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-18 06:47:33][DEBUG] : receive_response_body.started request= [2023-08-18 06:47:33][DEBUG] : receive_response_body.complete [2023-08-18 06:47:33][DEBUG] : response_closed.started [2023-08-18 06:47:33][DEBUG] : response_closed.complete [2023-08-18 06:47:33][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1692341120, 'wNow': 121, 'whLifetime': 1157093}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1692341280, 'wNow': 144.421, 'whLifetime': 1162068.902, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 452708.759, 'vahLifetime': 1483759.221, 'rmsCurrent': 0.885, 'rmsVoltage': 235.402, 'reactPwr': 65.066, 'apprntPwr': 207.29, 'pwrFactor': 0.66, 'whToday': 123.902, 'whLastSevenDays': 36030.902, 'vahToday': 645.221, 'varhLeadToday': 0.104, 'varhLagToday': 572.759, 'lines': [{'wNow': 144.421, 'whLifetime': 1162068.902, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 452708.759, 'vahLifetime': 1483759.221, 'rmsCurrent': 0.885, 'rmsVoltage': 235.402, 'reactPwr': 65.066, 'apprntPwr': 207.29, 'pwrFactor': 0.66, 'whToday': 123.902, 'whLastSevenDays': 36030.902, 'vahToday': 645.221, 'varhLeadToday': 0.104, 'varhLagToday': 572.759}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1692341280, 'wNow': 457.658, 'whLifetime': 5745511.504, 'varhLeadLifetime': 3939022.152, 'varhLagLifetime': -452422.44, 'vahLifetime': 7011552.459, 'rmsCurrent': 4.438, 'rmsVoltage': 235.322, 'reactPwr': -640.414, 'apprntPwr': 1044.398, 'pwrFactor': 0.44, 'whToday': 2722.504, 'whLastSevenDays': 29.504, 'vahToday': 6774.459, 'varhLeadToday': 5839.152, 'varhLagToday': 0.0, 'lines': [{'wNow': 457.658, 'whLifetime': 5745511.504, 'varhLeadLifetime': 3939022.152, 'varhLagLifetime': -452422.44, 'vahLifetime': 7011552.459, 'rmsCurrent': 4.438, 'rmsVoltage': 235.322, 'reactPwr': -640.414, 'apprntPwr': 1044.398, 'pwrFactor': 0.44, 'whToday': 2722.504, 'whLastSevenDays': 29.504, 'vahToday': 6774.459, 'varhLeadToday': 5839.152, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1692341280, 'wNow': 313.236, 'whLifetime': 4583757.572, 'varhLeadLifetime': 3940172.256, 'varhLagLifetime': 286.319, 'vahLifetime': 7011552.459, 'rmsCurrent': 3.553, 'rmsVoltage': 235.322, 'reactPwr': -705.48, 'apprntPwr': 836.093, 'pwrFactor': 0.37, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 313.236, 'whLifetime': 4583757.572, 'varhLeadLifetime': 3940172.256, 'varhLagLifetime': 286.319, 'vahLifetime': 7011552.459, 'rmsCurrent': 3.553, 'rmsVoltage': 235.322, 'reactPwr': -705.48, 'apprntPwr': 836.093, 'pwrFactor': 0.37, '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-18 06:47:33][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:47:34][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:47:34][DEBUG] : send_request_headers.started request= [2023-08-18 06:47:34][DEBUG] : send_request_headers.complete [2023-08-18 06:47:34][DEBUG] : send_request_body.started request= [2023-08-18 06:47:34][DEBUG] : send_request_body.complete [2023-08-18 06:47:34][DEBUG] : receive_response_headers.started request= [2023-08-18 06:47: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'Fri, 18 Aug 2023 06:48:02 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-18 06:47:34][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-18 06:47:34][DEBUG] : receive_response_body.started request= [2023-08-18 06:47:34][DEBUG] : receive_response_body.complete [2023-08-18 06:47:34][DEBUG] : response_closed.started [2023-08-18 06:47:34][DEBUG] : response_closed.complete [2023-08-18 06:47:35][DEBUG] : Recuperation mesures onduleurs2 [2023-08-18 06:47:35][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1692340968, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 255}, {'serialNumber': '482236085940', 'lastReportDate': 1692341028, 'devType': 1, 'lastReportWatts': 31, 'maxReportWatts': 259}, {'serialNumber': '482236085744', 'lastReportDate': 1692341059, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1692341089, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 296}] [2023-08-18 06:47:35][DEBUG] : Recuperation index [2023-08-18 06:47:35][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:47:35][DEBUG] : send_request_headers.started request= [2023-08-18 06:47:35][DEBUG] : send_request_headers.complete [2023-08-18 06:47:35][DEBUG] : send_request_body.started request= [2023-08-18 06:47:35][DEBUG] : send_request_body.complete [2023-08-18 06:47:35][DEBUG] : receive_response_headers.started request= [2023-08-18 06:47:35][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:47: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'Fri, 18 Aug 2023 06:48:02 GMT'), (b'Content-Length', b'4843'), (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-18 06:47:35][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-18 06:47:35][DEBUG] : receive_response_body.started request= [2023-08-18 06:47:35][DEBUG] : receive_response_body.complete [2023-08-18 06:47:35][DEBUG] : response_closed.started [2023-08-18 06:47:35][DEBUG] : response_closed.complete [2023-08-18 06:47:35][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1692341281, 'actEnergyDlvd': 1162068.946, 'actEnergyRcvd': 16375.349, 'apparentEnergy': 1483759.284, 'reactEnergyLagg': 452708.78, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 144.725, 'activePower': 144.725, 'apparentPower': 206.796, 'reactivePower': 64.935, 'pwrFactor': 0.765, 'voltage': 235.439, 'current': 0.857, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1692341281, 'actEnergyDlvd': 1162068.946, 'actEnergyRcvd': 16375.349, 'apparentEnergy': 1483759.284, 'reactEnergyLagg': 452708.78, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 144.725, 'activePower': 144.725, 'apparentPower': 206.796, 'reactivePower': 64.935, 'pwrFactor': 0.765, 'voltage': 235.439, 'current': 0.857, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1692341281, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7624.359, 'apparentEnergy': 1107.763, 'reactEnergyLagg': 474.271, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.042, 'activePower': -0.042, 'apparentPower': 0.187, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 2.659, 'current': 0.07, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1692341281, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 15677.968, 'apparentEnergy': 3477.516, 'reactEnergyLagg': 475.422, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.231, 'activePower': -0.231, 'apparentPower': 0.575, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 4.203, 'current': 0.137, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1692341281, 'actEnergyDlvd': 4729021.416, 'actEnergyRcvd': 145421.233, 'apparentEnergy': 7011552.714, 'reactEnergyLagg': 286.319, 'reactEnergyLead': 3940172.472, 'instantaneousDemand': 311.231, 'activePower': 311.231, 'apparentPower': 835.38, 'reactivePower': -706.869, 'pwrFactor': 0.386, 'voltage': 235.366, 'current': 3.543, 'freq': 50.0, 'channels': [{'eid': 1778385425, 'timestamp': 1692341281, 'actEnergyDlvd': 4729021.416, 'actEnergyRcvd': 145421.233, 'apparentEnergy': 7011552.714, 'reactEnergyLagg': 286.319, 'reactEnergyLead': 3940172.472, 'instantaneousDemand': 311.231, 'activePower': 311.231, 'apparentPower': 835.38, 'reactivePower': -706.869, 'pwrFactor': 0.386, 'voltage': 235.366, 'current': 3.543, 'freq': 50.0}, {'eid': 1778385426, 'timestamp': 1692341281, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5089.918, 'apparentEnergy': 32.953, 'reactEnergyLagg': 440.1, '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': 1692341281, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11526.799, 'apparentEnergy': 16.782, 'reactEnergyLagg': 446.429, '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-18 06:47:35][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:47:35][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:47:50][DEBUG] : load_ssl_context verify=False cert=None trust_env=True http2=False [2023-08-18 06:47:50][INFO] : Test Token [2023-08-18 06:47:50][DEBUG] : connect_tcp.started host='192.168.0.70' port=443 local_address=None timeout=5.0 socket_options=None [2023-08-18 06:47:50][DEBUG] : connect_tcp.complete return_value= [2023-08-18 06:47:50][DEBUG] : start_tls.started ssl_context= server_hostname='192.168.0.70' timeout=5.0 [2023-08-18 06:47:50][DEBUG] : start_tls.complete return_value= [2023-08-18 06:47:50][DEBUG] : send_request_headers.started request= [2023-08-18 06:47:50][DEBUG] : send_request_headers.complete [2023-08-18 06:47:50][DEBUG] : send_request_body.started request= [2023-08-18 06:47:50][DEBUG] : send_request_body.complete [2023-08-18 06:47:50][DEBUG] : receive_response_headers.started request= [2023-08-18 06:47: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'Fri, 18 Aug 2023 06:48:17 GMT'), (b'Content-Type', b'application/octet-stream'), (b'Content-Length', b'37'), (b'Connection', b'keep-alive'), (b'Set-Cookie', b'sessionId=6jPS4esFdDwYpX4gcX95RMRb0qosjc4G; 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-18 06:47:50][INFO] : HTTP Request: GET https://192.168.0.70/auth/check_jwt "HTTP/1.1 200 OK" [2023-08-18 06:47:50][DEBUG] : receive_response_body.started request= [2023-08-18 06:47:50][DEBUG] : receive_response_body.complete [2023-08-18 06:47:50][DEBUG] : response_closed.started [2023-08-18 06:47:50][DEBUG] : response_closed.complete [2023-08-18 06:47:50][INFO] : Recuperation mesures [2023-08-18 06:47:50][DEBUG] : send_request_headers.started request= [2023-08-18 06:47:50][DEBUG] : send_request_headers.complete [2023-08-18 06:47:50][DEBUG] : send_request_body.started request= [2023-08-18 06:47:50][DEBUG] : send_request_body.complete [2023-08-18 06:47:50][DEBUG] : receive_response_headers.started request= [2023-08-18 06:47: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'Fri, 18 Aug 2023 06:48: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-18 06:47:50][INFO] : HTTP Request: GET https://192.168.0.70/production.json?details=1 "HTTP/1.1 200 OK" [2023-08-18 06:47:50][DEBUG] : receive_response_body.started request= [2023-08-18 06:47:50][DEBUG] : receive_response_body.complete [2023-08-18 06:47:50][DEBUG] : response_closed.started [2023-08-18 06:47:50][DEBUG] : response_closed.complete [2023-08-18 06:47:50][INFO] : Send to jeedom : {'production': [{'type': 'inverters', 'activeCount': 4, 'readingTime': 1692341120, 'wNow': 121, 'whLifetime': 1157093}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'production', 'readingTime': 1692341297, 'wNow': 144.638, 'whLifetime': 1162069.588, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 452709.071, 'vahLifetime': 1483760.211, 'rmsCurrent': 0.847, 'rmsVoltage': 235.317, 'reactPwr': 64.879, 'apprntPwr': 204.385, 'pwrFactor': 0.78, 'whToday': 124.588, 'whLastSevenDays': 36031.588, 'vahToday': 646.211, 'varhLeadToday': 0.104, 'varhLagToday': 573.071, 'lines': [{'wNow': 144.638, 'whLifetime': 1162069.588, 'varhLeadLifetime': 1150.104, 'varhLagLifetime': 452709.071, 'vahLifetime': 1483760.211, 'rmsCurrent': 0.847, 'rmsVoltage': 235.317, 'reactPwr': 64.879, 'apprntPwr': 204.385, 'pwrFactor': 0.78, 'whToday': 124.588, 'whLastSevenDays': 36031.588, 'vahToday': 646.211, 'varhLeadToday': 0.104, 'varhLagToday': 573.071}]}], 'consumption': [{'type': 'eim', 'activeCount': 1, 'measurementType': 'total-consumption', 'readingTime': 1692341297, 'wNow': 515.23, 'whLifetime': 5745513.695, 'varhLeadLifetime': 3939025.521, 'varhLagLifetime': -452422.751, 'vahLifetime': 7011556.478, 'rmsCurrent': 4.543, 'rmsVoltage': 235.449, 'reactPwr': -646.696, 'apprntPwr': 1069.616, 'pwrFactor': 0.48, 'whToday': 2724.695, 'whLastSevenDays': 31.695, 'vahToday': 6778.478, 'varhLeadToday': 5842.521, 'varhLagToday': 0.0, 'lines': [{'wNow': 515.23, 'whLifetime': 5745513.695, 'varhLeadLifetime': 3939025.521, 'varhLagLifetime': -452422.751, 'vahLifetime': 7011556.478, 'rmsCurrent': 4.543, 'rmsVoltage': 235.449, 'reactPwr': -646.696, 'apprntPwr': 1069.616, 'pwrFactor': 0.48, 'whToday': 2724.695, 'whLastSevenDays': 31.695, 'vahToday': 6778.478, 'varhLeadToday': 5842.521, 'varhLagToday': 0.0}]}, {'type': 'eim', 'activeCount': 1, 'measurementType': 'net-consumption', 'readingTime': 1692341297, 'wNow': 370.591, 'whLifetime': 4583759.077, 'varhLeadLifetime': 3940175.625, 'varhLagLifetime': 286.319, 'vahLifetime': 7011556.478, 'rmsCurrent': 3.696, 'rmsVoltage': 235.449, 'reactPwr': -711.576, 'apprntPwr': 870.107, 'pwrFactor': 0.43, 'whToday': 0, 'whLastSevenDays': 0, 'vahToday': 0, 'varhLeadToday': 0, 'varhLagToday': 0, 'lines': [{'wNow': 370.591, 'whLifetime': 4583759.077, 'varhLeadLifetime': 3940175.625, 'varhLagLifetime': 286.319, 'vahLifetime': 7011556.478, 'rmsCurrent': 3.696, 'rmsVoltage': 235.449, 'reactPwr': -711.576, 'apprntPwr': 870.107, 'pwrFactor': 0.43, '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-18 06:47:50][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:47:50][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:47:51][DEBUG] : send_request_headers.started request= [2023-08-18 06:47:51][DEBUG] : send_request_headers.complete [2023-08-18 06:47:51][DEBUG] : send_request_body.started request= [2023-08-18 06:47:51][DEBUG] : send_request_body.complete [2023-08-18 06:47:51][DEBUG] : receive_response_headers.started request= [2023-08-18 06:47: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'Fri, 18 Aug 2023 06:48:18 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-18 06:47:51][INFO] : HTTP Request: GET https://192.168.0.70/api/v1/production/inverters "HTTP/1.1 200 OK" [2023-08-18 06:47:51][DEBUG] : receive_response_body.started request= [2023-08-18 06:47:51][DEBUG] : receive_response_body.complete [2023-08-18 06:47:51][DEBUG] : response_closed.started [2023-08-18 06:47:51][DEBUG] : response_closed.complete [2023-08-18 06:47:51][DEBUG] : Recuperation mesures onduleurs [2023-08-18 06:47:51][INFO] : Send to jeedom : [{'serialNumber': '482236085960', 'lastReportDate': 1692340968, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 255}, {'serialNumber': '482236085940', 'lastReportDate': 1692341028, 'devType': 1, 'lastReportWatts': 31, 'maxReportWatts': 259}, {'serialNumber': '482236085744', 'lastReportDate': 1692341059, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 296}, {'serialNumber': '482236085917', 'lastReportDate': 1692341089, 'devType': 1, 'lastReportWatts': 30, 'maxReportWatts': 296}] [2023-08-18 06:47:51][DEBUG] : Recuperation index [2023-08-18 06:47:51][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:47:51][DEBUG] : send_request_headers.started request= [2023-08-18 06:47:51][DEBUG] : send_request_headers.complete [2023-08-18 06:47:51][DEBUG] : send_request_body.started request= [2023-08-18 06:47:51][DEBUG] : send_request_body.complete [2023-08-18 06:47:51][DEBUG] : receive_response_headers.started request= [2023-08-18 06:47:51][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:47: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'Fri, 18 Aug 2023 06:48:18 GMT'), (b'Content-Length', b'4842'), (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-18 06:47:51][INFO] : HTTP Request: GET https://192.168.0.70/ivp/meters/readings "HTTP/1.1 200 OK" [2023-08-18 06:47:51][DEBUG] : receive_response_body.started request= [2023-08-18 06:47:51][DEBUG] : receive_response_body.complete [2023-08-18 06:47:51][DEBUG] : response_closed.started [2023-08-18 06:47:51][DEBUG] : response_closed.complete [2023-08-18 06:47:51][INFO] : Send to jeedom : [{'eid': 704643328, 'timestamp': 1692341298, 'actEnergyDlvd': 1162069.627, 'actEnergyRcvd': 16375.349, 'apparentEnergy': 1483760.273, 'reactEnergyLagg': 452709.089, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 143.189, 'activePower': 143.189, 'apparentPower': 208.225, 'reactivePower': 64.274, 'pwrFactor': 0.741, 'voltage': 235.412, 'current': 0.904, 'freq': 50.0, 'channels': [{'eid': 1778385169, 'timestamp': 1692341298, 'actEnergyDlvd': 1162069.627, 'actEnergyRcvd': 16375.349, 'apparentEnergy': 1483760.273, 'reactEnergyLagg': 452709.089, 'reactEnergyLead': 1150.104, 'instantaneousDemand': 143.189, 'activePower': 143.189, 'apparentPower': 208.225, 'reactivePower': 64.274, 'pwrFactor': 0.741, 'voltage': 235.412, 'current': 0.904, 'freq': 50.0}, {'eid': 1778385170, 'timestamp': 1692341298, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 7624.365, 'apparentEnergy': 1107.765, 'reactEnergyLagg': 474.271, 'reactEnergyLead': 0.063, 'instantaneousDemand': -0.043, 'activePower': -0.043, 'apparentPower': 0.183, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 2.658, 'current': 0.068, 'freq': 50.0}, {'eid': 1778385171, 'timestamp': 1692341298, 'actEnergyDlvd': 0.001, 'actEnergyRcvd': 15677.981, 'apparentEnergy': 3477.519, 'reactEnergyLagg': 475.422, 'reactEnergyLead': 0.389, 'instantaneousDemand': -0.244, 'activePower': -0.244, 'apparentPower': 0.562, 'reactivePower': -0.0, 'pwrFactor': 0.0, 'voltage': 4.203, 'current': 0.133, 'freq': 50.0}]}, {'eid': 704643584, 'timestamp': 1692341298, 'actEnergyDlvd': 4729022.91, 'actEnergyRcvd': 145421.233, 'apparentEnergy': 7011556.712, 'reactEnergyLagg': 286.319, 'reactEnergyLead': 3940175.824, 'instantaneousDemand': 336.578, 'activePower': 336.578, 'apparentPower': 858.967, 'reactivePower': -707.542, 'pwrFactor': 0.368, 'voltage': 235.547, 'current': 3.695, 'freq': 50.062, 'channels': [{'eid': 1778385425, 'timestamp': 1692341298, 'actEnergyDlvd': 4729022.91, 'actEnergyRcvd': 145421.233, 'apparentEnergy': 7011556.712, 'reactEnergyLagg': 286.319, 'reactEnergyLead': 3940175.824, 'instantaneousDemand': 336.578, 'activePower': 336.578, 'apparentPower': 858.967, 'reactivePower': -707.542, 'pwrFactor': 0.368, 'voltage': 235.547, 'current': 3.695, 'freq': 50.062}, {'eid': 1778385426, 'timestamp': 1692341298, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 5089.923, 'apparentEnergy': 32.953, 'reactEnergyLagg': 440.1, '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': 1692341298, 'actEnergyDlvd': 0.0, 'actEnergyRcvd': 11526.808, 'apparentEnergy': 16.782, 'reactEnergyLagg': 446.429, '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-18 06:47:51][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:47:51][DEBUG] : http://127.0.0.1:80 "POST /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 0 [2023-08-18 06:48:05][DEBUG] : Signal 15 caught, exiting... [2023-08-18 06:48:05][DEBUG] : Shutdown [2023-08-18 06:48:05][DEBUG] : Removing PID file /tmp/jeedom/enphasesecur/deamon.pid [2023-08-18 06:48:05][INFO] : Send to jeedom : error arret [2023-08-18 06:48:05][DEBUG] : Exit 0 [2023-08-18 06:48:09][INFO] : Start demond [2023-08-18 06:48:09][INFO] : Log level : debug [2023-08-18 06:48:09][DEBUG] : Socket port : 10592 [2023-08-18 06:48:09][DEBUG] : Socket host : localhost [2023-08-18 06:48:09][DEBUG] : PID file : /tmp/jeedom/enphasesecur/deamon.pid [2023-08-18 06:48:09][DEBUG] : Apikey : wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM [2023-08-18 06:48:09][DEBUG] : Device : auto [2023-08-18 06:48:09][DEBUG] : Callback : http://127.0.0.1:80/plugins/enphasesecur/core/php/jeeenphasesecur.php [2023-08-18 06:48:09][DEBUG] : Delais actualisation : 15 [2023-08-18 06:48:09][INFO] : Adresse IP Passerelle : 192.168.0.70 [2023-08-18 06:48:09][DEBUG] : User : ********* [2023-08-18 06:48:09][DEBUG] : Password : ************* %scream%enphase [2023-08-18 06:48:09][DEBUG] : Numero de serie : 122239084064 [2023-08-18 06:48:09][INFO] : Writing PID 31525 to /tmp/jeedom/enphasesecur/deamon.pid [2023-08-18 06:48:09][INFO] : Init request module v2.31.0 [2023-08-18 06:48:09][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2023-08-18 06:48:09][DEBUG] : http://127.0.0.1:80 "GET /plugins/enphasesecur/core/php/jeeenphasesecur.php?apikey=wPOBA1ZSV7978gH64XBIsNsAiMuhcqS7xHOmMCNT6RlZ42LrEsUZyNEfxV8UpDeM HTTP/1.1" 200 2