cjaliaga / home-assistant-aquarea

Home Assistant integration for Panasonic Aquarea devices connected to Aquarea Smart Cloud
MIT License
70 stars 13 forks source link

Integration stopped working | "Session is closed" | 1000-1503 - Failed communication with adaptor #49

Open jvuotila opened 10 months ago

jvuotila commented 10 months ago

Integration doesn't work anymore. It stopped working 12.9.2023 at 1.30 (GMT+2). There is error logs.

This error originated from a custom integration.

Logger: homeassistant.config_entries Source: custom_components/aquarea/init.py:52 Integration: Aquarea Smart Cloud (documentation, issues) First occurred: 18:39:22 (2 occurrences) Last logged: 18:43:26

Error setting up entry juho.vuotila@gmail.com for aquarea Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/aquarea/init.py", line 52, in async_setup_entry await client.login() File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 201, in login response: aiohttp.ClientResponse = await self.request( ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 154, in request resp = await self._sess.request(method, AQUAREA_SERVICE_BASE + url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 400, in _request raise RuntimeError("Session is closed") RuntimeError: Session is closed

pspik commented 9 months ago

It seems that Smart Cloud got an update rolled out, not it Has new options available via web interface (force defrost, force dhw, force strong/assisted mode etc.). Maybe it influences the communication with the integration? Mine stopped today, yesterday Smart Cloud service for not have those options. Frankly, they would be very useful.

cjaliaga commented 9 months ago

I'll take a look to them

mikehabermeier commented 7 months ago

Hi to all. I am a new home assistant guy and try to bind my heat pump to home assistant. But it seems I get the same error.

Logger: homeassistant.config_entries Source: config_entries.py:402 First occurred: 17:03:49 (1 occurrences) Last logged: 17:03:49

Error setting up entry mike@joshuasdream.de for aquarea Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 402, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/aquarea/init.py", line 52, in async_setup_entry await client.login() File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 204, in login response: aiohttp.ClientResponse = await self.request( ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 157, in request resp = await self._sess.request(method, AQUAREA_SERVICE_BASE + url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 400, in _request raise RuntimeError("Session is closed") RuntimeError: Session is closed

All is fine via the cloud. Any help would be nice.

Chees, Mike

cjaliaga commented 7 months ago

I'll see if I can release a preview version with a couple of ideas that I have. I'm not able to reproduce this issue in my environment so I'll need your help to see if we can fix this 😊

I'll let you know when I have released it.

mikehabermeier commented 7 months ago

Yes of course. We can help. I am here ;-) If you need the login for the cloud or something else. Just let me know! Cheers, Mike

cjaliaga commented 7 months ago

@mikehabermeier I just published one test as beta release: https://github.com/cjaliaga/home-assistant-aquarea/releases/tag/v0.3.1-preview1

Could you please install that version and let me know how it goes for you? Thanks!

image

mikehabermeier commented 7 months ago

Hi Carlos,

sorry. It is not working. Cheers, Mike Bildschirmfoto 2023-11-22 um 18 19 11

Bildschirmfoto 2023-11-22 um 18 18 34

cjaliaga commented 7 months ago

@mikehabermeier could you share the logs for the new issue?

mikehabermeier commented 7 months ago

