[Feature request]: SONOFF TRV-ZBT Gen2 β direct valve position control in heat mode for external thermostats
Is your feature request related to a problem? Please describe
I use Home Assistant with Zigbee2MQTT and Versatile Thermostat (VTherm), and would like to let VTherm manage room temperature by directly controlling the valve opening of the SONOFF TRV-ZBT (Gen2).
The previous-generation SONOFF TRVZB supports a direct valve control configuration in VTherm using its opening and closing degree entities. I would like the Gen2 to support the same use case reliably.
The TRV-ZBT already exposes heating_valve_position. However, exposing writable percentages does not currently provide independent control of the valve: the internal thermostat still determines when the requested position is applied.
This limitation is discussed in Versatile Thermostat discussion #2067. In heating mode, changes to heating_valve_position remain dependent on the internal temperature logic, including temperature_accuracy. The VTherm compatibility documentation for TRV-ZBT also identifies direct valve control as unsupported without an experimental workaround.
The intended use case is for VTherm to calculate the required opening from the room temperature and target temperature, while the TRV acts as the valve actuator.
Describe the solution you'd like
Could the SONOFF firmware developers provide an explicit, optional external/direct valve control mode, usable with system_mode: heat and exposed through Zigbee2MQTT?
In this mode:
An external controller can request a valve opening from 0% (closed) to 100% (fully open).
Each new request causes the valve to move to the requested position.
The internal temperature setpoint, hysteresis (temperature_accuracy) and adaptive/PID regulation do not override or delay normal external position commands.
No temperature manipulation, setpoint changes or heat/off toggling is required to apply a position.
Existing autonomous thermostat operation remains available when direct control is disabled.
This could be implemented either by making heating_valve_position directly effective in this optional mode, or by introducing a dedicated writable valve-position attribute.
Describe alternatives you've considered
Using VTherm only to send temperature setpoints: this leaves valve modulation to the TRVβs internal thermostat.
Adjusting temperature_accuracy or disabling smart_temperature_control: these settings do not provide an explicit external actuator mode.
Using the experimental VTherm βvalve kickβ blueprint: a useful community workaround, but native firmware support would provide a clearer and more reliable interface.
Additional context
Could SONOFF confirm whether this is achievable with existing Zigbee commands or whether a firmware update is needed? If an existing supported method is available, documenting it and exposing it through Zigbee2MQTT would also address the request.
References:
VTherm discussion #2067 β Support for the new SONOFF TRV Gen2? Zigbee2MQTT β SONOFF TRV-ZBT VTherm β TRV-ZBT Gen2 compatibility VTherm β TRVZB Gen1 direct valve control
Thanks to the Zigbee2MQTT, SONOFF and Versatile Thermostat contributors for their work and for considering this improvement.
cc @CubeZ2mDeveloper
Hi @AlexisHFr,
I've forwarded your feature request to the relevant product team for evaluation. As we're part of the CUBE team and aren't directly involved in device firmware development, we don't have visibility into specific product plans or timelines.
You can also submit this feature request directly to our official support team at [email protected], so it can be passed along through the appropriate channel.
We'll do our best to keep you updated if there's any news.
Thanks for your patience and understanding!
I have the same problem, as many others. It's well described from @AlexisHFr and i agree with his solution to implement an optional valve control for external tools.
That would not effect Sonoffs own logic or control, but offers the possibility for Home Assistant users to control the TRVs.
+1, with test results that may help pin down the behaviour.
Setup: 5x TRV-ZBT (Gen 2), Zigbee2MQTT 2.14.3, EmberZNet 7.5.1 coordinator, Home Assistant with Versatile Thermostat ("thermostat over a valve", writing the same % to heating_valve_position and idle_valve_position). smart_temperature_control off, temperature_sensor_select = remote_temperature.
Tested at one valve by listening for the motor and the water flow:
- Writing heating_valve_position / idle_valve_position alone (40 -> 100 -> 0 -> 100): acknowledged and reported back correctly, no motor movement, no change in flow. At one point the valve reported 100/100 while holding the pin fully closed.
- Writing external_temperature_input above the setpoint with idle_valve_position = 0: motor runs, flow stops.
- Writing external_temperature_input below the setpoint with heating_valve_position = 100: motor runs, flow starts.
- Writing external_temperature_input above the setpoint with idle_valve_position = 100: no motor, flow continues.
- valve_travel_calibration: motor runs normally.
So the positions are honoured, but only applied at the moment the internal thermostat changes state (heat <-> idle). A position written while the state stays the same is stored and never acted on until the next transition. running_state stayed "idle" throughout, including while the valve was open and heating, so it is not a reliable indicator.
Practical effect with an external thermostat: valves hold stale positions for long periods (rooms under target with a shut valve and the boiler running, or open after the room is warm).
Workaround in use: on every change of the valve position, write external_temperature_input = setpoint - 3, wait 10 s, setpoint + 3, wait 10 s, then restore the real room temperature. One of the two transitions applies the new position. It works, but costs extra motor travel and Zigbee writes, and the valve display shows a wrong temperature for about 20 s.
A firmware option to apply a written valve position immediately in heat mode would remove the need for all of this.