Closed gigatexel closed 4 months ago
I can confirm this issue (partially). What sometimes, solves this at least temporarily, is creating a new user on the loxone instance that is exclusivly used by PyLoxone / HA.
Thanks for your suggestion. Unfortunately adding a dedicated user does not fix anything.
I switched on all logging and tried to manipulate a simple switch entity.
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/protocol.py", line 1302, in close_connection
await self.transfer_data_task
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/protocol.py", line 970, in transfer_data
await asyncio.shield(self._put_message_waiter)
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/loxone/miniserver.py", line 182, in listen_loxone_send
await self.api.send_websocket_command(device_uuid, value)
File "/config/custom_components/loxone/api.py", line 369, in send_websocket_command
await self._ws.send(command)
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/protocol.py", line 635, in send
await self.ensure_open()
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/protocol.py", line 935, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1011 (unexpected error) keepalive ping timeout; no close frame received
@j-nordt have you tried the newest release
After updating to the newest release it seems fixed (apart for the unit-warning that I created a PR for)
Describe the bug
Thanks to some vacation time, I'm now trying to get pyLoxone working with my Gen2 device. Unfortunately, the integration behaves very strange.
Recieving data:
Entities are generated but are not consistent with Miniserver:
Same goes for sensor values, these are all Unavailable.
Trying to toggle the switch entities throws some errors:
Sending commands using the websocket service is unfortunately also not working:
This throws 2 errors:
and also:
I have found other similar issues here, but none of the suggestions seem to work.
Firmware of your Miniserver
Latest (14.5.12.7)
HomeAssistant install method
HA OS
Version of HomeAssistant
2023.12.3
Version of Pyloxone
0.4.12
Update pyloxone
Yes
Log
Settings for the log can be found on the main page under the section Log Configuration