Home Assistant Shelly with Hue Emulation

Hi together,

I have to send a command umpteen times until it is switched via HA. After that he leaves immediately for a long time. Until a longer time has passed and I send another command then I have to send again umpteen times until it is perceived

Error Log:

<code class="language-markup-templating">This is teh coplete Error . Iam wondering that it will be send with brightness 0

Logger: homeassistant
Source: components/shelly/entity.py:228
First occurred: 26. Mai 2021, 18:51:42 (31 occurrences)
Last logged: 12:59:00

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1481, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1516, in _execute_service
    await handler.job.target(service_call)
  File "/usr/src/homeassistant/homeassistant/components/homeassistant/__init__.py", line 115, in async_handle_turn_service
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/core.py", line 1481, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1516, 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 726, 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 376, in async_handle_light_on_service
    await light.async_turn_on(**params)
  File "/usr/src/homeassistant/homeassistant/components/shelly/light.py", line 244, in async_turn_on
    self.control_result = await self.set_state(**params)
  File "/usr/src/homeassistant/homeassistant/components/shelly/entity.py", line 228, in set_state
    return await self.block.set_state(**kwargs)
  File "/usr/local/lib/python3.8/site-packages/aioshelly/__init__.py", line 502, in set_state
    return await self.device.http_request("get", path, kwargs)
  File "/usr/local/lib/python3.8/site-packages/aioshelly/__init__.py", line 336, in http_request
    resp = await self.aiohttp_session.request(
  File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 625, in _request
    resp.raise_for_status()
  File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 1000, in raise_for_status
    raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 400, message='Bad Request', url=URL('http://192.168.10.50/light/0?turn=on&brightness=0')