zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Bosch BTH-RA does not support setting pi_heating_demand

Open rusitschka opened this issue 3 years ago β€’ 26 comments

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

rusitschka avatar Feb 05 '23 11:02 rusitschka

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.

wintersteiger avatar Feb 07 '23 21:02 wintersteiger

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.

wintersteiger avatar Feb 08 '23 19:02 wintersteiger

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?

wintersteiger avatar Feb 10 '23 10:02 wintersteiger

@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: image

image

BBJake avatar Feb 10 '23 16:02 BBJake

@BBJake thanks for the pointer! I can confirm, 0x4020 works exactly as it should, read & write.

wintersteiger avatar Feb 10 '23 18:02 wintersteiger

@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 avatar Feb 10 '23 21:02 rusitschka

@rusitschka I guess he wrote new code for that πŸ˜‰

@wintersteiger Interesting. Isn't the value overriden by the thermostat if the temperature changes?

BBJake avatar Feb 11 '23 17:02 BBJake

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.

wintersteiger avatar Feb 13 '23 12:02 wintersteiger

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 :-(

rusitschka avatar Feb 13 '23 17:02 rusitschka

I get an error too. "No converter available for 'pi_heating_demand' ("")"

dayt47 avatar Feb 26 '23 19:02 dayt47

Also bought BTH-RA to get pi_heating_demand and direct position control working. Please keep us informing for updates.

pichtomaster avatar Mar 01 '23 10:03 pichtomaster

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?

wintersteiger avatar Mar 01 '23 11:03 wintersteiger

It's not possible to set it, but to see it. thermostat-1 thermostat-2

dayt47 avatar Mar 01 '23 13:03 dayt47

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.

tkintscher avatar Mar 01 '23 15:03 tkintscher

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.

wintersteiger avatar Mar 01 '23 15:03 wintersteiger

Right, I have a Danfoss Ally and it does not seem to support direct valve control.

tkintscher avatar Mar 01 '23 15:03 tkintscher

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.

rusitschka avatar Mar 01 '23 20:03 rusitschka

There is also the MClimate Vicki which supports it, but it’s using LoRaWAN.

tkintscher avatar Mar 01 '23 23:03 tkintscher

Bad news! Turns out my valves are a bit too sticky for the Bosches.

20230307_203720

wintersteiger avatar Mar 07 '23 21:03 wintersteiger

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!

wintersteiger avatar Mar 07 '23 21:03 wintersteiger