Light group issue after update

After updating to i think 0.89 my light Groups used in different scenes does not Work properly any more and I get the following error.
I don´t quite know what to make of it but here is an example of a not more working group created in my light.yaml and the part of the scene where it is used.

  - platform: group
    name: Kitchen table
    entities:
      - light.kitchen_6
      - light.kitchen_7
      - light.kitchen_8

  - name: Morninglight
    entities:
      light.kitchen_table:
        state: on
        kelvin: 2500
        brightness: 200
        transition: 3600

2019-03-19 17:54:35 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/lib/python3.5/asyncio/tasks.py”, line 241, in _step
result = coro.throw(exc)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py”, line 1133, in async_call
self._execute_service(handler, service_call))
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/asyncio/tasks.py”, line 241, in _step
result = coro.throw(exc)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py”, line 1155, in _execute_service
await handler.func(service_call)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/light/init.py”, line 288, in async_handle_light_on_service
await light.async_turn_on(**pars)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/light/group.py”, line 180, in async_turn_on
light.DOMAIN, light.SERVICE_TURN_ON, data, blocking=True)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py”, line 1133, in async_call
self._execute_service(handler, service_call))
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step
result = coro.send(None)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py”, line 1155, in _execute_service
await handler.func(service_call)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/light/init.py”, line 288, in async_handle_light_on_service
await light.async_turn_on(**pars)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/hue/light.py”, line 389, in async_turn_on
await self.light.set_state(**command)
File “/srv/homeassistant/lib/python3.5/site-packages/aiohue/lights.py”, line 117, in set_state
json=data)
File “/srv/homeassistant/lib/python3.5/site-packages/aiohue/bridge.py”, line 62, in request
‘Invalid content type: {}’.format(res.content_type))
aiohue.errors.ResponseError: Invalid content type: text/html

Did you ever resolve this? I am seeing the same!

Actually I don´t remember what happened to this issue, but I am using exact this syntax now and it works fine. I am on 0.100.2.

1 Like

Thanks.
I’m progressing it via
[https://github.com/balloob/aiohue/issues/22#issuecomment-570701712].
It seems intermittent.

Actaully after updating to 0.103.5 I get this error. Could that be related?

2020-01-03 23:59:20 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/script.py”, line 190, in async_run
await self._handle_action(action, variables, context)
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/script.py”, line 273, in _handle_action
await self._actions[_determine_action(action)](action, variables, context)
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/script.py”, line 355, in _async_call_service
context=context,
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/service.py”, line 97, in async_call_from_config
domain, service_name, service_data, blocking=blocking, context=context
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py”, line 1235, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py”, line 1260, in _execute_service
await handler.func(service_call)
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_component.py”, line 205, in handle_service
self._platforms.values(), func, call, service_name, required_features
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/service.py”, line 336, in entity_service_call
future.result() # pop exception if have
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/service.py”, line 358, in _handle_service_platform_call
await getattr(entity, func)(**data)
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/homeassistant/scene.py”, line 244, in async_activate
context=self._context,
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/state.py”, line 105, in async_reproduce_state
*(worker(domain, data) for domain, data in to_call.items())
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/state.py”, line 99, in worker
hass, states_by_domain, context=context
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/group/reproduce_state.py”, line 29, in async_reproduce_states
await async_reproduce_state(hass, states_copy, blocking=True, context=context)
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/state.py”, line 105, in async_reproduce_state
*(worker(domain, data) for domain, data in to_call.items())
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/state.py”, line 99, in worker
hass, states_by_domain, context=context
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/light/reproduce_state.py”, line 125, in async_reproduce_states
*(_async_reproduce_state(hass, state, context) for state in states)
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/light/reproduce_state.py”, line 116, in _async_reproduce_state
DOMAIN, service, service_data, context=context, blocking=True
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py”, line 1235, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py”, line 1260, in _execute_service
await handler.func(service_call)
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_component.py”, line 205, in handle_service
self._platforms.values(), func, call, service_name, required_features
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/service.py”, line 336, in entity_service_call
future.result() # pop exception if have
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/service.py”, line 358, in _handle_service_platform_call
await getattr(entity, func)(**data)
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/group/light.py”, line 267, in async_turn_off
light.DOMAIN, light.SERVICE_TURN_OFF, data, blocking=True
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py”, line 1235, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py”, line 1260, in _execute_service
await handler.func(service_call)
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_component.py”, line 205, in handle_service
self._platforms.values(), func, call, service_name, required_features
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/service.py”, line 336, in entity_service_call
future.result() # pop exception if have
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/service.py”, line 358, in _handle_service_platform_call
await getattr(entity, func)(**data)
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/hue/light.py”, line 462, in async_turn_off
await self.bridge.async_request_call(self.light.set_state(**command))
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/hue/bridge.py”, line 93, in async_request_call
return await coro
File “/srv/homeassistant/lib/python3.7/site-packages/aiohue/lights.py”, line 117, in set_state
json=data)
File “/srv/homeassistant/lib/python3.7/site-packages/aiohue/bridge.py”, line 69, in request
) from None
aiohue.errors.RequestError: Error requesting data from 192.168.1.72: [Errno 104] Connection reset by peer

This issue is progressing on
[https://github.com/balloob/aiohue/issues/22#issuecomment-570701712 ].
It seems intermittent, but a know issue.
Ring are engaged to find a solution.