radical-squared / aquatemp

Home Assistant AquaTemp Heat Pump Climate Entity
38 stars 10 forks source link

Recurring Error Messages #49

Closed legantois closed 1 year ago

legantois commented 1 year ago

I receive recurring error messages every 30 seconds. Only way to stop is to restart HA. Sometimes it stops by itself

No clue on how it starts

2023-06-27 07:36:44.181 WARNING (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] HTTP request to device/sendDevicePassthroughInstruction.json, Status: 401, Message: 2023-06-27 07:36:44.183 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to send passthrough instruction, Error: HTTP request to device/sendDevicePassthroughInstruction.json, Status: 401, Message: 2023-06-27 07:36:44.209 WARNING (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] HTTP request to app/device/getDataByCode.json, Status: 401, Message: 2023-06-27 07:36:44.211 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch data, Error: HTTP request to app/device/getDataByCode.json, Status: 401, Message: 2023-06-27 07:36:44.233 WARNING (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] HTTP request to app/device/getDeviceStatus.json, Status: 401, Message: 2023-06-27 07:36:44.258 WARNING (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] HTTP request to app/device/getFaultDataByDeviceCode.json, Status: 401, Message:

2023-06-27 07:37:14.181 WARNING (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] HTTP request to device/sendDevicePassthroughInstruction.json, Status: 401, Message: 2023-06-27 07:37:14.183 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to send passthrough instruction, Error: HTTP request to device/sendDevicePassthroughInstruction.json, Status: 401, Message: 2023-06-27 07:37:14.206 WARNING (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] HTTP request to app/device/getDataByCode.json, Status: 401, Message: 2023-06-27 07:37:14.208 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch data, Error: HTTP request to app/device/getDataByCode.json, Status: 401, Message: 2023-06-27 07:37:14.231 WARNING (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] HTTP request to app/device/getDeviceStatus.json, Status: 401, Message: 2023-06-27 07:37:14.255 WARNING (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] HTTP request to app/device/getFaultDataByDeviceCode.json, Status: 401, Message:

Complete trace with debug 2023-06-27 07:42:14.092 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Starting to update device: 34EAE7854EAE 2023-06-27 07:42:14.180 WARNING (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] HTTP request to device/sendDevicePassthroughInstruction.json, Status: 401, Message: 2023-06-27 07:42:14.182 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to send passthrough instruction, Error: HTTP request to device/sendDevicePassthroughInstruction.json, Status: 401, Message: 2023-06-27 07:42:14.206 WARNING (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] HTTP request to app/device/getDataByCode.json, Status: 401, Message: 2023-06-27 07:42:14.208 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch data, Error: HTTP request to app/device/getDataByCode.json, Status: 401, Message: 2023-06-27 07:42:14.230 WARNING (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] HTTP request to app/device/getDeviceStatus.json, Status: 401, Message: 2023-06-27 07:42:14.254 WARNING (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] HTTP request to app/device/getFaultDataByDeviceCode.json, Status: 401, Message: 2023-06-27 07:42:14.256 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_coordinator] Finished fetching Aqua Temp data in 0.163 seconds (success: True) 2023-06-27 07:42:14.256 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Target temp PC R02, HA Mode: heat 2023-06-27 07:42:14.256 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_hvac_mode: off 2023-06-27 07:42:14.256 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_target_temperature: 28.0 2023-06-27 07:42:14.256 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_fan_mode: auto 2023-06-27 07:42:14.256 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_min_temp: 0.0 2023-06-27 07:42:14.256 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_max_temp: 0.0

