After upgrading to 2024.1.0, my Shelly HT Pro devices stopped working. The error log shows:
Logger: homeassistant.config_entries
Source: config_entries.py:406
First occurred: 4:36:56 PM (2 occurrences)
Last logged: 4:36:56 PM
Error setting up entry HT Pro for shelly
Error setting up entry HT Pro Office for shelly
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 406, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/shelly/__init__.py", line 129, in async_setup_entry
return await _async_setup_rpc_entry(hass, entry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/shelly/__init__.py", line 296, in _async_setup_rpc_entry
await _async_rpc_device_setup()
File "/usr/src/homeassistant/homeassistant/components/shelly/__init__.py", line 251, in _async_rpc_device_setup
shelly_entry_data.rpc.async_setup()
File "/usr/src/homeassistant/homeassistant/components/shelly/coordinator.py", line 615, in async_setup
super().async_setup()
File "/usr/src/homeassistant/homeassistant/components/shelly/coordinator.py", line 138, in async_setup
hw_version=f"gen{self.device.gen} ({self.model})",
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aioshelly/rpc_device/device.py", line 378, in gen
raise NotInitialized
aioshelly.exceptions.NotInitialized
I have two of these, and they have worked perfectly for months.
Same here and the Smoke Plus with firmware 20231219-133933/1.1.0-g34b5d4f shows these errors too.
024-01-04 08:16:30.639 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Büro Shelly Plus Smoke for shelly
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 406, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/shelly/__init__.py", line 129, in async_setup_entry
return await _async_setup_rpc_entry(hass, entry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/shelly/__init__.py", line 296, in _async_setup_rpc_entry
await _async_rpc_device_setup()
File "/usr/src/homeassistant/homeassistant/components/shelly/__init__.py", line 251, in _async_rpc_device_setup
shelly_entry_data.rpc.async_setup()
File "/usr/src/homeassistant/homeassistant/components/shelly/coordinator.py", line 615, in async_setup
super().async_setup()
File "/usr/src/homeassistant/homeassistant/components/shelly/coordinator.py", line 138, in async_setup
hw_version=f"gen{self.device.gen} ({self.model})",
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aioshelly/rpc_device/device.py", line 378, in gen
raise NotInitialized
aioshelly.exceptions.NotInitialized
Logger: homeassistant.config_entries
Source: config_entries.py:406
First occurred: 04:04:05 (2 occurrences)
Last logged: 04:04:05
Error setting up entry shelly_ht_livingroom for shelly
Error setting up entry shelly_ht_office for shelly
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 406, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/shelly/__init__.py", line 129, in async_setup_entry
return await _async_setup_rpc_entry(hass, entry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/shelly/__init__.py", line 296, in _async_setup_rpc_entry
await _async_rpc_device_setup()
File "/usr/src/homeassistant/homeassistant/components/shelly/__init__.py", line 251, in _async_rpc_device_setup
shelly_entry_data.rpc.async_setup()
File "/usr/src/homeassistant/homeassistant/components/shelly/coordinator.py", line 615, in async_setup
super().async_setup()
File "/usr/src/homeassistant/homeassistant/components/shelly/coordinator.py", line 138, in async_setup
hw_version=f"gen{self.device.gen} ({self.model})",
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aioshelly/rpc_device/device.py", line 378, in gen
raise NotInitialized
aioshelly.exceptions.NotInitialized
result = await component.async_setup_entry(hass, self)
My guess is the code is expecting a response, but this is a battery unit. It isn’t going to wake up unless the temp/humidity changes or you pry open the case and press the button.
My shellyem and shelly1pm both stopped working on 2024.1.1, was ok on 2024.1.0
both gen1 and FW is 1.14
Something about a key error?
2024-01-05 21:37:33.075 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry shellyem-5E26F6 for shelly
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 406, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/shelly/__init__.py", line 131, in async_setup_entry
return await _async_setup_block_entry(hass, entry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/shelly/__init__.py", line 201, in _async_setup_block_entry
await _async_block_device_setup()
File "/usr/src/homeassistant/homeassistant/components/shelly/__init__.py", line 168, in _async_block_device_setup
shelly_entry_data.block.async_setup()
File "/usr/src/homeassistant/homeassistant/components/shelly/coordinator.py", line 338, in async_setup
super().async_setup()
File "/usr/src/homeassistant/homeassistant/components/shelly/coordinator.py", line 139, in async_setup
hw_version=f"gen{self.entry.data[CONF_GEN]} ({self.model})",
~~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: 'gen'
2024-01-05 21:37:33.098 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry shelly1pm-E09806AA06BA for shelly
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 406, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/shelly/__init__.py", line 131, in async_setup_entry
return await _async_setup_block_entry(hass, entry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/shelly/__init__.py", line 201, in _async_setup_block_entry
await _async_block_device_setup()
File "/usr/src/homeassistant/homeassistant/components/shelly/__init__.py", line 168, in _async_block_device_setup
shelly_entry_data.block.async_setup()
File "/usr/src/homeassistant/homeassistant/components/shelly/coordinator.py", line 338, in async_setup
super().async_setup()
File "/usr/src/homeassistant/homeassistant/components/shelly/coordinator.py", line 139, in async_setup
hw_version=f"gen{self.entry.data[CONF_GEN]} ({self.model})",
~~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: 'gen'