Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95480

Light.turn_on with Hue lights: not more than 7 entities per service call allowed?

$
0
0

@cicero222 wrote:

Since HA 101.x, I have a weird problem with my Hue lights (1 bridge only, ca. 20 bulbs and lightstrips). I have an automation that kicks in every 10 minutes and adjusts the brightness and color temp during the day - it’s my own circadian light implementation.

This automation loops through all of my lights and applies a light.turn_on to every light that is currently switched on. Everything was fine until I upgraded to HA 101. Since this upgrade I have lots of errors in my log like these:

2019-11-26 21:10: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/entity.py", line 564, in async_request_call
    await coro
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/hue/light.py", line 439, in async_turn_on
    await self.light.set_state(**command)
  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 62, in request
    'Invalid content type: {}'.format(res.content_type))
2019-11-26 21:10: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/entity.py", line 564, in async_request_call
    await coro
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/hue/light.py", line 439, in async_turn_on
    await self.light.set_state(**command)
  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.33: [Errno 104] Connection reset by peer

Using trial-and-error, I found out that the light.turn_on service stops working as soon as it is called with more than 7 entities in entity_id. That’s also the reason why the errors only occur sporadically, i. e. every time 8 or more lights are switched on.

Can an body confirm this behaviour? What has changed with HA 101?

Thanks in advance & best regards,
cicero22

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95480

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>