Trace when trying to change HVAC Mode 2023-06-27 07:47:24.667 DEBUG (MainThread) [custom_components.aqua_temp.climate] Set HVAC Mode to: heat 2023-06-27 07:47:24.667 INFO (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Sending request to control device, Data: {'param': [{'device_code': '34EAE7854EAE', 'protocol_code': 'power', 'value': '1'}]} 2023-06-27 07:47:24.701 WARNING (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] HTTP request to app/device/control.json, Status: 401, Message: 2023-06-27 07:47:24.703 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139858646857488] Failed to set value of Power to {'param': [{'device_code': '34EAE7854EAE', 'protocol_code': 'power', 'value': '1'}]}, Error: HTTP request to app/device/control.json, Status: 401, Message: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 205, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1910, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1950, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 226, in handle_service await service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 811, in entity_service_call future.result() # pop exception if have ^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1034, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 851, in _handle_entity_call await result File "/config/custom_components/aqua_temp/climate.py", line 123, in async_set_hvac_mode await self._local_coordinator.set_hvac_mode(self._device_code, hvac_mode) File "/config/custom_components/aqua_temp/managers/aqua_temp_coordinator.py", line 89, in set_hvac_mode await self._api.set_hvac_mode(device_code, hvac_mode) File "/config/custom_components/aqua_temp/managers/aqua_temp_api.py", line 185, in set_hvac_mode await self._set_power_mode(device_code, POWER_MODE_ON) File "/config/custom_components/aqua_temp/managers/aqua_temp_api.py", line 225, in _set_power_mode await self._perform_action(request_data, ProtocolCode.POWER) File "/config/custom_components/aqua_temp/managers/aqua_temp_api.py", line 282, in _perform_action raise OperationFailedException(operation, request_data, error_msg) custom_components.aqua_temp.common.exceptions.OperationFailedException: Failed to set value of Power to {'param': [{'device_code': '34EAE7854EAE', 'protocol_code': 'power', 'value': '1'}]}, Error: HTTP request to app/device/control.json, Status: 401, Message:

The Pump is still available using aquatemp App

elad-bar commented 1 year ago

What happens if you try to reload the integration/ restart ha?

legantois commented 1 year ago

When i completly restart HA, it is back to normal

legantois commented 1 year ago

i was on 3.0.4 -> i download 3.0.12 and keep you informed

elad-bar commented 1 year ago

Can you pls try v3.0.13 and update?

Thanks

elad-bar commented 1 year ago

@legantois any updates?

thanks

legantois commented 1 year ago

Was working well until (device can still be accessed via aquatemp app)

