Errors in log with light.turn_off and Philips Hue integration

Since Home Assistant 2022.3 I get the following errors when I do a light.turn_off on a group of Philips Hue lights.

If I add

data: 
  transition: 0

to the call, the errors disappear but the lights are very dim when you turn them on with a light.turn_on

Does anyone know what is going on?

  • Home Assistant 2022.3.5
  • latest Philips Hue integration
Logger: homeassistant.helpers.script.websocket_api_script
Source: components/hue/bridge.py:124 
First occurred: 19:53:35 (1 occurrences) 
Last logged: 19:53:35

websocket_api script: Error executing script. Unexpected error for call_service at pos 1: device (grouped_light) is "soft off", command (.on) may not have effect
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 367, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 570, in _async_call_service_step
    await service_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1636, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1673, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
    await self.hass.helpers.service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 668, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 949, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 705, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 513, in async_handle_light_off_service
    await light.async_turn_off(**filter_turn_off_params(light, params))
  File "/usr/src/homeassistant/homeassistant/components/hue/v2/group.py", line 216, in async_turn_off
    await self.bridge.async_request_call(
  File "/usr/src/homeassistant/homeassistant/components/hue/bridge.py", line 134, in async_request_call
    raise err
  File "/usr/src/homeassistant/homeassistant/components/hue/bridge.py", line 124, in async_request_call
    return await task(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/aiohue/v2/controllers/groups.py", line 95, in set_state
    await self.update(id, GroupedLightPut(on=OnFeature(on=on)))
  File "/usr/local/lib/python3.9/site-packages/aiohue/v2/controllers/base.py", line 159, in update
    await self._bridge.request("put", endpoint, json=data)
  File "/usr/local/lib/python3.9/site-packages/aiohue/v2/__init__.py", line 175, in request
    raise_from_error(result["errors"][0])
  File "/usr/local/lib/python3.9/site-packages/aiohue/errors.py", line 38, in raise_from_error
    raise cls(error["description"])
aiohue.errors.AiohueException: device (grouped_light) is "soft off", command (.on) may not have effect


Logger: homeassistant.components.websocket_api.http.connection
Source: components/hue/bridge.py:124 
Integration: Home Assistant WebSocket API (documentation, issues) 
First occurred: 19:53:35 (1 occurrences) 
Last logged: 19:53:35

[140345819833872] Error handling message: Unknown error
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 552, in handle_execute_script
    await script_obj.async_run(msg.get("variables"), context=context)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1243, in async_run
    await asyncio.shield(run.async_run())
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 349, in async_run
    await self._async_step(log_exceptions=False)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 367, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 570, in _async_call_service_step
    await service_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1636, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1673, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
    await self.hass.helpers.service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 668, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 949, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 705, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 513, in async_handle_light_off_service
    await light.async_turn_off(**filter_turn_off_params(light, params))
  File "/usr/src/homeassistant/homeassistant/components/hue/v2/group.py", line 216, in async_turn_off
    await self.bridge.async_request_call(
  File "/usr/src/homeassistant/homeassistant/components/hue/bridge.py", line 134, in async_request_call
    raise err
  File "/usr/src/homeassistant/homeassistant/components/hue/bridge.py", line 124, in async_request_call
    return await task(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/aiohue/v2/controllers/groups.py", line 95, in set_state
    await self.update(id, GroupedLightPut(on=OnFeature(on=on)))
  File "/usr/local/lib/python3.9/site-packages/aiohue/v2/controllers/base.py", line 159, in update
    await self._bridge.request("put", endpoint, json=data)
  File "/usr/local/lib/python3.9/site-packages/aiohue/v2/__init__.py", line 175, in request
    raise_from_error(result["errors"][0])
  File "/usr/local/lib/python3.9/site-packages/aiohue/errors.py", line 38, in raise_from_error
    raise cls(error["description"])
aiohue.errors.AiohueException: device (grouped_light) is "soft off", command (.on) may not have effect
1 Like

Just found Hue: device (grouped_light) has communication issues, command (.on) may not have effect · Issue #68231 · home-assistant/core · GitHub

I am seeing the same when trying to run automations with hue bulbs, it then stop the automation from completing.

As written here already: Hue: device (grouped_light) has communication issues, command (.on) may not have effect · Issue #68231 · home-assistant/core · GitHub

Switching groups of lights lead to an error in certain condistions.
This error is with Hue light groups which are on power.

It follows three tests with three different groups and below a summary.

(TEST A)
Group/Room 1 of three spots in one light:

  1. Switching light group on never leads to an error.
  2. Switching light group off does not lead to an error as long as there is one specific spot (spot 1) on.
  3. Switching light group off and the spot 1 is already off (and others on) leads to the error (however switches the lights off).

(TEST B)
Group/Room 2 of two bulbs/lights:
No problem.

(TEST C)
Group/Room 3 of four bulbs/lights:
Same as (A). There is on specific lamp, is that one on, than there is no error.

Summary:

While in (B) there is no problem with that room/group (with two bulbs), in (A) and (C) there is in both cases one specific bulb/lamp, if this one is switched on, there is no error when group is switched off. Even with error, all bulbs get switched off. No problem at all when switching on.

Details:

That is from the Node-red error log:
Call-service error. device (grouped_light) is “soft off”, command (.on) may not have effect

This is in the HA log:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/hue/bridge.py:124
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 19. März 2022, 16:01:58 (39 occurrences)
Last logged: 09:36:40

[139726625494352] device (light) has communication issues, command (.on.on) may not have effect
[139726625494352] device (grouped_light) is “soft off”, command (.on) may not have effect
[139726625494352] device (grouped_light) has communication issues, command (.on) may not have effect

… more to see in link above.

1 Like