State unauthorized user

Hi, just come back from holiday to find my zigbee network failed again and all my devices were unavailable. In restoring the network (restart the docker file and load backup to phoscon) I got back most devices, however when I tried to control the lights from lovelace panel I get on some lights the following error. [139802135628432] /lights/1/state unauthorized user

A similar error occurs for some groups as well. I have not changed any user settings, either in my nuc running ubuntu or home assistant as far as I know. Any suggestions as to where to look next?

Below is the full error in logs.

Logger: homeassistant.components.websocket_api.http.connection
Source: components/deconz/light.py:242
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: September 11, 2021, 23:39:21 (15 occurrences)
Last logged: 09:17:07

[139802135628432] /lights/1/state unauthorized user
[139802143005952] /lights/1/state unauthorized user
[139802133687648] /lights/1/state unauthorized user
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1492, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1527, in _execute_service
    await handler.job.target(service_call)
  File "/usr/src/homeassistant/homeassistant/components/homeassistant/__init__.py", line 121, in async_handle_turn_service
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/core.py", line 1492, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1527, in _execute_service
    await handler.job.target(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
    await self.hass.helpers.service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 658, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 843, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 695, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 471, in async_handle_light_off_service
    await light.async_turn_off(**filter_turn_off_params(light, params))
  File "/usr/src/homeassistant/homeassistant/components/deconz/light.py", line 242, in async_turn_off
    await self._device.async_set_state(data)
  File "/usr/local/lib/python3.9/site-packages/pydeconz/deconzdevice.py", line 42, in async_set_state
    await self.async_set(field, data)
  File "/usr/local/lib/python3.9/site-packages/pydeconz/api.py", line 133, in async_set
    await self._request("put", field, json=data)  # type: ignore
  File "/usr/local/lib/python3.9/site-packages/pydeconz/gateway.py", line 116, in request
    _raise_on_error(response)
  File "/usr/local/lib/python3.9/site-packages/pydeconz/gateway.py", line 228, in _raise_on_error
    raise_error(data["error"])
  File "/usr/local/lib/python3.9/site-packages/pydeconz/errors.py", line 59, in raise_error
    raise cls("{} {}".format(error["address"], error["description"]))
pydeconz.errors.Unauthorized: /lights/1/state unauthorized user

Feel a fool, it looks like when I restarted deconz it did not fully configure and I had to re-open the phoscon app to authorise the link between HA and Deconz. A lesson for the future.

Consider this closed.