Sorry. Of course. I missed it. Sorry.' Here is what I have found. I have attached the complete log to this post.

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 402, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/aquarea/init.py", line 45, in async_setup_entry devices = await try_get_devices(hass, entry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/aquarea/init.py", line 97, in try_get_devices devices = await get_devices() ^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/aquarea/init.py", line 87, in get_devices await client.login() File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 204, in login response: aiohttp.ClientResponse = await self.request( ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 169, in request raise ApiError(error.error_code, error.error_message) aioaquarea.errors.ApiError: API error: 1000-1999 - System error occurred. Sorry for your inconvenience. 2023-11-22 21:00:10.224 WARNING (Recorder) [homeassistant.components.sensor.recorder] Entity sensor.strom_gefriertruhe_zusammenfassung_geliefert from integration zha has state class total_increasing, but its state is not strictly increasing. Triggered by state 6.04 (6.05) with last_updated set to 2023-11-22T19:56:45.670399+00:00. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+zha%22 2023-11-23 00:09:03.738 WARNING (MainThread) [pyeasee.easee] Server failure(504: https://api.easee.com/api/sites/247718/breakdown/2023-11-22T23:00:00+00:00/2023-11-22T23:08:34+00:00) 2023-11-23 00:09:41.435 WARNING (MainThread) [pyeasee.easee] Server failure(504: https://api.easee.com/api/sites/247718/breakdown/2022-12-31T23:00:00+00:00/2023-11-22T23:08:34+00:00) 2023-11-23 00:51:09.998 WARNING (MainThread) [zigpy.zcl] [0x626D:1:0xe001] Unknown cluster command 225 b'\x08iP\xf1,g\x02\x00\x00\x1d\x02\x00\x00\xc9\x01\x00\x00u\x01\x00\x00"\x01\x00\x00\xd1\x00\x00\x00|\x00\x00\x00&\x00\x00\x00\x00' 2023-11-23 00:51:10.197 WARNING (MainThread) [zigpy.zcl] [0x626D:1:0xe001] Unknown cluster command 225 b'\x08iP\xf1,g\x02\x00\x00\x1d\x02\x00\x00\xc9\x01\x00\x00u\x01\x00\x00"\x01\x00\x00\xd1\x00\x00\x00|\x00\x00\x00&\x00\x00\x00\x00' 2023-11-23 00:51:10.398 WARNING (MainThread) [zigpy.zcl] [0x626D:1:0xe001] Unknown cluster command 225 b'\x08iP\xf1,g\x02\x00\x00\x1d\x02\x00\x00\xc9\x01\x00\x00u\x01\x00\x00"\x01\x00\x00\xd1\x00\x00\x00|\x00\x00\x00&\x00\x00\x00\x00' 2023-11-23 00:51:10.599 WARNING (MainThread) [zigpy.zcl] [0x626D:1:0xe001] Unknown cluster command 225 b'\x08iP\xf1,g\x02\x00\x00\x1d\x02\x00\x00\xc9\x01\x00\x00u\x01\x00\x00"\x01\x00\x00\xd1\x00\x00\x00|\x00\x00\x00&\x00\x00\x00\x00' 2023-11-23 00:51:10.799 WARNING (MainThread) [zigpy.zcl] [0x626D:1:0xe001] Unknown cluster command 225 b'\x08iP\xf1,g\x02\x00\x00\x1d\x02\x00\x00\xc9\x01\x00\x00u\x01\x00\x00"\x01\x00\x00\xd1\x00\x00\x00|\x00\x00\x00&\x00\x00\x00\x00' 2023-11-23 00:51:11.000 WARNING (MainThread) [zigpy.zcl] [0x626D:1:0xe001] Unknown cluster command 225 b'\x08iP\xf1,g\x02\x00\x00\x1d\x02\x00\x00\xc9\x01\x00\x00u\x01\x00\x00"\x01\x00\x00\xd1\x00\x00\x00|\x00\x00\x00&\x00\x00\x00\x00' 2023-11-23 00:51:11.201 WARNING (MainThread) [zigpy.zcl] [0x626D:1:0xe001] Unknown cluster command 225 b'\x08iP\xf1,g\x02\x00\x00\x1d\x02\x00\x00\xc9\x01\x00\x00u\x01\x00\x00"\x01\x00\x00\xd1\x00\x00\x00|\x00\x00\x00&\x00\x00\x00\x00' 2023-11-23 00:51:11.402 WARNING (MainThread) [zigpy.zcl] [0x626D:1:0xe001] Unknown cluster command 225 b'\x08iP\xf1,g\x02\x00\x00\x1d\x02\x00\x00\xc9\x01\x00\x00u\x01\x00\x00"\x01\x00\x00\xd1\x00\x00\x00|\x00\x00\x00&\x00\x00\x00\x00' 2023-11-23 00:51:11.601 WARNING (MainThread) [zigpy.zcl] [0x626D:1:0xe001] Unknown cluster command 225 b'\x08iP\xf1,g\x02\x00\x00\x1d\x02\x00\x00\xc9\x01\x00\x00u\x01\x00\x00"\x01\x00\x00\xd1\x00\x00\x00|\x00\x00\x00&\x00\x00\x00\x00' 2023-11-23 00:51:11.802 WARNING (MainThread) [zigpy.zcl] [0x626D:1:0xe001] Unknown cluster command 225 b'\x08iP\xf1,g\x02\x00\x00\x1d\x02\x00\x00\xc9\x01\x00\x00u\x01\x00\x00"\x01\x00\x00\xd1\x00\x00\x00|\x00\x00\x00&\x00\x00\x00\x00' 2023-11-23 00:51:17.994 WARNING (MainThread) [zigpy.zcl] [0xC789:1:0xe001] Unknown cluster command 225 b'\x02pP\xf1,k\x00\x00\x00k\x00\x00\x00\x00' 2023-11-23 00:51:18.194 WARNING (MainThread) [zigpy.zcl] [0xC789:1:0xe001] Unknown cluster command 225 b'\x02pP\xf1,k\x00\x00\x00k\x00\x00\x00\x00' 2023-11-23 00:51:18.394 WARNING (MainThread) [zigpy.zcl] [0xC789:1:0xe001] Unknown cluster command 225 b'\x02pP\xf1,k\x00\x00\x00k\x00\x00\x00\x00' 2023-11-23 00:51:18.594 WARNING (MainThread) [zigpy.zcl] [0xC789:1:0xe001] Unknown cluster command 225 b'\x02pP\xf1,k\x00\x00\x00k\x00\x00\x00\x00' 2023-11-23 00:51:18.796 WARNING (MainThread) [zigpy.zcl] [0xC789:1:0xe001] Unknown cluster command 225 b'\x02pP\xf1,k\x00\x00\x00k\x00\x00\x00\x00' 2023-11-23 00:51:18.996 WARNING (MainThread) [zigpy.zcl] [0xC789:1:0xe001] Unknown cluster command 225 b'\x02pP\xf1,k\x00\x00\x00k\x00\x00\x00\x00' 2023-11-23 00:51:19.197 WARNING (MainThread) [zigpy.zcl] [0xC789:1:0xe001] Unknown cluster command 225 b'\x02pP\xf1,k\x00\x00\x00k\x00\x00\x00\x00' 2023-11-23 00:51:19.397 WARNING (MainThread) [zigpy.zcl] [0xC789:1:0xe001] Unknown cluster command 225 b'\x02pP\xf1,k\x00\x00\x00k\x00\x00\x00\x00' 2023-11-23 00:51:19.596 WARNING (MainThread) [zigpy.zcl] [0xC789:1:0xe001] Unknown cluster command 225 b'\x02pP\xf1,k\x00\x00\x00k\x00\x00\x00\x00' 2023-11-23 00:51:19.798 WARNING (MainThread) [zigpy.zcl] [0xC789:1:0xe001] Unknown cluster command 225 b'\x02pP\xf1,k\x00\x00\x00k\x00\x00\x00\x00' 2023-11-23 00:51:34.557 WARNING (MainThread) [zigpy.zcl] [0x03C6:1:0xe001] Unknown cluster command 225 b'\x08\x80P\xf1,\xe7\x05\x00\x00\x1b\x05\x00\x00P\x04\x00\x00\x84\x03\x00\x00\xb8\x02\x00\x00\xec\x01\x00\x00 \x01\x00\x00U\x00\x00\x00\x00' 2023-11-23 00:51:34.758 WARNING (MainThread) [zigpy.zcl] [0x03C6:1:0xe001] Unknown cluster command 225 b'\x08\x80P\xf1,\xe7\x05\x00\x00\x1b\x05\x00\x00P\x04\x00\x00\x84\x03\x00\x00\xb8\x02\x00\x00\xec\x01\x00\x00 \x01\x00\x00U\x00\x00\x00\x00' 2023-11-23 00:51:34.958 WARNING (MainThread) [zigpy.zcl] [0x03C6:1:0xe001] Unknown cluster command 225 b'\x08\x80P\xf1,\xe7\x05\x00\x00\x1b\x05\x00\x00P\x04\x00\x00\x84\x03\x00\x00\xb8\x02\x00\x00\xec\x01\x00\x00 \x01\x00\x00U\x00\x00\x00\x00' 2023-11-23 00:51:35.159 WARNING (MainThread) [zigpy.zcl] [0x03C6:1:0xe001] Unknown cluster command 225 b'\x08\x80P\xf1,\xe7\x05\x00\x00\x1b\x05\x00\x00P\x04\x00\x00\x84\x03\x00\x00\xb8\x02\x00\x00\xec\x01\x00\x00 \x01\x00\x00U\x00\x00\x00\x00' 2023-11-23 00:51:35.360 WARNING (MainThread) [zigpy.zcl] [0x03C6:1:0xe001] Unknown cluster command 225 b'\x08\x80P\xf1,\xe7\x05\x00\x00\x1b\x05\x00\x00P\x04\x00\x00\x84\x03\x00\x00\xb8\x02\x00\x00\xec\x01\x00\x00 \x01\x00\x00U\x00\x00\x00\x00' 2023-11-23 00:51:35.560 WARNING (MainThread) [zigpy.zcl] [0x03C6:1:0xe001] Unknown cluster command 225 b'\x08\x80P\xf1,\xe7\x05\x00\x00\x1b\x05\x00\x00P\x04\x00\x00\x84\x03\x00\x00\xb8\x02\x00\x00\xec\x01\x00\x00 \x01\x00\x00U\x00\x00\x00\x00' 2023-11-23 00:51:35.761 WARNING (MainThread) [zigpy.zcl] [0x03C6:1:0xe001] Unknown cluster command 225 b'\x08\x80P\xf1,\xe7\x05\x00\x00\x1b\x05\x00\x00P\x04\x00\x00\x84\x03\x00\x00\xb8\x02\x00\x00\xec\x01\x00\x00 \x01\x00\x00U\x00\x00\x00\x00' 2023-11-23 00:51:35.962 WARNING (MainThread) [zigpy.zcl] [0x03C6:1:0xe001] Unknown cluster command 225 b'\x08\x80P\xf1,\xe7\x05\x00\x00\x1b\x05\x00\x00P\x04\x00\x00\x84\x03\x00\x00\xb8\x02\x00\x00\xec\x01\x00\x00 \x01\x00\x00U\x00\x00\x00\x00' 2023-11-23 00:51:36.162 WARNING (MainThread) [zigpy.zcl] [0x03C6:1:0xe001] Unknown cluster command 225 b'\x08\x80P\xf1,\xe7\x05\x00\x00\x1b\x05\x00\x00P\x04\x00\x00\x84\x03\x00\x00\xb8\x02\x00\x00\xec\x01\x00\x00 \x01\x00\x00U\x00\x00\x00\x00' 2023-11-23 00:51:36.363 WARNING (MainThread) [zigpy.zcl] [0x03C6:1:0xe001] Unknown cluster command 225 b'\x08\x80P\xf1,\xe7\x05\x00\x00\x1b\x05\x00\x00P\x04\x00\x00\x84\x03\x00\x00\xb8\x02\x00\x00\xec\x01\x00\x00 \x01\x00\x00U\x00\x00\x00\x00' 2023-11-23 00:51:48.384 WARNING (MainThread) [zigpy.zcl] [0x13A2:1:0xe001] Unknown cluster command 225 b'\x06yP\xf1,\x04\x03\x00\x00\x91\x02\x00\x00\x91\x02\x00\x00\x91\x02\x00\x00\xf1\x00\x00\x00\x90\x00\x00\x00\x00' 2023-11-23 00:51:48.584 WARNING (MainThread) [zigpy.zcl] [0x13A2:1:0xe001] Unknown cluster command 225 b'\x06yP\xf1,\x04\x03\x00\x00\x91\x02\x00\x00\x91\x02\x00\x00\x91\x02\x00\x00\xf1\x00\x00\x00\x90\x00\x00\x00\x00' 2023-11-23 00:51:48.794 WARNING (MainThread) [zigpy.zcl] [0x13A2:1:0xe001] Unknown cluster command 225 b'\x06yP\xf1,\x04\x03\x00\x00\x91\x02\x00\x00\x91\x02\x00\x00\x91\x02\x00\x00\xf1\x00\x00\x00\x90\x00\x00\x00\x00' 2023-11-23 00:51:48.990 WARNING (MainThread) [zigpy.zcl] [0x13A2:1:0xe001] Unknown cluster command 225 b'\x06yP\xf1,\x04\x03\x00\x00\x91\x02\x00\x00\x91\x02\x00\x00\x91\x02\x00\x00\xf1\x00\x00\x00\x90\x00\x00\x00\x00' 2023-11-23 00:51:49.186 WARNING (MainThread) [zigpy.zcl] [0x13A2:1:0xe001] Unknown cluster command 225 b'\x06yP\xf1,\x04\x03\x00\x00\x91\x02\x00\x00\x91\x02\x00\x00\x91\x02\x00\x00\xf1\x00\x00\x00\x90\x00\x00\x00\x00' 2023-11-23 00:51:49.388 WARNING (MainThread) [zigpy.zcl] [0x13A2:1:0xe001] Unknown cluster command 225 b'\x06yP\xf1,\x04\x03\x00\x00\x91\x02\x00\x00\x91\x02\x00\x00\x91\x02\x00\x00\xf1\x00\x00\x00\x90\x00\x00\x00\x00' 2023-11-23 00:51:49.585 WARNING (MainThread) [zigpy.zcl] [0x13A2:1:0xe001] Unknown cluster command 225 b'\x06yP\xf1,\x04\x03\x00\x00\x91\x02\x00\x00\x91\x02\x00\x00\x91\x02\x00\x00\xf1\x00\x00\x00\x90\x00\x00\x00\x00' 2023-11-23 00:51:49.789 WARNING (MainThread) [zigpy.zcl] [0x13A2:1:0xe001] Unknown cluster command 225 b'\x06yP\xf1,\x04\x03\x00\x00\x91\x02\x00\x00\x91\x02\x00\x00\x91\x02\x00\x00\xf1\x00\x00\x00\x90\x00\x00\x00\x00' 2023-11-23 00:51:49.991 WARNING (MainThread) [zigpy.zcl] [0x13A2:1:0xe001] Unknown cluster command 225 b'\x06yP\xf1,\x04\x03\x00\x00\x91\x02\x00\x00\x91\x02\x00\x00\x91\x02\x00\x00\xf1\x00\x00\x00\x90\x00\x00\x00\x00' 2023-11-23 00:51:50.191 WARNING (MainThread) [zigpy.zcl] [0x13A2:1:0xe001] Unknown cluster command 225 b'\x06yP\xf1,\x04\x03\x00\x00\x91\x02\x00\x00\x91\x02\x00\x00\x91\x02\x00\x00\xf1\x00\x00\x00\x90\x00\x00\x00\x00' 2023-11-23 00:51:55.700 WARNING (MainThread) [zigpy.zcl] [0x4344:1:0xe001] Unknown cluster command 225 b'\x08lP\xf1,u\x03\x00\x00\t\x03\x00\x00\x8c\x02\x00\x00\x15\x02\x00\x00\xa9\x01\x00\x00-\x01\x00\x00\xaa\x00\x00\x00:\x00\x00\x00\x00' 2023-11-23 00:51:55.905 WARNING (MainThread) [zigpy.zcl] [0x4344:1:0xe001] Unknown cluster command 225 b'\x08lP\xf1,u\x03\x00\x00\t\x03\x00\x00\x8c\x02\x00\x00\x15\x02\x00\x00\xa9\x01\x00\x00-\x01\x00\x00\xaa\x00\x00\x00:\x00\x00\x00\x00' 2023-11-23 00:51:56.106 WARNING (MainThread) [zigpy.zcl] [0x4344:1:0xe001] Unknown cluster command 225 b'\x08lP\xf1,u\x03\x00\x00\t\x03\x00\x00\x8c\x02\x00\x00\x15\x02\x00\x00\xa9\x01\x00\x00-\x01\x00\x00\xaa\x00\x00\x00:\x00\x00\x00\x00' 2023-11-23 00:51:56.301 WARNING (MainThread) [zigpy.zcl] [0x4344:1:0xe001] Unknown cluster command 225 b'\x08lP\xf1,u\x03\x00\x00\t\x03\x00\x00\x8c\x02\x00\x00\x15\x02\x00\x00\xa9\x01\x00\x00-\x01\x00\x00\xaa\x00\x00\x00:\x00\x00\x00\x00' 2023-11-23 00:51:56.502 WARNING (MainThread) [zigpy.zcl] [0x4344:1:0xe001] Unknown cluster command 225 b'\x08lP\xf1,u\x03\x00\x00\t\x03\x00\x00\x8c\x02\x00\x00\x15\x02\x00\x00\xa9\x01\x00\x00-\x01\x00\x00\xaa\x00\x00\x00:\x00\x00\x00\x00' 2023-11-23 00:51:56.701 WARNING (MainThread) [zigpy.zcl] [0x4344:1:0xe001] Unknown cluster command 225 b'\x08lP\xf1,u\x03\x00\x00\t\x03\x00\x00\x8c\x02\x00\x00\x15\x02\x00\x00\xa9\x01\x00\x00-\x01\x00\x00\xaa\x00\x00\x00:\x00\x00\x00\x00' 2023-11-23 00:51:56.903 WARNING (MainThread) [zigpy.zcl] [0x4344:1:0xe001] Unknown cluster command 225 b'\x08lP\xf1,u\x03\x00\x00\t\x03\x00\x00\x8c\x02\x00\x00\x15\x02\x00\x00\xa9\x01\x00\x00-\x01\x00\x00\xaa\x00\x00\x00:\x00\x00\x00\x00' 2023-11-23 00:51:57.103 WARNING (MainThread) [zigpy.zcl] [0x4344:1:0xe001] Unknown cluster command 225 b'\x08lP\xf1,u\x03\x00\x00\t\x03\x00\x00\x8c\x02\x00\x00\x15\x02\x00\x00\xa9\x01\x00\x00-\x01\x00\x00\xaa\x00\x00\x00:\x00\x00\x00\x00' 2023-11-23 00:51:57.304 WARNING (MainThread) [zigpy.zcl] [0x4344:1:0xe001] Unknown cluster command 225 b'\x08lP\xf1,u\x03\x00\x00\t\x03\x00\x00\x8c\x02\x00\x00\x15\x02\x00\x00\xa9\x01\x00\x00-\x01\x00\x00\xaa\x00\x00\x00:\x00\x00\x00\x00' 2023-11-23 00:51:57.505 WARNING (MainThread) [zigpy.zcl] [0x4344:1:0xe001] Unknown cluster command 225 b'\x08lP\xf1,u\x03\x00\x00\t\x03\x00\x00\x8c\x02\x00\x00\x15\x02\x00\x00\xa9\x01\x00\x00-\x01\x00\x00\xaa\x00\x00\x00:\x00\x00\x00\x00' 2023-11-23 00:52:00.148 WARNING (MainThread) [zigpy.zcl] [0xEC1D:1:0xe001] Unknown cluster command 225 b'\x06hP\xf1,\xf2\x03\x00\x00>\x03\x00\x00>\x03\x00\x00>\x03\x00\x00\xb0\x01\x00\x007\x01\x00\x00\x00' 2023-11-23 00:52:00.348 WARNING (MainThread) [zigpy.zcl] [0xEC1D:1:0xe001] Unknown cluster command 225 b'\x06hP\xf1,\xf2\x03\x00\x00>\x03\x00\x00>\x03\x00\x00>\x03\x00\x00\xb0\x01\x00\x007\x01\x00\x00\x00' 2023-11-23 00:52:00.549 WARNING (MainThread) [zigpy.zcl] [0xEC1D:1:0xe001] Unknown cluster command 225 b'\x06hP\xf1,\xf2\x03\x00\x00>\x03\x00\x00>\x03\x00\x00>\x03\x00\x00\xb0\x01\x00\x007\x01\x00\x00\x00' 2023-11-23 00:52:00.749 WARNING (MainThread) [zigpy.zcl] [0xEC1D:1:0xe001] Unknown cluster command 225 b'\x06hP\xf1,\xf2\x03\x00\x00>\x03\x00\x00>\x03\x00\x00>\x03\x00\x00\xb0\x01\x00\x007\x01\x00\x00\x00' 2023-11-23 00:52:00.950 WARNING (MainThread) [zigpy.zcl] [0xEC1D:1:0xe001] Unknown cluster command 225 b'\x06hP\xf1,\xf2\x03\x00\x00>\x03\x00\x00>\x03\x00\x00>\x03\x00\x00\xb0\x01\x00\x007\x01\x00\x00\x00' 2023-11-23 00:52:01.150 WARNING (MainThread) [zigpy.zcl] [0xEC1D:1:0xe001] Unknown cluster command 225 b'\x06hP\xf1,\xf2\x03\x00\x00>\x03\x00\x00>\x03\x00\x00>\x03\x00\x00\xb0\x01\x00\x007\x01\x00\x00\x00' 2023-11-23 00:52:01.352 WARNING (MainThread) [zigpy.zcl] [0xEC1D:1:0xe001] Unknown cluster command 225 b'\x06hP\xf1,\xf2\x03\x00\x00>\x03\x00\x00>\x03\x00\x00>\x03\x00\x00\xb0\x01\x00\x007\x01\x00\x00\x00' 2023-11-23 00:52:01.552 WARNING (MainThread) [zigpy.zcl] [0xEC1D:1:0xe001] Unknown cluster command 225 b'\x06hP\xf1,\xf2\x03\x00\x00>\x03\x00\x00>\x03\x00\x00>\x03\x00\x00\xb0\x01\x00\x007\x01\x00\x00\x00' 2023-11-23 00:52:01.752 WARNING (MainThread) [zigpy.zcl] [0xEC1D:1:0xe001] Unknown cluster command 225 b'\x06hP\xf1,\xf2\x03\x00\x00>\x03\x00\x00>\x03\x00\x00>\x03\x00\x00\xb0\x01\x00\x007\x01\x00\x00\x00' 2023-11-23 00:52:01.958 WARNING (MainThread) [zigpy.zcl] [0xEC1D:1:0xe001] Unknown cluster command 225 b'\x06hP\xf1,\xf2\x03\x00\x00>\x03\x00\x00>\x03\x00\x00>\x03\x00\x00\xb0\x01\x00\x007\x01\x00\x00\x00' 2023-11-23 00:52:10.462 WARNING (MainThread) [zigpy.zcl] [0xCAB5:1:0xe001] Unknown cluster command 225 b'\x08nP\xf1,\x96\x02\x00\x009\x02\x00\x00\xd1\x01\x00\x00x\x01\x00\x00:\x01\x00\x00\xfd\x00\x00\x00\x9d\x00\x00\x00E\x00\x00\x00\x00' 2023-11-23 00:52:10.662 WARNING (MainThread) [zigpy.zcl] [0xCAB5:1:0xe001] Unknown cluster command 225 b'\x08nP\xf1,\x96\x02\x00\x009\x02\x00\x00\xd1\x01\x00\x00x\x01\x00\x00:\x01\x00\x00\xfd\x00\x00\x00\x9d\x00\x00\x00E\x00\x00\x00\x00' 2023-11-23 00:52:10.864 WARNING (MainThread) [zigpy.zcl] [0xCAB5:1:0xe001] Unknown cluster command 225 b'\x08nP\xf1,\x96\x02\x00\x009\x02\x00\x00\xd1\x01\x00\x00x\x01\x00\x00:\x01\x00\x00\xfd\x00\x00\x00\x9d\x00\x00\x00E\x00\x00\x00\x00' 2023-11-23 00:52:11.064 WARNING (MainThread) [zigpy.zcl] [0xCAB5:1:0xe001] Unknown cluster command 225 b'\x08nP\xf1,\x96\x02\x00\x009\x02\x00\x00\xd1\x01\x00\x00x\x01\x00\x00:\x01\x00\x00\xfd\x00\x00\x00\x9d\x00\x00\x00E\x00\x00\x00\x00' 2023-11-23 00:52:11.264 WARNING (MainThread) [zigpy.zcl] [0xCAB5:1:0xe001] Unknown cluster command 225 b'\x08nP\xf1,\x96\x02\x00\x009\x02\x00\x00\xd1\x01\x00\x00x\x01\x00\x00:\x01\x00\x00\xfd\x00\x00\x00\x9d\x00\x00\x00E\x00\x00\x00\x00' 2023-11-23 00:52:11.465 WARNING (MainThread) [zigpy.zcl] [0xCAB5:1:0xe001] Unknown cluster command 225 b'\x08nP\xf1,\x96\x02\x00\x009\x02\x00\x00\xd1\x01\x00\x00x\x01\x00\x00:\x01\x00\x00\xfd\x00\x00\x00\x9d\x00\x00\x00E\x00\x00\x00\x00' 2023-11-23 00:52:11.671 WARNING (MainThread) [zigpy.zcl] [0xCAB5:1:0xe001] Unknown cluster command 225 b'\x08nP\xf1,\x96\x02\x00\x009\x02\x00\x00\xd1\x01\x00\x00x\x01\x00\x00:\x01\x00\x00\xfd\x00\x00\x00\x9d\x00\x00\x00E\x00\x00\x00\x00' 2023-11-23 00:52:11.867 WARNING (MainThread) [zigpy.zcl] [0xCAB5:1:0xe001] Unknown cluster command 225 b'\x08nP\xf1,\x96\x02\x00\x009\x02\x00\x00\xd1\x01\x00\x00x\x01\x00\x00:\x01\x00\x00\xfd\x00\x00\x00\x9d\x00\x00\x00E\x00\x00\x00\x00' 2023-11-23 00:52:12.068 WARNING (MainThread) [zigpy.zcl] [0xCAB5:1:0xe001] Unknown cluster command 225 b'\x08nP\xf1,\x96\x02\x00\x009\x02\x00\x00\xd1\x01\x00\x00x\x01\x00\x00:\x01\x00\x00\xfd\x00\x00\x00\x9d\x00\x00\x00E\x00\x00\x00\x00' 2023-11-23 00:52:12.268 WARNING (MainThread) [zigpy.zcl] [0xCAB5:1:0xe001] Unknown cluster command 225 b'\x08nP\xf1,\x96\x02\x00\x009\x02\x00\x00\xd1\x01\x00\x00x\x01\x00\x00:\x01\x00\x00\xfd\x00\x00\x00\x9d\x00\x00\x00E\x00\x00\x00\x00' 2023-11-23 00:52:13.037 WARNING (MainThread) [zigpy.zcl] [0x45FE:1:0xe001] Unknown cluster command 225 b'\x04{P\xf1,\x8c\x00\x00\x00f\x00\x00\x00?\x00\x00\x00\x10\x00\x00\x00\x00' 2023-11-23 00:52:13.207 WARNING (MainThread) [zigpy.zcl] [0x45FE:1:0xe001] Unknown cluster command 225 b'\x04{P\xf1,\x8c\x00\x00\x00f\x00\x00\x00?\x00\x00\x00\x10\x00\x00\x00\x00' 2023-11-23 00:52:13.624 WARNING (MainThread) [zigpy.zcl] [0x45FE:1:0xe001] Unknown cluster command 225 b'\x04{P\xf1,\x8c\x00\x00\x00f\x00\x00\x00?\x00\x00\x00\x10\x00\x00\x00\x00' 2023-11-23 00:52:13.808 WARNING (MainThread) [zigpy.zcl] [0x45FE:1:0xe001] Unknown cluster command 225 b'\x04{P\xf1,\x8c\x00\x00\x00f\x00\x00\x00?\x00\x00\x00\x10\x00\x00\x00\x00' 2023-11-23 00:52:14.009 WARNING (MainThread) [zigpy.zcl] [0x45FE:1:0xe001] Unknown cluster command 225 b'\x04{P\xf1,\x8c\x00\x00\x00f\x00\x00\x00?\x00\x00\x00\x10\x00\x00\x00\x00' 2023-11-23 00:52:14.209 WARNING (MainThread) [zigpy.zcl] [0x45FE:1:0xe001] Unknown cluster command 225 b'\x04{P\xf1,\x8c\x00\x00\x00f\x00\x00\x00?\x00\x00\x00\x10\x00\x00\x00\x00' 2023-11-23 00:52:14.410 WARNING (MainThread) [zigpy.zcl] [0x45FE:1:0xe001] Unknown cluster command 225 b'\x04{P\xf1,\x8c\x00\x00\x00f\x00\x00\x00?\x00\x00\x00\x10\x00\x00\x00\x00' 2023-11-23 00:52:14.610 WARNING (MainThread) [zigpy.zcl] [0x45FE:1:0xe001] Unknown cluster command 225 b'\x04{P\xf1,\x8c\x00\x00\x00f\x00\x00\x00?\x00\x00\x00\x10\x00\x00\x00\x00' 2023-11-23 00:52:14.811 WARNING (MainThread) [zigpy.zcl] [0x45FE:1:0xe001] Unknown cluster command 225 b'\x04{P\xf1,\x8c\x00\x00\x00f\x00\x00\x00?\x00\x00\x00\x10\x00\x00\x00\x00' 2023-11-23 03:40:10.230 WARNING (Recorder) [homeassistant.components.sensor.recorder] Entity sensor.strom_wohnzimmeredv_zusammenfassung_geliefert from integration zha has state class total_increasing, but its state is not strictly increasing. Triggered by state 6.71 (6.72) with last_updated set to 2023-11-23T02:36:46.454801+00:00. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+zha%22 2023-11-23 09:01:36.559 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection] [547718833344] from 192.168.168.118 (Home Assistant/2023.7 (io.robbie.HomeAssistant; build:2023.471; iOS 17.2.0)): Disconnected: Did not receive auth message within 10 seconds 2023-11-23 09:07:56.524 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 332, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: 400, message: Bad status line "Invalid method encountered:\n\n b'\x16\x03\x01\x02z\x01'\n ^" 2023-11-23 09:10:23.353 ERROR (MainThread) [custom_components.aquarea.coordinator] Unexpected error fetching aquarea-mike@joshuasdream.de-B500326005 data: API error: 1000-1503 - Failed communication with adaptor. Please make sure it is connected to the network or check again after resetting adaptor. Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 290, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/aquarea/coordinator.py", line 57, in _async_update_data self._device = await self._client.get_device( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 52, in _wrap response = await fn(client, *args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 356, in get_device device_info, await self.get_device_status(device_info.long_id), self ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 52, in _wrap response = await fn(client, *args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 290, in get_device_status response = await self.request( ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 169, in request raise ApiError(error.error_code, error.error_message) aioaquarea.errors.ApiError: API error: 1000-1503 - Failed communication with adaptor. Please make sure it is connected to the network or check again after resetting adaptor. 2023-11-23 09:10:32.026 ERROR (MainThread) [custom_components.aquarea.coordinator] Unexpected error fetching aquarea-mike@joshuasdream.de-B500326005 data: Session is closed Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 290, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/aquarea/coordinator.py", line 57, in _async_update_data self._device = await self._client.get_device( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 52, in _wrap response = await fn(client, args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 356, in get_device device_info, await self.get_device_status(device_info.long_id), self ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 52, in _wrap response = await fn(client, args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 290, in get_device_status response = await self.request( ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 157, in request resp = await self._sess.request(method, AQUAREA_SERVICE_BASE + url, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 400, in _request raise RuntimeError("Session is closed") RuntimeError: Session is closed 2023-11-23 09:10:44.766 ERROR (MainThread) [custom_components.aquarea.coordinator] Unexpected error fetching aquarea-mike@joshuasdream.de-B500326005 data: Session is closed Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 290, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/aquarea/coordinator.py", line 57, in _async_update_data self._device = await self._client.get_device( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 52, in _wrap response = await fn(client, args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 356, in get_device device_info, await self.get_device_status(device_info.long_id), self ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 52, in _wrap response = await fn(client, args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 290, in get_device_status response = await self.request( ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 157, in request resp = await self._sess.request(method, AQUAREA_SERVICE_BASE + url, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 400, in _request raise RuntimeError("Session is closed") RuntimeError: Session is closed

cwiekol commented 7 months ago

hi, the integration stopped to work for me. I've tried to reinstall and reput cerdetials, but here is what i got in logs.

Any idea if it is something wrong with my configuration (i think i didn't change anything) or with integration itself?

2023-12-04 12:59:38.101 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry michal.cwieka@gmail.com for aquarea Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 402, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/aquarea/init.py", line 52, in async_setup_entry await client.login() File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 204, in login response: aiohttp.ClientResponse = await self.request( ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 157, in request resp = await self._sess.request(method, AQUAREA_SERVICE_BASE + url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 400, in _request raise RuntimeError("Session is closed") RuntimeError: Session is closed

cjaliaga commented 7 months ago

I just published 0.4.1 with some changes on entry load. Could you please give it a try to see if it makes any difference on those messages?

mikehabermeier commented 7 months ago

Sorry. It is not working:: Here are the Logs:

Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: custom_components.aquarea.coordinator
Source: helpers/update_coordinator.py:290
Integration: Aquarea Smart Cloud (documentation, issues)
First occurred: 20:57:54 (10 occurrences)
Last logged: 21:06:23

Unexpected error fetching aquarea-mike@joshuasdream.de-B500326005 data: API error: 1000-1503 - Failed communication with adaptor. Please make sure 
 it is connected to the network or check again 
 after resetting adaptor.
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 290, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/aquarea/coordinator.py", line 61, in _async_update_data
    self._device = await self._client.get_device(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 58, in _wrap
    response = await fn(client, *args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 366, in get_device
    await self.get_device_status(device_info.long_id),
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 58, in _wrap
    response = await fn(client, *args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 295, in get_device_status
    response = await self.request(
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 174, in request
    raise ApiError(error.error_code, error.error_message)
aioaquarea.errors.ApiError: API error: 1000-1503 - Failed communication with adaptor. Please make sure 
it is connected to the network or check again 
after resetting adaptor.

Sory. Cheers Mike

cjaliaga commented 6 months ago

I have some bad news. The fix on that version removed the issue so we're no longer getting the session is closed error message that was hiding the real reason. Now we're seeig why the integration wasn't loading. This error message is coming from the Panasonic cloud specifying that's not able to connect to the adapter, we use device direct here so the request goes to their cloud -> your adapter. I'll see if there's something we can do to to help here and ease connectivity issues somehow but basically the best option would be to check the device connectivity, WiFi signal and so on. We have other reports for this error that were solved as soon as the connectivity issues were solved(WiFi, DNS... you name it)

mikehabermeier commented 6 months ago

Hi. I will get in touch with these in my holiday. I thought it was working because I can see everything in my cloud. But I will reboot the adapter and look if it works then. Thank you for your help!

cjaliaga commented 6 months ago

Thanks @mikehabermeier. I'll try something too: Right now we're doing device direct, which means (per my understanding, I can be completely wrong 😂) we go to their cloud and the cloud tries to connect to the device to get the latest status.

I can try to do something: in case it fails to connect to the adapter, to retry the request without passing the device direct parameter and see if we can retrieve the status from the cached value their cloud maintains. Maybe this will make new changes to take more time to appear, but at least, we can get some details.

I'll try to do this as soon as I can. I'd appreciate if you can give me some time to do it and release a new version so we can test in your environment before you reset it.

Thanks a lot! Carlos

mikehabermeier commented 6 months ago

Hi Carlos. Today I have time to go deeper into this topic. First I checked my network. Everything is working fine on this. I logged into the cloud. Every second time I logged in, I get the error "Communication error with adapter. 1008-1503." As first I deleted the device from the cloud. Than I unplugged the adapter from power, did a reset. Than I did a reconfiguration and added the device to the cloud. No problems in the cloud anymore. Than I configured the plugin in home assistant.

Everything is working!!! I hope that helps others too. Thank you for your great work and your fast response. GREAT! Thank you. Happy holidays.

icecoldfire commented 4 months ago

I got the same issue (1008-1503), in the past it automatically resolves but today not. First, I tried rebooting my switch because it reported a link speed of 10MF instead of 100MF. But this didn't resolve the connection problem. Then I just powered my heat pump off and on again, and this resolved the issue for me.