core: deCONz unable to refresh devices

The problem

I am unable to call the deconz refresh devices service.

What is version of Home Assistant Core has the issue?

2021.6.6

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

deconz

Link to integration documentation on our website

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

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Log Details (ERROR)
Logger: homeassistant.components.websocket_api.http.connection
Source: components/deconz/services.py:145
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 6:04:26 PM (2 occurrences)
Last logged: 6:05:23 PM

[2714204768] Error handling message: Unknown error
[2703597848] Error handling message: Unknown error
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/websocket_api/decorators.py", line 25, in _handle_async_response
    await func(hass, connection, msg)
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/websocket_api/commands.py", line 525, in handle_execute_script
    await script_obj.async_run(msg.get("variables"), context=context)
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/script.py", line 1216, in async_run
    await asyncio.shield(run.async_run())
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/script.py", line 350, in async_run
    await self._async_step(log_exceptions=False)
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/script.py", line 368, in _async_step
    await getattr(self, handler)()
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/script.py", line 568, in _async_call_service_step
    await service_task
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/core.py", line 1491, in async_call
    task.result()
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/core.py", line 1526, in _execute_service
    await handler.job.target(service_call)
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/deconz/services.py", line 66, in async_call_deconz_service
    await async_refresh_devices_service(hass, service_data)
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/deconz/services.py", line 145, in async_refresh_devices_service
    gateway.ignore_state_updates = True
AttributeError: 'NoneType' object has no attribute 'ignore_state_updates'

Additional information

Phoscon is 2.11.05 / 5/9/2021.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (7 by maintainers)

Most upvoted comments

Thanks. It’s working now.

I did some digging and found the root issue.

wg0 10.0.7.1 is my wireguard interface. 192.168.1.5 is eth0. HA automatically set up Deconz integrations on both, and also Phoscon is apparently listening on both.