deCONZ - Official thread

Happy New Year to everyone - and to @Robban in particular who struggles continuously to help us all in every possible and impossible situations. Thank you for your never-ending support :blush::musical_note::boom:

4 Likes

Same issue here, but I have ConBee 1, the older version and on an Intel NUC.
Worked for many years without a hitch, started to do this allmost daily on November or December.
Restarting or replugging the dongle helps.

HI Guys,

can anyone help me with this:

Thank You

Strange problem I just face; for one of my ceiling lights (IKEA G10 bulb) I want to add separate switch (also IKEA) to turn it on/off and make it dimmable separate from all scenes I use in living room. Purpose is to use it as separate reading light. I tried to use prooven @KennethLavrsen solution for this, that works perfectly fine for many other lights. Here is the code I use (exact copy paste from other automation, with only entities id changed):

- alias: 'Increase reading light brightness'
  initial_state: true
  trigger:
    platform: event
    event_type: deconz_event
    event_data:
      id: reading_light_on_off_switch
      event: 1001
  action:
    - service: deconz.configure
      data:
        entity: light.ceiling_11
        field: "/action"
        data: {"bri_inc":254, "transitiontime":35}

- alias: 'Decrease reading light brightness'
  initial_state: true
  trigger:
    platform: event
    event_type: deconz_event
    event_data:
      id: reading_light_on_off_switch
      event: 2001
  action:
    - service: deconz.configure
      data:
        entity: light.ceiling_11
        field: "/action"
        data: {"bri_inc":-254, "transitiontime":35}

- alias: 'Stop brightness changes reading light'
  initial_state: true
  trigger:
    - platform: event
      event_type: deconz_event
      event_data:
        id: reading_light_on_off_switch
        event: 1003
    - platform: event
      event_type: deconz_event
      event_data:
        id: reading_light_on_off_switch
        event: 2003
  action:
    - service: deconz.configure
      data:
        entity: light.ceiling_11
        field: "/action"
        data: {"bri_inc":0}

Unfortunatelly it does not work. In log file I can see some errors associated with these automation (here is sample from trying to increase the brightness):