2023-07-01 09:29:28.214 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Starting to update device: 34EAE7854EAE 2023-07-01 09:29:28.311 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Request to https://cloud.linked-go.com:449/crmservice/api/app/device/getDataByCode, Body: {'deviceCode': '34EAE7854EAE', 'protocalCodes': ['Mode', 'Power', 'Mode', 'Manual-mute', 'Set_Temp', '2074', '2075', '2076', '2077', '1158', '1159', '2064', 'ver', 'software_code', 'D01', 'D01-bar', 'D02', 'D03', 'D04', 'D06', 'D07', 'D08', 'D08-bar', 'D09', 'D10', 'D10-bar', 'E01', 'E02', 'E03', 'E04', 'E05', 'E06', 'E07', 'E09', 'E10', 'E11', 'E12', 'F01', 'F02', 'F02-bar', 'F03', 'F03-bar', 'F04', 'F04-bar', 'F05', 'F05-bar', 'F06', 'F06-bar', 'F07', 'F07-bar', 'F10', 'F11', 'F11-r', 'F12', 'F12-r', 'F13', 'F13-r', 'F14', 'F15', 'F16', 'F16-r', 'F17', 'F18', 'F19', 'F19-r', 'F20', 'H01', 'H02', 'H03', 'H06', 'H07', 'H08', 'H09', 'H10', 'H11', 'H12', 'H13', 'H14', 'H15', 'H16', 'H17', 'H18', 'H19', 'H20', 'H21', 'H22', 'H23', 'H24', 'H25', 'H26', 'H27', 'H28', 'H29', 'H30', 'H31', 'H32', 'H33', 'H34', 'H35', 'H36', 'H37', 'H38', 'H39', 'H40', 'H41', 'H42', 'H43', 'O01', 'O02', 'O03', 'O04', 'O05', 'O06', 'O07', 'O08', 'O09', 'P01', 'P02', 'P03', 'P04', 'P05', 'P06', 'P07', 'P08', 'P09', 'R01', 'R02', 'R03', 'R04', 'R05', 'R08', 'R09', 'R10', 'R11', 'R12', 'S01', 'S02', 'S03', 'S04', 'S05', 'S06', 'T01', 'T02', 'T03', 'T04', 'T05', 'T06', 'T07', 'T08', 'T09', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19', 'T20', 'T21', 'T22', 'T23', 'T24', 'T25', 'T26', 'T27', 'T28']}, Result: {'error_msg': '请重新登录', 'error_msg_code': '', 'isReusltSuc': False, 'objectResult': None, 'error_code': '-100'} 2023-07-01 09:29:28.311 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Error fetching parameters, Error: 'NoneType' object is not iterable, Line: 165 2023-07-01 09:29:28.313 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_coordinator] Finished fetching Aqua Temp data in 0.100 seconds (success: True) 2023-07-01 09:29:28.314 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Target temp PC R02, HA Mode: heat 2023-07-01 09:29:28.314 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_hvac_mode: off 2023-07-01 09:29:28.314 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_target_temperature: None 2023-07-01 09:29:28.314 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_fan_mode: auto 2023-07-01 09:29:28.314 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_min_temp: 8.0 2023-07-01 09:29:28.314 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_max_temp: 35.0 2023-07-01 09:29:42.193 DEBUG (MainThread) [custom_components.aqua_temp.climate] Set HVAC Mode to: heat 2023-07-01 09:29:42.193 INFO (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Sending request to control device, Data: {'param': [{'deviceCode': '34EAE7854EAE', 'protocolCode': 'power', 'value': '1'}]} 2023-07-01 09:29:42.219 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Request to https://cloud.linked-go.com:449/crmservice/api/app/device/control, Body: {'param': [{'deviceCode': '34EAE7854EAE', 'protocolCode': 'power', 'value': '1'}]}, Result: {'error_msg': '请重新登录', 'error_msg_code': '', 'isReusltSuc': False, 'objectResult': None, 'error_code': '-100'} 2023-07-01 09:29:42.221 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140376788677840] Failed to set value of Power to {'param': [{'deviceCode': '34EAE7854EAE', 'protocolCode': 'power', 'value': '1'}]}, Error: 请重新登录 Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 205, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1910, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1950, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 226, in handle_service await service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 811, in entity_service_call future.result() # pop exception if have ^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1034, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 851, in _handle_entity_call await result File "/config/custom_components/aqua_temp/climate.py", line 120, in async_set_hvac_mode await self._local_coordinator.set_hvac_mode(self._device_code, hvac_mode) File "/config/custom_components/aqua_temp/managers/aqua_temp_coordinator.py", line 96, in set_hvac_mode await self._api.set_hvac_mode(device_code, hvac_mode) File "/config/custom_components/aqua_temp/managers/aqua_temp_api.py", line 236, in set_hvac_mode await self._set_power_mode(device_code, POWER_MODE_ON) File "/config/custom_components/aqua_temp/managers/aqua_temp_api.py", line 290, in _set_power_mode await self._perform_action(request_data, power_pc_key) File "/config/custom_components/aqua_temp/managers/aqua_temp_api.py", line 367, in _perform_action raise OperationFailedException(operation, request_data, error_msg) custom_components.aqua_temp.common.exceptions.OperationFailedException: Failed to set value of Power to {'param': [{'deviceCode': '34EAE7854EAE', 'protocolCode': 'power', 'value': '1'}]}, Error: 请重新登录 2023-07-01 09:29:58.213 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Starting to update device: 34EAE7854EAE 2023-07-01 09:29:58.305 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Request to https://cloud.linked-go.com:449/crmservice/api/app/device/getDataByCode, Body: {'deviceCode': '34EAE7854EAE', 'protocalCodes': ['Mode', 'Power', 'Mode', 'Manual-mute', 'Set_Temp', '2074', '2075', '2076', '2077', '1158', '1159', '2064', 'ver', 'software_code', 'D01', 'D01-bar', 'D02', 'D03', 'D04', 'D06', 'D07', 'D08', 'D08-bar', 'D09', 'D10', 'D10-bar', 'E01', 'E02', 'E03', 'E04', 'E05', 'E06', 'E07', 'E09', 'E10', 'E11', 'E12', 'F01', 'F02', 'F02-bar', 'F03', 'F03-bar', 'F04', 'F04-bar', 'F05', 'F05-bar', 'F06', 'F06-bar', 'F07', 'F07-bar', 'F10', 'F11', 'F11-r', 'F12', 'F12-r', 'F13', 'F13-r', 'F14', 'F15', 'F16', 'F16-r', 'F17', 'F18', 'F19', 'F19-r', 'F20', 'H01', 'H02', 'H03', 'H06', 'H07', 'H08', 'H09', 'H10', 'H11', 'H12', 'H13', 'H14', 'H15', 'H16', 'H17', 'H18', 'H19', 'H20', 'H21', 'H22', 'H23', 'H24', 'H25', 'H26', 'H27', 'H28', 'H29', 'H30', 'H31', 'H32', 'H33', 'H34', 'H35', 'H36', 'H37', 'H38', 'H39', 'H40', 'H41', 'H42', 'H43', 'O01', 'O02', 'O03', 'O04', 'O05', 'O06', 'O07', 'O08', 'O09', 'P01', 'P02', 'P03', 'P04', 'P05', 'P06', 'P07', 'P08', 'P09', 'R01', 'R02', 'R03', 'R04', 'R05', 'R08', 'R09', 'R10', 'R11', 'R12', 'S01', 'S02', 'S03', 'S04', 'S05', 'S06', 'T01', 'T02', 'T03', 'T04', 'T05', 'T06', 'T07', 'T08', 'T09', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19', 'T20', 'T21', 'T22', 'T23', 'T24', 'T25', 'T26', 'T27', 'T28']}, Result: {'error_msg': '请重新登录', 'error_msg_code': '', 'isReusltSuc': False, 'objectResult': None, 'error_code': '-100'} 2023-07-01 09:29:58.305 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Error fetching parameters, Error: 'NoneType' object is not iterable, Line: 165 2023-07-01 09:29:58.308 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_coordinator] Finished fetching Aqua Temp data in 0.095 seconds (success: True) 2023-07-01 09:29:58.308 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Target temp PC R02, HA Mode: heat 2023-07-01 09:29:58.308 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_hvac_mode: off 2023-07-01 09:29:58.308 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_target_temperature: None 2023-07-01 09:29:58.308 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_fan_mode: auto 2023-07-01 09:29:58.308 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_min_temp: 8.0 2023-07-01 09:29:58.308 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_max_temp: 35.0 2023-07-01 09:30:28.215 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Starting to update device: 34EAE7854EAE 2023-07-01 09:30:28.315 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Request to https://cloud.linked-go.com:449/crmservice/api/app/device/getDataByCode, Body: {'deviceCode': '34EAE7854EAE', 'protocalCodes': ['Mode', 'Power', 'Mode', 'Manual-mute', 'Set_Temp', '2074', '2075', '2076', '2077', '1158', '1159', '2064', 'ver', 'software_code', 'D01', 'D01-bar', 'D02', 'D03', 'D04', 'D06', 'D07', 'D08', 'D08-bar', 'D09', 'D10', 'D10-bar', 'E01', 'E02', 'E03', 'E04', 'E05', 'E06', 'E07', 'E09', 'E10', 'E11', 'E12', 'F01', 'F02', 'F02-bar', 'F03', 'F03-bar', 'F04', 'F04-bar', 'F05', 'F05-bar', 'F06', 'F06-bar', 'F07', 'F07-bar', 'F10', 'F11', 'F11-r', 'F12', 'F12-r', 'F13', 'F13-r', 'F14', 'F15', 'F16', 'F16-r', 'F17', 'F18', 'F19', 'F19-r', 'F20', 'H01', 'H02', 'H03', 'H06', 'H07', 'H08', 'H09', 'H10', 'H11', 'H12', 'H13', 'H14', 'H15', 'H16', 'H17', 'H18', 'H19', 'H20', 'H21', 'H22', 'H23', 'H24', 'H25', 'H26', 'H27', 'H28', 'H29', 'H30', 'H31', 'H32', 'H33', 'H34', 'H35', 'H36', 'H37', 'H38', 'H39', 'H40', 'H41', 'H42', 'H43', 'O01', 'O02', 'O03', 'O04', 'O05', 'O06', 'O07', 'O08', 'O09', 'P01', 'P02', 'P03', 'P04', 'P05', 'P06', 'P07', 'P08', 'P09', 'R01', 'R02', 'R03', 'R04', 'R05', 'R08', 'R09', 'R10', 'R11', 'R12', 'S01', 'S02', 'S03', 'S04', 'S05', 'S06', 'T01', 'T02', 'T03', 'T04', 'T05', 'T06', 'T07', 'T08', 'T09', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19', 'T20', 'T21', 'T22', 'T23', 'T24', 'T25', 'T26', 'T27', 'T28']}, Result: {'error_msg': '请重新登录', 'error_msg_code': '', 'isReusltSuc': False, 'objectResult': None, 'error_code': '-100'} 2023-07-01 09:30:28.315 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Error fetching parameters, Error: 'NoneType' object is not iterable, Line: 165 2023-07-01 09:30:28.318 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_coordinator] Finished fetching Aqua Temp data in 0.103 seconds (success: True) 2023-07-01 09:30:28.318 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Target temp PC R02, HA Mode: heat 2023-07-01 09:30:28.318 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_hvac_mode: off 2023-07-01 09:30:28.319 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_target_temperature: None 2023-07-01 09:30:28.319 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_fan_mode: auto 2023-07-01 09:30:28.319 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_min_temp: 8.0 2023-07-01 09:30:28.319 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_max_temp: 35.0 2023-07-01 09:30:58.213 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Starting to update device: 34EAE7854EAE 2023-07-01 09:30:58.308 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Request to https://cloud.linked-go.com:449/crmservice/api/app/device/getDataByCode, Body: {'deviceCode': '34EAE7854EAE', 'protocalCodes': ['Mode', 'Power', 'Mode', 'Manual-mute', 'Set_Temp', '2074', '2075', '2076', '2077', '1158', '1159', '2064', 'ver', 'software_code', 'D01', 'D01-bar', 'D02', 'D03', 'D04', 'D06', 'D07', 'D08', 'D08-bar', 'D09', 'D10', 'D10-bar', 'E01', 'E02', 'E03', 'E04', 'E05', 'E06', 'E07', 'E09', 'E10', 'E11', 'E12', 'F01', 'F02', 'F02-bar', 'F03', 'F03-bar', 'F04', 'F04-bar', 'F05', 'F05-bar', 'F06', 'F06-bar', 'F07', 'F07-bar', 'F10', 'F11', 'F11-r', 'F12', 'F12-r', 'F13', 'F13-r', 'F14', 'F15', 'F16', 'F16-r', 'F17', 'F18', 'F19', 'F19-r', 'F20', 'H01', 'H02', 'H03', 'H06', 'H07', 'H08', 'H09', 'H10', 'H11', 'H12', 'H13', 'H14', 'H15', 'H16', 'H17', 'H18', 'H19', 'H20', 'H21', 'H22', 'H23', 'H24', 'H25', 'H26', 'H27', 'H28', 'H29', 'H30', 'H31', 'H32', 'H33', 'H34', 'H35', 'H36', 'H37', 'H38', 'H39', 'H40', 'H41', 'H42', 'H43', 'O01', 'O02', 'O03', 'O04', 'O05', 'O06', 'O07', 'O08', 'O09', 'P01', 'P02', 'P03', 'P04', 'P05', 'P06', 'P07', 'P08', 'P09', 'R01', 'R02', 'R03', 'R04', 'R05', 'R08', 'R09', 'R10', 'R11', 'R12', 'S01', 'S02', 'S03', 'S04', 'S05', 'S06', 'T01', 'T02', 'T03', 'T04', 'T05', 'T06', 'T07', 'T08', 'T09', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19', 'T20', 'T21', 'T22', 'T23', 'T24', 'T25', 'T26', 'T27', 'T28']}, Result: {'error_msg': '请重新登录', 'error_msg_code': '', 'isReusltSuc': False, 'objectResult': None, 'error_code': '-100'} 2023-07-01 09:30:58.308 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Error fetching parameters, Error: 'NoneType' object is not iterable, Line: 165 2023-07-01 09:30:58.311 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_coordinator] Finished fetching Aqua Temp data in 0.098 seconds (success: True) 2023-07-01 09:30:58.311 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Target temp PC R02, HA Mode: heat 2023-07-01 09:30:58.312 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_hvac_mode: off 2023-07-01 09:30:58.312 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_target_temperature: None 2023-07-01 09:30:58.312 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_fan_mode: auto 2023-07-01 09:30:58.312 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_min_temp: 8.0 2023-07-01 09:30:58.312 DEBUG (MainThread) [custom_components.aqua_temp.climate] _attr_max_temp: 35.0

