Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matter Error; #124026

Closed
jaysus82 opened this issue Aug 16, 2024 · 7 comments · Fixed by #124280
Closed

Matter Error; #124026

jaysus82 opened this issue Aug 16, 2024 · 7 comments · Fixed by #124280

Comments

@jaysus82
Copy link

The problem

Since the last update, the Matter integration is not working anymore. All of my Matter devices are not accessible over home assistant:
image

Since the devices are still working with Google Home or SmartThings, it is a HA problem.

What version of Home Assistant Core has the issue?

core-2024.8.1

What was the last working version of Home Assistant Core?

core-2024.7.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Matter

Link to integration documentation on our website

https://www.home-assistant.io/integrations/matter

Diagnostics information

2024-08-16 08:01:48.352 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration stiebel_eltron_isg which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-08-16 08:01:48.354 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration senec which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-08-16 08:01:48.356 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration dreame_vacuum which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-08-16 08:01:48.360 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-08-16 08:02:11.343 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles/frontend", "/config/custom_components/hacs/hacs_frontend_experimental", False)]); This function will be removed in 2025.7 at custom_components/hacs/frontend.py, line 49: hass.http.register_static_path(, please create a bug report at https://github.com/hacs/integration/issues
2024-08-16 08:02:11.347 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles/iconset.js", "/config/custom_components/hacs/iconset.js", True)]); This function will be removed in 2025.7 at custom_components/hacs/frontend.py, line 57: hass.http.register_static_path(, please create a bug report at https://github.com/hacs/integration/issues
2024-08-16 08:02:11.352 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from frontend directly at custom_components/hacs/frontend.py, line 68: hass.components.frontend.async_register_built_in_panel(, please create a bug report at https://github.com/hacs/integration/issues
2024-08-16 08:02:11.358 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles", "/config/www/community", True)]); This function will be removed in 2025.7 at custom_components/hacs/base.py, line 1162: self.hass.http.register_static_path(, please create a bug report at https://github.com/hacs/integration/issues
2024-08-16 08:02:16.388 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Matter for matter
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/matter/init.py", line 144, in async_setup_entry
await matter.setup_nodes()
File "/usr/src/homeassistant/homeassistant/components/matter/adapter.py", line 63, in setup_nodes
self._setup_node(node)
File "/usr/src/homeassistant/homeassistant/components/matter/adapter.py", line 148, in _setup_node
self._setup_endpoint(endpoint)
File "/usr/src/homeassistant/homeassistant/components/matter/adapter.py", line 225, in _setup_endpoint
new_entity = entity_info.entity_class(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/matter/entity.py", line 110, in init
self._update_from_device()
File "/usr/src/homeassistant/homeassistant/components/matter/select.py", line 76, in _update_from_device
self._attr_current_option = value_convert(value)
^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/matter/select.py", line 232, in
measurement_to_ha=lambda x: {
^
KeyError: 255
2024-08-16 08:02:36.207 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.helpers.event. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from event directly at custom_components/hacs/base.py, line 642: self.hass.helpers.event.async_track_time_interval(, please create a bug report at https://github.com/hacs/integration/issues
2024-08-16 08:03:21.478 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.stiebel_eltron_isg_ventilaction_air_actual_fan_speed (Hz) cannot be converted to the unit of previously compiled statistics (None). Generation of long term statistics will be suppressed unless the unit changes back to None or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-08-16 08:03:21.478 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.stiebel_eltron_isg_ventilaction_air_target_fan_speed (m³/h) cannot be converted to the unit of previously compiled statistics (None). Generation of long term statistics will be suppressed unless the unit changes back to None or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-08-16 08:03:21.478 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.stiebel_eltron_isg_extract_air_actual_fan_speed (Hz) cannot be converted to the unit of previously compiled statistics (None). Generation of long term statistics will be suppressed unless the unit changes back to None or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-08-16 08:03:21.478 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.stiebel_eltron_isg_extract_air_target_fan_speed (m³/h) cannot be converted to the unit of previously compiled statistics (None). Generation of long term statistics will be suppressed unless the unit changes back to None or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-08-16 08:02:16.388 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Matter for matter
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/matter/__init__.py", line 144, in async_setup_entry
await matter.setup_nodes()
File "/usr/src/homeassistant/homeassistant/components/matter/adapter.py", line 63, in setup_nodes
self._setup_node(node)
File "/usr/src/homeassistant/homeassistant/components/matter/adapter.py", line 148, in _setup_node
self._setup_endpoint(endpoint)
File "/usr/src/homeassistant/homeassistant/components/matter/adapter.py", line 225, in _setup_endpoint
new_entity = entity_info.entity_class(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/matter/entity.py", line 110, in __init__
self._update_from_device()
File "/usr/src/homeassistant/homeassistant/components/matter/select.py", line 76, in _update_from_device
self._attr_current_option = value_convert(value)
^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/matter/select.py", line 232, in <lambda>
measurement_to_ha=lambda x: {
^
KeyError: 255

Additional information

No response

@home-assistant
Copy link

Hey there @home-assistant/matter, mind taking a look at this issue as it has been labeled with an integration (matter) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of matter can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign matter Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


matter documentation
matter source
(message by IssueLinks)

@marcelveldt
Copy link
Member

What kind of devices do you have ? Any non certified devices as well perhaps ?

@jaysus82
Copy link
Author

jaysus82 commented Aug 19, 2024 via email

@marcelveldt
Copy link
Member

marcelveldt commented Aug 20, 2024

That it works via Google or Samsung doesn't mean anything. Home Assistant is most ahead of the game regarding Matter/device support so any compatibility issues will reveal itself in an early stage in HA.

So for example the KeyError that is causing the crash in your case; the device sends a spec incompliant value.
We will have to add a patch for that and maybe also ping the device vendor to fix their firmware because 255 is not a valid value for clusters.OnOff.Attributes.StartUpOnOff

@jaysus82
Copy link
Author

Can I somehow identify which device is causing the error? Maybe I can then deactivate that temporarily as a workaround?

@kmohamad
Copy link

I have the same error and I also use the 1Home server. Pretty good chance that's what causing it.

@jaysus82
Copy link
Author

Nice, thanks for the info. Hope they can fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants