-
-
Notifications
You must be signed in to change notification settings - Fork 36.3k
Description
The problem
Suddenly the device stops. No new values are received and nothing can be changed. The device seems to be reachable. The logs show a lot of different errors most of them ends in "TypeError: 'NoneType' object is not subscriptable". The device work as expected using it's own web interface. Other Shelly devices using the same integration still works.
What version of Home Assistant Core has the issue?
core-2025.12.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Shelly
Link to integration documentation on our website
https://www.home-assistant.io/integrations/shelly
Diagnostics information
config_entry-shelly-01KDJ41RWM0ANQXJ6XT1MJ7RJW.json
home-assistant_shelly_2025-12-29T20-58-00.308Z.log
Example YAML snippet
Anything in the logs that might be useful for us?
Loggare: aioshelly.rpc_device.wsrpc
Källa: /usr/local/lib/python3.13/site-packages/aioshelly/rpc_device/wsrpc.py:318
Inträffade först: 28 december 2025 kl. 21:57:14 (1748 förekomster)
Senast loggade: 22:17:27
Error handling notification frame: {'src': 'eve01-48f6eead4440', 'dst': 'aios-546677021904', 'method': 'NotifyStatus', 'params': {'ts': 1767043005.71, 'object:201': {'value': {'counter': {'total': 46.567, 'minute_ts': 1767042900, 'by_minute': [0, 0, 0]}, 'total_current': 0, 'total_power': 0, 'total_act_energy': 46.567, 'phase_a': {'voltage': 223.3, 'current': 0, 'power': 0}, 'phase_b': {'voltage': 224.2, 'current': 0, 'power': 0}, 'phase_c': {'voltage': 225.2, 'current': 0, 'power': 0}}}}}
Error handling notification frame: {'src': 'eve01-48f6eead4440', 'dst': 'aios-546677021904', 'method': 'NotifyStatus', 'params': {'ts': 1767043016.07, 'object:201': {'value': {'counter': {'total': 46.567, 'minute_ts': 1767042900, 'by_minute': [0, 0, 0]}, 'total_current': 0, 'total_power': 0, 'total_act_energy': 46.567, 'phase_a': {'voltage': 223.1, 'current': 0, 'power': 0}, 'phase_b': {'voltage': 224.9, 'current': 0, 'power': 0}, 'phase_c': {'voltage': 225.9, 'current': 0, 'power': 0}}}}}
Error handling notification frame: {'src': 'eve01-48f6eead4440', 'dst': 'aios-546677021904', 'method': 'NotifyStatus', 'params': {'ts': 1767043026.45, 'object:201': {'value': {'counter': {'total': 46.567, 'minute_ts': 1767042960, 'by_minute': [0, 0, 0]}, 'total_current': 0, 'total_power': 0, 'total_act_energy': 46.567, 'phase_a': {'voltage': 223.1, 'current': 0, 'power': 0}, 'phase_b': {'voltage': 224.4, 'current': 0, 'power': 0}, 'phase_c': {'voltage': 225.9, 'current': 0, 'power': 0}}}}}
Error handling notification frame: {'src': 'eve01-48f6eead4440', 'dst': 'aios-546677021904', 'method': 'NotifyStatus', 'params': {'ts': 1767043036.83, 'object:201': {'value': {'counter': {'total': 46.567, 'minute_ts': 1767042960, 'by_minute': [0, 0, 0]}, 'total_current': 0, 'total_power': 0, 'total_act_energy': 46.567, 'phase_a': {'voltage': 223.1, 'current': 0, 'power': 0}, 'phase_b': {'voltage': 224.1, 'current': 0, 'power': 0}, 'phase_c': {'voltage': 224.4, 'current': 0, 'power': 0}}}}}
Error handling notification frame: {'src': 'eve01-48f6eead4440', 'dst': 'aios-546677021904', 'method': 'NotifyStatus', 'params': {'ts': 1767043047.2, 'object:201': {'value': {'counter': {'total': 46.567, 'minute_ts': 1767042960, 'by_minute': [0, 0, 0]}, 'total_current': 0, 'total_power': 0, 'total_act_energy': 46.567, 'phase_a': {'voltage': 223.3, 'current': 0, 'power': 0}, 'phase_b': {'voltage': 224.2, 'current': 0, 'power': 0}, 'phase_c': {'voltage': 224.7, 'current': 0, 'power': 0}}}}}
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/aioshelly/rpc_device/wsrpc.py", line 316, in handle_frame
self._on_notification(source, method, params)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aioshelly/rpc_device/device.py", line 213, in _on_notification
self._update_listener(self, update_type)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/shelly/coordinator.py", line 827, in _async_handle_update
self.async_set_updated_data(None)
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 564, in async_set_updated_data
self.async_update_listeners()
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 201, in async_update_listeners
update_callback()
~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/components/shelly/entity.py", line 441, in _update_callback
self.async_write_ha_state()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1024, in async_write_ha_state
self._async_write_ha_state()
~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1149, in _async_write_ha_state
self.__async_calculate_state()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1086, in __async_calculate_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1030, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 569, in state
value = self.native_value
^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/shelly/sensor.py", line 119, in native_value
attribute_value = self.attribute_value
^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/shelly/entity.py", line 580, in attribute_value
self._last_value = self.entity_description.value(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
self.status.get(self.entity_description.sub_key), self._last_value
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/components/shelly/sensor.py", line 1539, in <lambda>
value=lambda status, _: float(status["counter"]["total"]),
~~~~~~^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptableAdditional information
A lot of the entities are doubled (some tripled). For example there is one "Phase A effect" working ("sensor.shellyevse_fas_a_effekt_2") and one inaccessible ("sensor.shellyevse_fas_a_effekt"). This happened long before the device stopped working so I'm not sure it's related.