legantois commented 1 year ago

you can notice recuring error (every 30 sec)

The other error is because i asked via lovelace to turn water pump on @ 2023-07-01 09:29:42.193

elad-bar commented 1 year ago

What version are you using of the integration? According to the logs you are signed out from the account since you logged in the mobile app, That's a new policy they introduced lately, the only workaround is to wait for the next update process (every 30 seconds) and it should reconnect

elad-bar commented 1 year ago

I will work on workaround for that problem (retry mechanism when action fails due to 401 error)

legantois commented 1 year ago

V 3.0.13

app is closed

The integration keeps on the same error

only way to get access again is by rebooting HA. So may be usefull to close and reopen in case of 401 ?

elad-bar commented 1 year ago

You don't need to restart HA, just reload the integration, Will fix it in the upcoming version to do it faster

elad-bar commented 1 year ago

please check the new release v3.0.14, Added new sensor of API Status, will get disconnected state when the integration got "disconnection" error (401), it will also try to reauthenticate, so the expectation that you will just see that it got disconnected and connected again, but if it's not working, you can base automation upon state change, pls let me know how it works for you

thanks

elad-bar commented 1 year ago

@legantois can we close the issue or is it still an issue? latest version is v3.0.17.

thanks

legantois commented 1 year ago

i was still on 3..0.14

