Dear all,
I use a livisi SHC 2.0 with two thermostats RST, a room thermostat WRT and a power plug PSS, connected to HA by the new local integration. Now the components get unavailable for days before reappearing again.
Logs:
Logger: homeassistant.components.livisi
Source: components/livisi/coordinator.py:92
Integration: LIVISI Smart Home (documentation, issues)
First occurred: 18. April 2023 um 11:33:53 (2822 occurrences)
Last logged: 11:22:28
Unexpected error fetching Livisi devices data: string indices must be integers
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 250, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/components/livisi/coordinator.py", line 58, in _async_update_data
return await self.async_get_devices()
File "/usr/src/homeassistant/homeassistant/components/livisi/coordinator.py", line 92, in async_get_devices
return await self.aiolivisi.async_get_devices()
File "/usr/local/lib/python3.10/site-packages/aiolivisi/aiolivisi.py", line 164, in async_get_devices
device_id = device["id"]
TypeError: string indices must be integers
and
Logger: homeassistant.config_entries
Source: components/livisi/coordinator.py:77
First occurred: 12. April 2023 um 09:11:56 (1 occurrences)
Last logged: 12. April 2023 um 09:11:56
Error setting up entry SHC Avatar for livisi
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 581, in write_bytes
await self.body.write(writer)
File "/usr/local/lib/python3.10/site-packages/aiohttp/payload.py", line 247, in write
await writer.write(self._value)
File "/usr/local/lib/python3.10/site-packages/aiohttp/http_writer.py", line 115, in write
self._write(chunk)
File "/usr/local/lib/python3.10/site-packages/aiohttp/http_writer.py", line 75, in _write
raise ConnectionResetError("Cannot write to closing transport")
ConnectionResetError: Cannot write to closing transport
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiolivisi/aiolivisi.py", line 52, in async_set_token
access_data = await self.async_get_jwt_token(livisi_connection_data)
File "/usr/local/lib/python3.10/site-packages/aiolivisi/aiolivisi.py", line 98, in async_get_jwt_token
return await self.async_send_request(
File "/usr/local/lib/python3.10/site-packages/aiolivisi/aiolivisi.py", line 112, in async_send_request
response = await self.__async_send_request(method, url, payload, headers)
File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 560, in _request
await resp.start(conn)
File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 899, in start
message, payload = await protocol.read() # type: ignore[union-attr]
File "/usr/local/lib/python3.10/site-packages/aiohttp/streams.py", line 616, in read
await self._waiter
aiohttp.client_exceptions.ClientOSError: [Errno None] Can not write request body for http://192.168.178.67:8080/auth/token
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/livisi/__init__.py", line 28, in async_setup_entry
await coordinator.async_setup()
File "/usr/src/homeassistant/homeassistant/components/livisi/coordinator.py", line 77, in async_setup
await self.aiolivisi.async_set_token(
File "/usr/local/lib/python3.10/site-packages/aiolivisi/aiolivisi.py", line 61, in async_set_token
raise IncorrectIpAddressException from error
aiolivisi.errors.IncorrectIpAddressException
I also created a bug report, but it seems to be a unique problem.
Can anyone help? Thank you!