ksya / ha-nefiteasy

Nefit Easy connection for Home Assistant
74 stars 30 forks source link

Connection lost #313

Open dhover opened 2 months ago

dhover commented 2 months ago

Now and then the connnection is lost. This morning at 08:04:53.300 (see below) it happened again. Anyone know why this happens?

Debug logging: 2024-04-11 08:04:33.207 DEBUG (MainThread) [aionefit] Sending msg...GET /ecus/rrc/recordings/yearTotal HTTP/1.1\rUser-Agent: NefitEasy\r\r 2024-04-11 08:04:33.499 DEBUG (MainThread) [aionefit] headers: ['HTTP/1.0 200 OK', 'Content-Length: 236', 'Content-Type: application/json', 'connection: close', ''] 2024-04-11 08:04:33.499 DEBUG (MainThread) [aionefit] body: xxx 2024-04-11 08:04:33.500 DEBUG (MainThread) [aionefit] response: {"id":"/ecus/rrc/recordings/yearTotal","type":"floatValue","recordable":0,"writeable":0,"value":4759.9,"unitOfMeasure":"kWh","minValue":0,"maxValue":429496729.5} 2024-04-11 08:04:33.500 DEBUG (MainThread) [aionefit] Sending msg...GET /system/appliance/displaycode HTTP/1.1\rUser-Agent: NefitEasy\r\r 2024-04-11 08:04:35.561 DEBUG (MainThread) [aionefit] headers: ['HTTP/1.0 200 OK', 'Content-Length: 152', 'Content-Type: application/json', 'connection: close', ''] 2024-04-11 08:04:35.561 DEBUG (MainThread) [aionefit] body: xxx 2024-04-11 08:04:35.562 DEBUG (MainThread) [aionefit] response: {"id":"/system/appliance/displaycode","type":"stringValue","recordable":0,"writeable":0,"value":""} 2024-04-11 08:04:35.562 DEBUG (MainThread) [aionefit] Sending msg...GET /heatingCircuits/hc1/actualSupplyTemperature HTTP/1.1\rUser-Agent: NefitEasy\r\r 2024-04-11 08:04:39.323 DEBUG (MainThread) [aionefit] headers: ['HTTP/1.0 200 OK', 'Content-Length: 236', 'Content-Type: application/json', 'connection: close', ''] 2024-04-11 08:04:39.323 DEBUG (MainThread) [aionefit] body: xxx 2024-04-11 08:04:39.324 DEBUG (MainThread) [aionefit] response: {"id":"/heatingCircuits/hc1/actualSupplyTemperature","type":"floatValue","recordable":0,"writeable":0,"value":56.3,"unitOfMeasure":"C","minValue":0,"maxValue":100.0} 2024-04-11 08:04:39.325 DEBUG (MainThread) [aionefit] Sending msg...GET /system/sensors/temperatures/outdoor_t1 HTTP/1.1\rUser-Agent: NefitEasy\r\r 2024-04-11 08:04:44.297 DEBUG (MainThread) [aionefit] headers: ['HTTP/1.0 200 OK', 'Content-Length: 320', 'Content-Type: application/json', 'connection: close', ''] 2024-04-11 08:04:44.297 DEBUG (MainThread) [aionefit] body: xxx 2024-04-11 08:04:44.298 DEBUG (MainThread) [aionefit] response: {"id":"/system/sensors/temperatures/outdoor_t1","type":"floatValue","recordable":0,"writeable":0,"value":11.0,"unitOfMeasure":"C","minValue":-40.0,"maxValue":50.0,"status":"ok","srcType":"virtual","timestamp":"2024-04-11T07:52:38"} 2024-04-11 08:04:44.298 DEBUG (MainThread) [aionefit] Sending msg...GET /system/appliance/systemPressure HTTP/1.1\rUser-Agent: NefitEasy\r\r 2024-04-11 08:04:53.300 ERROR (MainThread) [custom_components.nefiteasy] Timeout fetching nefiteasy data 2024-04-11 08:04:53.300 DEBUG (MainThread) [custom_components.nefiteasy] Finished fetching nefiteasy data in 20.397 seconds (success: False) 2024-04-11 08:04:55.742 DEBUG (MainThread) [aionefit] headers: ['HTTP/1.0 200 OK', 'Content-Length: 216', 'Content-Type: application/json', 'connection: close', ''] 2024-04-11 08:04:55.742 DEBUG (MainThread) [aionefit] body: xxx 2024-04-11 08:04:55.743 DEBUG (MainThread) [aionefit] response: {"id":"/system/appliance/systemPressure","type":"floatValue","recordable":0,"writeable":0,"value":1.4,"unitOfMeasure":"bar","minValue":0.0,"maxValue":25.0} 2024-04-11 08:05:52.902 DEBUG (MainThread) [aionefit] Sending msg...GET /ecus/rrc/uiStatus HTTP/1.1\rUser-Agent: NefitEasy\r\r 2024-04-11 08:06:01.903 DEBUG (MainThread) [custom_components.nefiteasy] Finished fetching nefiteasy data in 9.001 seconds (success: False) 2024-04-11 08:06:12.106 DEBUG (MainThread) [aionefit] headers: ['HTTP/1.0 200 OK', 'Content-Length: 664', 'Content-Type: application/json', 'connection: close', ''] 2024-04-11 08:06:12.106 DEBUG (MainThread) [aionefit] body: xxx 2024-04-11 08:06:12.108 DEBUG (MainThread) [aionefit] response: {"id":"/ecus/rrc/uiStatus","type":"uiUpdate","recordable":0,"writeable":0,"value":{"CTD":"2024-04-11T08:06:10+01:00 Th","CTR":"room","UMD":"clock","MMT":"18.0","CPM":"auto","CSP":"19","TOR":"off","TOD":"0","TOT":"16.0","TSP":"18.0","IHT":"18.30","IHS":"ok","DAS":"off","TAS":"off","HMD":"off","ARS":"init","FPA":"off","ESI":"off","BAI":"No","BLE":"false","BBE":"false","BMR":"false","PMR":"false","RS":"off","DHW":"on","HED_EN":"false","HED_DEV":"false","FAH":"false","DOT":"false","HED_DB":""}} 2024-04-11 08:07:01.903 DEBUG (MainThread) [aionefit] Sending msg...GET /ecus/rrc/uiStatus HTTP/1.1\rUser-Agent: NefitEasy\r\r 2024-04-11 08:07:02.323 DEBUG (MainThread) [aionefit] headers: ['HTTP/1.0 200 OK', 'Content-Length: 664', 'Content-Type: application/json', 'connection: close', ''] 2024-04-11 08:07:02.323 DEBUG (MainThread) [aionefit] body: xxx 2024-04-11 08:07:02.325 DEBUG (MainThread) [aionefit] response: {"id":"/ecus/rrc/uiStatus","type":"uiUpdate","recordable":0,"writeable":0,"value":{"CTD":"2024-04-11T08:07:00+01:00 Th","CTR":"room","UMD":"clock","MMT":"18.0","CPM":"auto","CSP":"19","TOR":"off","TOD":"0","TOT":"16.0","TSP":"18.0","IHT":"18.20","IHS":"ok","DAS":"off","TAS":"off","HMD":"off","ARS":"init","FPA":"off","ESI":"off","BAI":"No","BLE":"false","BBE":"false","BMR":"false","PMR":"false","RS":"off","DHW":"on","HED_EN":"false","HED_DEV":"false","FAH":"false","DOT":"false","HED_DB":""}} 2024-04-11 08:07:02.325 DEBUG (MainThread) [aionefit] Sending msg...GET /ecus/rrc/recordings/yearTotal HTTP/1.1\rUser-Agent: NefitEasy\r\r 2024-04-11 08:07:02.872 DEBUG (MainThread) [aionefit] headers: ['HTTP/1.0 200 OK', 'Content-Length: 236', 'Content-Type: application/json', 'connection: close', ''] 2024-04-11 08:07:02.872 DEBUG (MainThread) [aionefit] body: xxx 2024-04-11 08:07:02.873 DEBUG (MainThread) [aionefit] response: {"id":"/ecus/rrc/recordings/yearTotal","type":"floatValue","recordable":0,"writeable":0,"value":4759.9,"unitOfMeasure":"kWh","minValue":0,"maxValue":429496729.5} 2024-04-11 08:07:02.873 DEBUG (MainThread) [aionefit] Sending msg...GET /system/appliance/displaycode HTTP/1.1\rUser-Agent: NefitEasy\r\r 2024-04-11 08:07:03.158 DEBUG (MainThread) [aionefit] headers: ['HTTP/1.0 200 OK', 'Content-Length: 152', 'Content-Type: application/json', 'connection: close', ''] 2024-04-11 08:07:03.158 DEBUG (MainThread) [aionefit] body: xxx 2024-04-11 08:07:03.158 DEBUG (MainThread) [aionefit] response: {"id":"/system/appliance/displaycode","type":"stringValue","recordable":0,"writeable":0,"value":""} 2024-04-11 08:07:03.159 DEBUG (MainThread) [aionefit] Sending msg...GET /heatingCircuits/hc1/actualSupplyTemperature HTTP/1.1\rUser-Agent: NefitEasy\r\r 2024-04-11 08:07:03.443 DEBUG (MainThread) [aionefit] headers: ['HTTP/1.0 200 OK', 'Content-Length: 236', 'Content-Type: application/json', 'connection: close', ''] 2024-04-11 08:07:03.443 DEBUG (MainThread) [aionefit] body: xxx 2024-04-11 08:07:03.444 DEBUG (MainThread) [aionefit] response: {"id":"/heatingCircuits/hc1/actualSupplyTemperature","type":"floatValue","recordable":0,"writeable":0,"value":56.0,"unitOfMeasure":"C","minValue":0,"maxValue":100.0} 2024-04-11 08:07:03.444 DEBUG (MainThread) [aionefit] Sending msg...GET /system/sensors/temperatures/outdoor_t1 HTTP/1.1\rUser-Agent: NefitEasy\r\r 2024-04-11 08:07:03.780 DEBUG (MainThread) [aionefit] headers: ['HTTP/1.0 200 OK', 'Content-Length: 320', 'Content-Type: application/json', 'connection: close', ''] 2024-04-11 08:07:03.780 DEBUG (MainThread) [aionefit] body: xxx 2024-04-11 08:07:03.781 DEBUG (MainThread) [aionefit] response: {"id":"/system/sensors/temperatures/outdoor_t1","type":"floatValue","recordable":0,"writeable":0,"value":11.0,"unitOfMeasure":"C","minValue":-40.0,"maxValue":50.0,"status":"ok","srcType":"virtual","timestamp":"2024-04-11T07:52:38"} 2024-04-11 08:07:03.781 DEBUG (MainThread) [aionefit] Sending msg...GET /system/appliance/systemPressure HTTP/1.1\rUser-Agent: NefitEasy\r\r 2024-04-11 08:07:08.365 DEBUG (MainThread) [aionefit] headers: ['HTTP/1.0 200 OK', 'Content-Length: 216', 'Content-Type: application/json', 'connection: close', ''] 2024-04-11 08:07:08.365 DEBUG (MainThread) [aionefit] body: xxx 2024-04-11 08:07:08.366 DEBUG (MainThread) [aionefit] response: {"id":"/system/appliance/systemPressure","type":"floatValue","recordable":0,"writeable":0,"value":1.4,"unitOfMeasure":"bar","minValue":0.0,"maxValue":25.0} 2024-04-11 08:07:08.367 DEBUG (MainThread) [aionefit] Sending msg...GET /system/appliance/actualPower HTTP/1.1\rUser-Agent: NefitEasy\r\r 2024-04-11 08:07:17.368 DEBUG (MainThread) [custom_components.nefiteasy] Finished fetching nefiteasy data in 15.465 seconds (success: False) 2024-04-11 08:07:40.752 DEBUG (MainThread) [aionefit] headers: ['HTTP/1.0 200 OK', 'Content-Length: 216', 'Content-Type: application/json', 'connection: close', ''] 2024-04-11 08:07:40.752 DEBUG (MainThread) [aionefit] body: xxx 2024-04-11 08:07:40.753 DEBUG (MainThread) [aionefit] response: {"id":"/system/appliance/actualPower","type":"floatValue","recordable":0,"writeable":0,"value":0,"unitOfMeasure":"%","minValue":0,"maxValue":100,"reason":"HW"} 2024-04-11 08:08:16.903 DEBUG (MainThread) [aionefit] Sending msg...GET /ecus/rrc/uiStatus HTTP/1.1\rUser-Agent: NefitEasy\r\r 2024-04-11 08:08:17.607 DEBUG (MainThread) [aionefit] headers: ['HTTP/1.0 200 OK', 'Content-Length: 664', 'Content-Type: application/json', 'connection: close', ''] 2024-04-11 08:08:17.607 DEBUG (MainThread) [aionefit] body: xxx 2024-04-11 08:08:17.609 DEBUG (MainThread) [aionefit] response: {"id":"/ecus/rrc/uiStatus","type":"uiUpdate","recordable":0,"writeable":0,"value":{"CTD":"2024-04-11T08:08:16+01:00