New Errors on this old version, seems token discussion opened on the other discussion seems related to the same issue, correct ?

2023-07-11 09:19:51.248 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to update (Attempt #3), Error: 'NoneType' object is not iterable, Line: 177 2023-07-11 09:20:21.269 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to update (Attempt #3), Error: 'NoneType' object is not iterable, Line: 177 2023-07-11 09:20:51.233 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to update (Attempt #3), Error: 'NoneType' object is not iterable, Line: 177 2023-07-11 09:21:21.458 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to update (Attempt #3), Error: 'NoneType' object is not iterable, Line: 177 2023-07-11 09:21:51.257 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to update (Attempt #3), Error: 'NoneType' object is not iterable, Line: 177

elad-bar commented 1 year ago

@legantois latest release is 3.0.19, can you pls update to latest and share whether it works for you?

Thanks

legantois commented 1 year ago

After reading the other discussion, I believe it is another issue. as i am NOT using the aqua temp app anymore (i only use the aqua temp app when i see errors in HA to check if i can access with this app, which is almost always the case)

i migrate to 3.0.19 and let you know

legantois commented 1 year ago

Got this this morning - no possibility to control anything...

All back to normal after integration reload

2023-07-13 07:40:47.149 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to update (Attempt #3), Error: 'NoneType' object has no attribute 'get', Line: 143 2023-07-13 07:41:17.154 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-13 07:57:57.515 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-13 08:14:37.866 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-13 08:14:37.889 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to update (Attempt #3), Error: 'NoneType' object has no attribute 'get', Line: 143 2023-07-13 08:15:07.156 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-13 08:31:47.484 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-13 08:48:27.856 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-13 08:48:27.885 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to update (Attempt #3), Error: 'NoneType' object has no attribute 'get', Line: 143 2023-07-13 08:48:57.155 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-13 09:05:37.496 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录

Error messsage when trying to switch heatpump to on: 2023-07-13 09:17:07.845 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140150272259600] Failed to set value of Power to {'param': [{'deviceCode': '34EAE7854EAE', 'protocolCode': 'power', 'value': '1'}]}, Error: 请重新登录 Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 205, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1957, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 1997, in _execute_service return await cast( ^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 235, in handle_service return await service.entity_service_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 845, in entity_service_call response_data = task.result() # pop exception if have ^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1192, in async_request_call return await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 889, in _handle_entity_call result = await task ^^^^^^^^^^ File "/config/custom_components/aqua_temp/climate.py", line 119, in async_set_hvac_mode await self._local_coordinator.set_hvac_mode(self._device_code, hvac_mode) File "/config/custom_components/aqua_temp/managers/aqua_temp_coordinator.py", line 101, in set_hvac_mode await self._api.set_hvac_mode(device_code, hvac_mode) File "/config/custom_components/aqua_temp/managers/aqua_temp_api.py", line 235, in set_hvac_mode await self._set_power_mode(device_code, POWER_MODE_ON) File "/config/custom_components/aqua_temp/managers/aqua_temp_api.py", line 289, in _set_power_mode await self._perform_action(request_data, power_pc_key) File "/config/custom_components/aqua_temp/managers/aqua_temp_api.py", line 370, in _perform_action raise OperationFailedException(operation, request_data, error_msg) custom_components.aqua_temp.common.exceptions.OperationFailedException: Failed to set value of Power to {'param': [{'deviceCode': '34EAE7854EAE', 'protocolCode': 'power', 'value': '1'}]}, Error: 请重新登录

elad-bar commented 1 year ago

released v3.0.21, please check it

thanks

legantois commented 1 year ago

V3.0.21

2023-07-16 04:29:36.148 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to update (Attempt #3), Error: 'NoneType' object has no attribute 'get', Line: 144 2023-07-16 04:30:06.423 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 04:46:46.761 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 05:03:27.920 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 05:03:27.951 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to update (Attempt #3), Error: 'NoneType' object has no attribute 'get', Line: 144 2023-07-16 05:03:57.415 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 05:20:37.815 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 05:37:18.146 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 05:37:18.174 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to update (Attempt #3), Error: 'NoneType' object has no attribute 'get', Line: 144 2023-07-16 05:37:48.420 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 05:54:28.787 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 06:11:09.105 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 06:11:09.132 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to update (Attempt #3), Error: 'NoneType' object has no attribute 'get', Line: 144 2023-07-16 06:11:39.425 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 06:28:19.818 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 06:45:00.272 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 06:45:00.302 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to update (Attempt #3), Error: 'NoneType' object has no attribute 'get', Line: 144 2023-07-16 06:45:30.429 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 07:02:10.731 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 07:18:51.085 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 07:18:51.111 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to update (Attempt #3), Error: 'NoneType' object has no attribute 'get', Line: 144 2023-07-16 07:19:21.427 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 07:36:02.516 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 07:52:42.801 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 07:52:42.827 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to update (Attempt #3), Error: 'NoneType' object has no attribute 'get', Line: 144 2023-07-16 07:53:12.420 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 08:09:53.582 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 08:26:33.942 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 08:26:33.968 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to update (Attempt #3), Error: 'NoneType' object has no attribute 'get', Line: 144 2023-07-16 08:27:03.427 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 08:43:43.796 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 09:00:24.975 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 09:00:25.001 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to update (Attempt #3), Error: 'NoneType' object has no attribute 'get', Line: 144 2023-07-16 09:00:55.423 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 09:17:35.781 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 09:34:16.113 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 09:34:16.140 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to update (Attempt #3), Error: 'NoneType' object has no attribute 'get', Line: 144 2023-07-16 09:34:46.419 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录 2023-07-16 09:51:26.798 ERROR (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Failed to fetch parameters, Error: 请重新登录

elad-bar commented 1 year ago

I think I understand the issue, but will need more logs from you with debug level, code currently handling error -100 as expired token, you got 请重新登录 which according to reverso.net means - sign in again, so I guess I need to add more error codes to the list, Can you pls share debug log level?

thanks

elad-bar commented 1 year ago

please check latest version v3.0.23, I think the issue is related to typo I had within the class that defines the key of the error code, it might require removing the integration and re-adding it after update to latest version and restart HA.

please let me know if it solved the issue, thanks

elad-bar commented 1 year ago

@legantois is that issue still relevant or can it get closed?

thanks

elad-bar commented 1 year ago

Issue is opened for long time without any update, closing it, if still happens, pls create new issue with details

Thanks