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

Unsupported/Unrecognized deCONZ device type $TYPE_DOOR_LOCK #71904

Closed
jokerejoker opened this issue May 15, 2022 · 5 comments
Closed

Unsupported/Unrecognized deCONZ device type $TYPE_DOOR_LOCK #71904

jokerejoker opened this issue May 15, 2022 · 5 comments

Comments

@jokerejoker
Copy link

jokerejoker commented May 15, 2022

The problem

From deCONZ 2.15 there is a new device to supported $TYPE_DOOR_LOCK which is not recognized by the HA plugin.

The deCONZ json looks like this with a basic DDF. Not the type

image

This is currently recognized by HA like this.

image

Please add support for $TYPE_DOOR_LOCK aka "Door Lock" device type

Please also see dresden-elektronik/deconz-rest-plugin#5959

What version of Home Assistant Core has the issue?

core-2022.5.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

deCONZ

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?


2022-05-15 19:13:19 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/pydeconz/gateway.py", line 232, in session_handler
    self.events.handler(self.websocket.data)
  File "/usr/local/lib/python3.9/site-packages/pydeconz/interfaces/events.py", line 69, in handler
    callback(event)
  File "/usr/local/lib/python3.9/site-packages/pydeconz/interfaces/api.py", line 170, in process_event
    self.process_item(event.id, event.added_data)
  File "/usr/local/lib/python3.9/site-packages/pydeconz/interfaces/api.py", line 178, in process_item
    handler = self._type_to_handler[ResourceType(raw.get("type"))]
KeyError: <ResourceType.DOOR_LOCK: 'Door Lock'>

Additional information

No response

@probot-home-assistant
Copy link

deconz documentation
deconz source
(message by IssueLinks)

@probot-home-assistant
Copy link

Hey there @Kane610, mind taking a look at this issue as it has been labeled with an integration (deconz) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)

@Kane610
Copy link
Member

Kane610 commented May 15, 2022

Sensor device type "Door Lock" is already supported.

Try restarting both home assistant and deconz to see if that changes anything. You could also share a diagnostics file from the deconz integration.

@jokerejoker
Copy link
Author

After restarting both this is still the case in the logs

Logger: homeassistant.config_entries
Source: components/deconz/gateway.py:285
First occurred: 20:21:43 (1 occurrences)
Last logged: 20:21:43

Error setting up entry 00212E07C599 for deconz
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 335, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/deconz/__init__.py", line 40, in async_setup_entry
    api = await get_deconz_session(hass, config_entry.data)
  File "/usr/src/homeassistant/homeassistant/components/deconz/gateway.py", line 285, in get_deconz_session
    await deconz_session.refresh_state()
  File "/usr/local/lib/python3.9/site-packages/pydeconz/gateway.py", line 178, in refresh_state
    self.sensors.process_raw(data[ResourceGroup.SENSOR.value])
  File "/usr/local/lib/python3.9/site-packages/pydeconz/interfaces/api.py", line 161, in process_raw
    self.process_item(id, raw_item)
  File "/usr/local/lib/python3.9/site-packages/pydeconz/interfaces/api.py", line 178, in process_item
    handler = self._type_to_handler[ResourceType(raw.get("type"))]
KeyError: <ResourceType.DOOR_LOCK: 'Door Lock'>

@Kane610
Copy link
Member

Kane610 commented May 15, 2022

Ok, can you share a diagnostics file from the integration as well as a debug log from home assistant, how to enable debug logging can be found in deconz integration documentation.

@github-actions github-actions bot added the stale label Jun 14, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jul 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants