core: Shelly EM and Shelly1PM no longer working after 2024.1.1
The problem
After 2024.1.1 both shelly em and shelly1pm stopped working, error logs below, and fw versions
Firmware: 20230913-113709/v1.14.0-gcb84623 Hardware: gen1 (SHSW-PM)
Firmware: 20230913-114150/v1.14.0-gcb84623 Hardware: gen1 (SHEM)
What version of Home Assistant Core has the issue?
core-2024.1.1
What was the last working version of Home Assistant Core?
core-2024.1.0
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
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
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'
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 6 months ago
- Reactions: 32
- Comments: 27 (6 by maintainers)
ℹ️ Status of this issue
The issue has been fixed in #107294 by @thecode, has been merged, and is pending release.
Considering the large number of people affected and this being a highly used integration (almost 18% of installs, according to our analytics), I will ship an extra release today.
…/Frenck
Edit: 2024-01-06 13:20 (CET)
I’ve started shipping Home Assistant 2024.1.2, which should be available for install around ~14:45 (CET).
Can we please stop replying “+1”, “same” or similar?
There is an option to react on other people’s comments with a thumbs up. Let’s use that instead of flooding the comment section.
Working fine now after 2024.1.2, thanks @thecode
2024.1.2 - Working !
Duplicate of #107275 which is fixed in 2024.1.2 and scheduled for release. You can watch the progress at https://github.com/home-assistant/core/milestone/641
🤚 I have the same issue! 👇 Read below
Hi there! Sorry to read you are experiencing the same issue as more people here. Nobody likes having issues 😞
Finding an issue on a GitHub issue tracker that matches your problem is kinda nice: At least you know you are not alone. So, let’s leave a commit with: “Yeah, I have the same issue”, or “+1!!!”. 🚫 No!
Please do not create “I have the same issue” comments!
Not just this issue or this project, but anywhere on GitHub or any issue tracker on the internet even. It doesn’t add to triaging the issue. It only generates noise when reading / triaging the case.
What to do instead?
Instead, go to the top of the issue, and add a 👍 emoji reaction. That way, we can still see that you (and how many others) experience this issue while keeping the issue threads nice and clean.
Thanks! ❤️
…/Frenck
I would like to report that Shelly 3EM also stopped working after 2024.1.1. This is irrelevant but 2024.1.1 fixed Davis WeatherLink custom integration.
Seeing this issue on some Shelly devices. I have 4 X Shelly 1 Gen 1 Two connect, Two do not. I also have 4 3EM Pros - these connect.
All are running firmware version 20230913-114244/v1.14.0-gcb84623 (i.e. the correct version). Deleting and re-adding does not work.
Sorry I had to update firmware version for my shelly em. Now it’s working fine.
Everything works great on 2024.1.2. Thanks a lot.
As per release notes, in the backward-incompatible changes section, you need to update your devices before upgrading to this Home Assistant version. If you already did upgrade, you can upgrade your devices using the Shelly apps.All of this, is not related to this issue.Hmm I guess you meant 2024.1.2 🤔
Go to the setting panel -> select the three-dotted menu in the top right, select Check for updates. Wait a few seconds, and that update for Home Assistant 2024.1.2 should show up.
You don’t have to thank me for a fix, @thecode was the one fixing it ❤️
@frenck Much appreciate the quick fix, we all know how much we hate not gathering data 😃