2023-01-14 16:26:47.669 ERROR (MainThread) [homeassistant.components.automation.increase_reading_light_brightness] Increase reading light brightness: Error executing script. Unexpected error for call_service at pos 1: 4 /lights/67/action method, PUT, not available for resource, /lights/67/action
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 684, in _async_call_service_step
    await service_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1755, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1792, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/components/deconz/services.py", line 89, in async_call_deconz_service
    await async_configure_service(gateway, service_data)
  File "/usr/src/homeassistant/homeassistant/components/deconz/services.py", line 140, in async_configure_service
    await gateway.api.request("put", field, json=data)
  File "/usr/local/lib/python3.10/site-packages/pydeconz/gateway.py", line 167, in request
    response: dict[str, Any] = await self._request(
  File "/usr/local/lib/python3.10/site-packages/pydeconz/gateway.py", line 194, in _request
    _raise_on_error(response)
  File "/usr/local/lib/python3.10/site-packages/pydeconz/gateway.py", line 225, in _raise_on_error
    raise_error(data["error"])
  File "/usr/local/lib/python3.10/site-packages/pydeconz/errors.py", line 73, in raise_error
    raise cls(
pydeconz.errors.RequestError: 4 /lights/67/action method, PUT, not available for resource, /lights/67/action
2023-01-14 16:26:47.670 ERROR (MainThread) [homeassistant.components.automation.increase_reading_light_brightness] While executing automation automation.increase_reading_light_brightness
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 546, in async_trigger
    await self.action_script.async_run(
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1524, in async_run
    await asyncio.shield(run.async_run())
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 409, in async_run
    await self._async_step(log_exceptions=False)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 453, in _async_step
    self._handle_exception(
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 476, in _handle_exception
    raise exception
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 684, in _async_call_service_step
    await service_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1755, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1792, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/components/deconz/services.py", line 89, in async_call_deconz_service
    await async_configure_service(gateway, service_data)
  File "/usr/src/homeassistant/homeassistant/components/deconz/services.py", line 140, in async_configure_service
    await gateway.api.request("put", field, json=data)
  File "/usr/local/lib/python3.10/site-packages/pydeconz/gateway.py", line 167, in request
    response: dict[str, Any] = await self._request(
  File "/usr/local/lib/python3.10/site-packages/pydeconz/gateway.py", line 194, in _request
    _raise_on_error(response)
  File "/usr/local/lib/python3.10/site-packages/pydeconz/gateway.py", line 225, in _raise_on_error
    raise_error(data["error"])
  File "/usr/local/lib/python3.10/site-packages/pydeconz/errors.py", line 73, in raise_error
    raise cls(
pydeconz.errors.RequestError: 4 /lights/67/action method, PUT, not available for resource, /lights/67/action
2023-01-14 16:26:49.633 ERROR (MainThread) [homeassistant.components.automation.stop_brightness_reading_light] Stop brightness reading light: Error executing script. Unexpected error for call_service at pos 1: 4 /lights/67/action method, PUT, not available for resource, /lights/67/action
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 684, in _async_call_service_step
    await service_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1755, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1792, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/components/deconz/services.py", line 89, in async_call_deconz_service
    await async_configure_service(gateway, service_data)
  File "/usr/src/homeassistant/homeassistant/components/deconz/services.py", line 140, in async_configure_service
    await gateway.api.request("put", field, json=data)
  File "/usr/local/lib/python3.10/site-packages/pydeconz/gateway.py", line 167, in request
    response: dict[str, Any] = await self._request(
  File "/usr/local/lib/python3.10/site-packages/pydeconz/gateway.py", line 194, in _request
    _raise_on_error(response)
  File "/usr/local/lib/python3.10/site-packages/pydeconz/gateway.py", line 225, in _raise_on_error
    raise_error(data["error"])
  File "/usr/local/lib/python3.10/site-packages/pydeconz/errors.py", line 73, in raise_error
    raise cls(
pydeconz.errors.RequestError: 4 /lights/67/action method, PUT, not available for resource, /lights/67/action
2023-01-14 16:26:49.634 ERROR (MainThread) [homeassistant.components.automation.stop_brightness_reading_light] While executing automation automation.stop_brightness_reading_light
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 546, in async_trigger
    await self.action_script.async_run(
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1524, in async_run
    await asyncio.shield(run.async_run())
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 409, in async_run
    await self._async_step(log_exceptions=False)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 453, in _async_step
    self._handle_exception(
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 476, in _handle_exception
    raise exception
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 684, in _async_call_service_step
    await service_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1755, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1792, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/components/deconz/services.py", line 89, in async_call_deconz_service
    await async_configure_service(gateway, service_data)
  File "/usr/src/homeassistant/homeassistant/components/deconz/services.py", line 140, in async_configure_service
    await gateway.api.request("put", field, json=data)
  File "/usr/local/lib/python3.10/site-packages/pydeconz/gateway.py", line 167, in request
    response: dict[str, Any] = await self._request(
  File "/usr/local/lib/python3.10/site-packages/pydeconz/gateway.py", line 194, in _request
    _raise_on_error(response)
  File "/usr/local/lib/python3.10/site-packages/pydeconz/gateway.py", line 225, in _raise_on_error
    raise_error(data["error"])
  File "/usr/local/lib/python3.10/site-packages/pydeconz/errors.py", line 73, in raise_error
    raise cls(
pydeconz.errors.RequestError: 4 /lights/67/action method, PUT, not available for resource, /lights/67/action

What is wrong here? Any idea?

Replying to myself, as I found the problem; this procdeure works only on deconz lights group, not on individual lights. So I created single bulb group and everything works fine now.
I’m not sure if this is intended or is ti bug, but at least there is very easy solution :slight_smile:

The reason it did not work with a single light is that for some odd reason you have to use field: “/state” when it is a single light and field: “/action” when it is a group.

Here is the link to my post. I am happy so many found it useful

1 Like

I am having the same issue as submitted here: Integration: deconz · Issue #78470 · home-assistant/core · GitHub
"Entity sensor.plug_34_consumption from integration deconz has state class total_increasing, but its state is not strictly increasing. Triggered by state 121.42 (121.43)..."

This issue is closed and locked and I cannot find any other mentions of this. So not sure if I should submit a new identical issue. Does anyone know about it?

Happens with Innr SP 120. Currently on HA 2022.12.8 and deCONZ 2.19.03.

Same issue as…?

I can understand why the bug was ignored because it had no context of what is causing it

I am not sue what more context I can provide. It is a consumption sensor from a smart plug in deCONZ. For some reason it decreases sometimes. I have only seen this warning recently. Maybe it is more appropriate for the deconz api itself.

Hi,

could you let us know what is this change:

The pull request has no information that I can find. Is there some extra functionality exposed to HA as a result of this change?

Hi - I have the exact same problem - every now and the I have the too many tasks situation, and then all tasks go into en endless wait status - did you ever solve this?

It simply means that you can configure automations to trigger on device triggers for the hue wall switch rather than manually specifying what events you want trigger the automation

It was solved partly with a new version of deconz, but I made an automation that did a restart of deconz if data from a sensor was not received for some time. I dont have this automation anymore as I have switched over to zigbee2mqtt.

1 Like

anyone update deconz addon? seems my motion sensors stay in motion detected state?

Yep updated, no issue.
Now ,I’m having even new devices recognize :slight_smile:

Bump… any reason I keep getting these in my logging:

Logger: pydeconz.models.light.light
Source: components/deconz/light.py:160
First occurred: 14:24:45 (1 occurrences)
Last logged: 14:24:45

Unexpected light effect type 1

image

1 Like

The effect value is reported wrong from deconz side so it should be resolved there.

How and where?

Hi, since update to 6.18.0 addon (Bump deCONZ to 2.20.1) my deconz stops working frequently. restarting the addon fixes it. Whats wrong?

Report it on deconz github. I think the template defines what information you should provide