Bosch BTH-RA does not support setting pi_heating_demand
What happened?
According to Documentation Bosch BTH-RA supports setting pi_heating_demand. However that does not work. And looking at the Herdsman code the feature is missing.
Is this an error in documentation?
What did you expect to happen?
I can manually set pi_heating_demand.
How to reproduce it (minimal and precise)
Publish e.g. {"pi_heating_demand": 20} to zigbee2mqtt/FRIENDLY_NAME/set.
Zigbee2MQTT version
1.30.0 commit: 8f781db
Adapter firmware version
20221226
Adapter
Slaesh's RB2652
Debug log
No response
Same here; I just received one today and it claims it doesn't support attribute 0x0008 on cluster 0x0201. It says that it's firmware is version 3.02.05 dated 20220627 and it looks like there's a newer one (here). I'll give it a try, but might take me a few days until I get around to it.
Didn't take me quite as long as I thought it would, but sadly nothing changed after the update. It still rejects any attempt to read or write this attribute.
See also https://github.com/Koenkk/zigbee2mqtt/issues/15782 and https://github.com/Koenkk/zigbee-herdsman-converters/pull/5150
@BBJake can you confirm that your BTH-RA's still report this attribute?
@rusitschka The documentation is created from the code and there it is only possible to read that value! So I think that the "documentation" is wrong in that point. @wintersteiger The BTH-RA ist not using the attribute at 0x0008! It uses some custom attribute for that:
if (data.hasOwnProperty(0x4020)) {
result.pi_heating_demand = data[0x4020];
And this is (of course) still working:


@BBJake thanks for the pointer! I can confirm, 0x4020 works exactly as it should, read & write.
@wintersteiger how is it possible write works for you if the code doesn't support it? I'm asking because I'm about to return my TRV because I bought it for the single reason that it supports setting valve position manually. I already implemented the feature. It's not working...
@rusitschka I guess he wrote new code for that π
@wintersteiger Interesting. Isn't the value overriden by the thermostat if the temperature changes?
That's right, I'm not using zigbee2mqtt, I just send raw zigbee frames to the network (over the serial port to a Sonoff dongle). It requires the manufacturer-specific flag and ID in the ZCL header, without that it will complain. It accepts my settings, i.e. when I read them back I get the right values, but I haven't checked whether it actually moves the pin when I do that. I don't expect it to be overwritten as long as it's in manual mode. I have tried changing the temperature setpoint after setting the valve position and it did not overwrite the valve position immediately. It could be delayed though, I didn't wait very long.
I also bought one of these TRVs because of this feature, so I'll be testing this further. The only other zigbee TRV I found with this feature is the Eurotronic Spirit, which hasn't been available for a long time (at least in the UK), so I really hope the Bosches work.
Oh that's awesome @wintersteiger! Can you keep us posted when you know if it is really working and how reliable it is? I returned mine already so I cannot help testing :-(
I get an error too. "No converter available for 'pi_heating_demand' ("")"
Also bought BTH-RA to get pi_heating_demand and direct position control working. Please keep us informing for updates.
I've done some more experimenting, but I'm afraid I haven't found a way to set the valve position yet. It accepts the values I write to it and reports them back, but it doesn't move the pin. In auto and manual mode it resets my values (as you'd expect), but in pause mode it doesn't, so that's at least something.
I noticed that it accepts pretty much any value for the operating mode, so it's possible that there is one for valve position mode, but I haven't found it yet.
I don't have a Bosch Controller; if someone has one, could you take a look around the device settings in the Bosch app to see whether it's possible to set the valve position there?
It's not possible to set it, but to see it.

I also bought one of these TRVs because of this feature, so I'll be testing this further. The only other zigbee TRV I found with this feature is the Eurotronic Spirit, which hasn't been available for a long time (at least in the UK), so I really hope the Bosches work.
I would love this feature as well, especially when it is working more reliably than with the Eurotronic devices.
For the Eurotronic ones pi_heating_demand was also not writable (I guess it is intended as the output from the PID loop, which doesn't run in the fully manual scenario). Instead the valve position had to be written to the manufacturer-specific attribute 0x4001.
I don't know whether there is a way to "scan" for these kind of attributes with z2m.
There is Zigbee attribute and command discovery, but you get very little information out of them (essentially just existence and datatype). Eurotronics kindly provides detailed information about this in their manual (including e.g. 0x4001). The only other devices I found with that kind of documentation are the Danfoss Ally TRVs, but AFAICT they don't offer direct valve position control.
Right, I have a Danfoss Ally and it does not seem to support direct valve control.
Shelly TRV does but it's WiFi not Zigbee. For Zigbee Ubisys H1 may support it according to zigbee2mqtt documentation. But maybe it's a similar documentation bug as Bosch.
There is also the MClimate Vicki which supports it, but itβs using LoRaWAN.
Bad news! Turns out my valves are a bit too sticky for the Bosches.

Shelly TRV does but it's WiFi not Zigbee. For Zigbee Ubisys H1 may support it according to zigbee2mqtt documentation. But maybe it's a similar documentation bug as Bosch.
Thanks for the pointer, I had never heard of Ubisys before!