Hi,
I us my two Shelly BLU TRVs via a Shelly Gen3 Gateway, and want to set the valve position from HA.
Yes, I know, that I have to disable the internal regulation.
Mostrly it works, but sometimes I get an error. Unfortunately this error always accure when the thermostat wants to close the valve. Massive temperature overshoot is observeed …
Here is what I get:
‘’’
2025-03-12 08:34:18.328 ERROR (MainThread) [homeassistant.core] Error executing service: <ServiceCall number.set_value (c:01JP4MB9VNBC7ZER8YKDXDN683): entity_id=[‘number.blutrv_wng_schlafzimmer_valve_position’], value=0.0>
Traceback (most recent call last):
File “/usr/local/lib/python3.13/site-packages/aioshelly/rpc_device/wsrpc.py”, line 509, in _rpc_calls
response = await call.resolve
^^^^^^^^^^^^^^^^^^
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/usr/local/lib/python3.13/site-packages/aioshelly/rpc_device/wsrpc.py”, line 498, in _rpc_calls
async with asyncio.timeout(timeout):
~~~~~~~~~~~~~~~^^^^^^^^^
File “/usr/local/lib/python3.13/asyncio/timeouts.py”, line 116, in aexit
raise TimeoutError from exc_val
TimeoutError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/usr/local/lib/python3.13/site-packages/aioshelly/rpc_device/device.py”, line 444, in call_rpc_multiple
return await self._wsrpc.calls(calls, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.13/site-packages/aioshelly/rpc_device/wsrpc.py”, line 437, in calls
all_successful, results = await self._rpc_calls(calls, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.13/site-packages/aioshelly/rpc_device/wsrpc.py”, line 522, in _rpc_calls
raise DeviceConnectionTimeoutError(sent_calls) from exc
aioshelly.exceptions.DeviceConnectionTimeoutError:
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/shelly/entity.py”, line 406, in call_rpc
return await self.coordinator.device.call_rpc(method, params, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.13/site-packages/aioshelly/rpc_device/device.py”, line 435, in call_rpc
return (await self.call_rpc_multiple(((method, params),), timeout))[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.13/site-packages/aioshelly/rpc_device/device.py”, line 450, in call_rpc_multiple
raise DeviceConnectionError from err
aioshelly.exceptions.DeviceConnectionError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/core.py”, line 2814, in _run_service_call_catch_exceptions
await coro_or_task
File “/usr/src/homeassistant/homeassistant/core.py”, line 2837, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 1007, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, entity, func, data, call.context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 1079, in _handle_entity_call
result = await task
^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/number/init.py”, line 122, in async_set_value
await entity.async_set_native_value(native_value)
File “/usr/src/homeassistant/homeassistant/components/shelly/number.py”, line 135, in async_set_native_value
await self.call_rpc(
…<3 lines>…
)
File “/usr/src/homeassistant/homeassistant/components/shelly/entity.py”, line 410, in call_rpc
raise HomeAssistantError(
…<2 lines>…
) from err
homeassistant.exceptions.HomeAssistantError: Call RPC for BluTrv WNG Schlafzimmer valve position connection error, method: BluTRV.Call, params: {‘id’: 200, ‘method’: ‘Trv.SetPosition’, ‘params’: {‘id’: 0, ‘pos’: 0}}, error: DeviceConnectionError()
2025-03-12 08:34:18.369 WARNING (MainThread) [aioshelly.rpc_device.wsrpc] Response from (192.168.0.240:80) for an unknown request id: 1064: None
‘’’
After rebooting the Shelly Gen3 Gateway the error situation is gone.
The valve and the Gateway were app. 50cm apart, so it can’t be an bluetooth issue like weak signal or things like that.
Thanks for helping.
With best regards
Gerhard