Hi,
I have 6 Shelly PRO devices connected with WiFi. A few days back one of them became unavailable at 12:05 on Jan 10 and never reconnected. The log shows the following errors and I am trying to understand how to use this information and next steps to troubleshoot:
Assistant/2024.12.2 (io.robbie.HomeAssistant; build:2024.1058; iOS 18.2.1)): Disconnected: Received non-Text message.e[0m
e[31m2025-01-10 12:45:22.729 ERROR (MainThread) [aioshelly.rpc_device.wsrpc] Invalid Message from host 192.168.80.223:80: Received message errore[0m
e[31m2025-01-10 12:45:25.877 ERROR (MainThread) [homeassistant.components.shelly] Error fetching shellypro3-ec62609e6bfc data: Device reconnect errore[0m
e[31m2025-01-10 18:12:32.115 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/aioshelly/rpc_device/wsrpc.py", line 504, in _rpc_calls
response = await call.resolve
^^^^^^^^^^^^^^^^^^
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/aioshelly/rpc_device/wsrpc.py", line 493, in _rpc_calls
async with asyncio.timeout(timeout):
~~~~~~~~~~~~~~~^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in __aexit__
raise TimeoutError from exc_val
TimeoutError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/aioshelly/rpc_device/device.py", line 412, in call_rpc_multiple
return await self._wsrpc.calls(calls, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aioshelly/rpc_device/wsrpc.py", line 432, in calls
all_successful, results = await self._rpc_calls(calls, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aioshelly/rpc_device/wsrpc.py", line 517, in _rpc_calls
raise DeviceConnectionTimeoutError(sent_calls) from exc
aioshelly.exceptions.DeviceConnectionTimeoutError: [<RPCCall method=Script.List params=None call_id=27 result=UndefinedType._singleton>]
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/shelly/coordinator.py", line 570, in _async_update_listener
await self._async_run_connected_events()
File "/usr/src/homeassistant/homeassistant/components/shelly/coordinator.py", line 675, in _async_run_connected_events
await self._async_connect_ble_scanner()
File "/usr/src/homeassistant/homeassistant/components/shelly/coordinator.py", line 698, in _async_connect_ble_scanner
await async_stop_scanner(self.device)
File "/usr/local/lib/python3.13/site-packages/aioshelly/ble/__init__.py", line 31, in async_stop_scanner
script_name_to_id = await _async_get_scripts_by_name(device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aioshelly/ble/__init__.py", line 25, in _async_get_scripts_by_name
scripts = await device.script_list()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aioshelly/rpc_device/device.py", line 316, in script_list
data = await self.call_rpc("Script.List")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aioshelly/rpc_device/device.py", line 403, in call_rpc
return (await self.call_rpc_multiple(((method, params),)))[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aioshelly/rpc_device/device.py", line 418, in call_rpc_multiple
raise DeviceConnectionError from err
aioshelly.exceptions.DeviceConnectionErrore[0m
e[31m2025-01-10 18:13:08.729 ERROR (MainThread) [aioshelly.rpc_device.wsrpc] Invalid Message from host 192.168.80.169:80: Received message errore[0m
e[31m2025-01-10 18:13:29.728 ERROR (MainThread) [aioshelly.rpc_device.wsrpc] Invalid Message from host 192.168.80.169:14084: Received message errore[0m
e[31m2025-01-10 18:13:39.731 ERROR (MainThread) [homeassistant.components.shelly] Error fetching shellypro4pm-c8f09e839ff4 data: Device reconnect errore[0m
e[33m2025-01-10 19:45:40.729 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection] [281472471849360] Avb from 127.0.0.1 (Home Assistant/2024.12.2 (io.robbie.HomeAssistant; build:2024.1058; iOS 18.2.1)): Disconnected: Received non-Text message.e[0m
e[31m2025-01-10 20:50:45.728 ERROR (MainThread) [aioshelly.rpc_device.wsrpc] Invalid Message from host 192.168.80.20:80: Received message errore[0m
e[31m2025-01-10 20:50:45.957 ERROR (MainThread) [homeassistant.components.shelly] Error fetching shellypro3-ec62609e4c04 data: Device reconnect errore[0m
e[33m2025-01-10 21:29:30.729 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection] [281472440514832] Josefina from 127.0.0.1 (Home Assistant/2024.12.2 (io.robbie.HomeAssistant; build:2024.1058; iOS 18.1.1)): Disconnected: Received non-Text message.e[0m
e[33m2025-01-10 23:45:23.729 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection] [281472520009568] frank_admin from 127.0.0.1 (Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Mobile Safari/537.36): Disconnected: Received non-Text message.e[0m
e[33m2025-01-11 04:00:05.413 WARNING (MainThread) [homeassistant.components.switch.reproduce_state] Unable to find entity switch.shellypro3_ec62609e5830_switch_0e[0m
e[33m2025-01-11 04:00:05.413 WARNING (MainThread) [homeassistant.components.switch.reproduce_state] Unable to find entity switch.shellypro3_ec62609e5830_switch_1e[0m
e[33m2025-01-11 04:00:05.414 WARNING (MainThread) [homeassistant.components.switch.reproduce_state] Unable to find entity switch.shellypro3_ec62609e5830_switch_2e[0m
e[33m2025-01-11 04:00:05.414 WARNING (MainThread) [homeassistant.components.switch.reproduce_state] Unable to find entity switch.shellypro3_ec62609e4c04_switch_0e[0m
e[33m2025-01-11 04:00:05.414 WARNING (MainThread) [homeassistant.components.switch.reproduce_state] Unable to find entity switch.shellypro3_ec62609e4c04_switch_1e[0m
e[33m2025-01-11 04:00:05.414 WARNING (MainThread) [homeassistant.components.switch.reproduce_state] Unable to find entity switch.shellypro3_ec62609e4c04_switch_2e[0m
e[33m2025-01-11 04:00:05.415 WARNING (MainThread) [homeassistant.components.switch.reproduce_state] Unable to find entity switch.shellypro3_ec62609e6f98_switch_0e[0m
e[33m2025-01-11 04:00:05.415 WARNING (MainThread) [homeassistant.components.switch.reproduce_state] Unable to find entity switch.shellypro3_ec62609e6f98_switch_1e[0m
e[33m2025-01-11 04:00:05.415 WARNING (MainThread) [homeassistant.components.switch.reproduce_state] Unable to find entity switch.shellypro3_ec62609e6f98_switch_2e[0m
e[33m2025-01-11 04:00:05.415 WARNING (MainThread) [homeassistant.components.switch.reproduce_state] Unable to find entity switch.shellypro3_ec62609e6bfc_switch_0e[0m
e[33m2025-01-11 04:00:05.416 WARNING (MainThread) [homeassistant.components.switch.reproduce_state] Unable to find entity switch.shellypro3_ec62609e6bfc_switch_1e[0m
e[33m2025-01-11 04:00:05.416 WARNING (MainThread) [homeassistant.components.switch.reproduce_state] Unable to find entity switch.shellypro3_ec62609e6bfc_switch_2e[0m
e[33m2025-01-11 04:00:05.416 WARNING (MainThread) [homeassistant.components.switch.reproduce_state] Unable to find entity switch.shellypro3_ec62609e4c80_switch_0e[0m
e[33m2025-01-11 04:00:05.416 WARNING (MainThread) [homeassistant.components.switch.reproduce_state] Unable to find entity switch.shellypro3_ec62609e4c80_switch_1e[0m
e[33m2025-01-11 04:00:05.416 WARNING (MainThread) [homeassistant.components.switch.reproduce_state] Unable to find entity switch.shellypro3_ec62609e4c80_switch_2e[0m