BRT-100-TRV temperature accuracy
Discussed in https://github.com/Koenkk/zigbee2mqtt/discussions/9155
Originally posted by michalk-k October 14, 2021
What happened
Moes BRT-100-TRV provides 0.5 degree of Celsius accuracy. It is mentioned in its manual as well as exposed on its display. Such accuracy is available for local temperature as well as for programmed temperatures (target)
Z2M exposes temperature without fraction of degrees. In fact it rounds it up (because 0.5 rounded to 1)
What did you expect to happen
Exposing temperatures with original (0.5) accuracy by Z2M
How to reproduce it (minimal and precise)
- set up target temperature on TRV to 22.5
- observe target temperature in Z2M (23 will be shown)
Hi @michalk-k, You are right, it is exactly as you wrote.
Moes BRT-100-TRV provides 0.5 degree of Celsius accuracy. It is mentioned in its manual as well as exposed on its display. Such accuracy is available for local temperature as well as for programmed temperatures (target)
Z2M exposes temperature without fraction of degrees. In fact it rounds it up (because 0.5 rounded to 1)
I also programmed that with rounding on purpose.
Why?
But you cannot expect that TRV Zigbee data transport will work with an accuracy of 0.5 ° C. This information is not available in the manual either.
In reality, TRV-Zigbee-data transport works with 1 ° C exactly, I tested that.
That's why I also programmed z2m converters with a rounding function.
In my opinion you don't need such an accuracy either. 1 ° exactly is sufficient. I am fully satisfied with the BRT-100-TRV.
If TRV doesn't send data with 0.5 degree, why to round it at all?
But you cannot expect that TRV Zigbee data transport will work with an accuracy of 0.5 ° C.
Why? Those devices are intended to communicate with wall-thermostats. Why shouldn't they allow to work with half of degrees while it's common for most thermostats?
If TRV doesn't send data with 0.5 degree, why to round it at all?
Do you have an idea how to do better? Offer that.
If you lead me to some article about how can I debug communication with zigbee device (which is already paired with zigbee2mqtt) then I can try it on my own.
However what I was asking above comes from kind of inconsistency I found in what you wrote. I understood you wrote that the TRV doesn't provide fraction of degree in zigbee protocol. At the same time you wrote you are rounding those values. I cannot see point of rounding if there are no fraction of units in received data.
Explanation:
When TRV gets the number 20,5 he recognizes the , Comma as a four-digit unknown number, this results in an error and TRV blocks itself.
That must not allow.
He needs whole number 20 or 21. Many thermostats have that. Is normal.
I've checked and tested this several times.
Just believe me.
To avoid this effect, the Math.round() function must round up the number.
https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Math/round
20,49 = 20 20,5 = 21 And that's exactly how I did it.
Ehmm... Now I believe it. If you send random string to the TRV (20,5 is the random string because of the comma) then I'm not surprised with unexpected behaviour or even lockdown.
Who is sending comma as decimal character? it has to be dot (20.5)
But I also asked about temperatures being sent by TRV If I set 20.5 degree in TRV, what is being sent out through zigbee?
But I also asked about temperatures being sent by TRV If I set 20.5 degree in TRV, what is being sent out through zigbee?
For z2m is no problem, accepts everything and 20.5 too.
I'm sure you are missing my point. I was asking why local temperature reported by TRV contain no fraction of degrees. You wrote that you had to round it. After a while you admited you had to round values to be sent to TRV. Thus this is no data I was originally asked for (useful info though)
I'm still asking about local or programmed temperature reported by TRV. In other words data generated by TRV. In addition: how can I debug raw data received from TRV ?
BTW sorry for my ignorance, but I'm not sure. You are an author of this TRV converter for Z2M or you are answering on behalf of those authors in any way?
I have already clearly written several times that I have written TRV converters. Is that hard to understand? Why do I have to write to you several times and you still don't understand?
If you want to ask something, just ask a question and wait for an answer, but don't write everything at once. If you don't believe me, don't ask!
A short and concise question = a short concise answer!
Or don't ask!
You are getting rude, pal. Keep calm
I'm very calm and very polite that's why we're still communicating. Therefore these rules are in order to understand us better.
I don't have time now, I have to go.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days
Hi, it seems i have the same question.. In order to program the TRV and to keep the temperature stable, i wonder if it is possible to retrieve a temperature with 1 digit behind the dot (or comma). Currently it makes my automations only able to switch on or off in whole degrees Celcius, which is quite a wide range..
So in short: Is it possible to retrieve a value of the current temparature measured by the TRV with one digit behind the dot (or comma)?
If you meant local_temperature to read 26.0 ° C, then that is a totally different question. I answer yes, it is possible.
Thanks! Probably that is partly what i meant.
Imagine there is a separate thermometer next to the TVR If both indicate exactly 26.0 than it is accurate if the TVR sends 26.0 However.. If the separate thermometer shows 26.3 Is it than possible for the TRV to send a value of 26.3? Or, as a second best solution, (since values in steps of 0.5 are indicated on the TVR itself) to send a value of 26.5?
It can only be displayed in the same way as with TVR with 0.5 steps.
That would still be great! Than we can regulate the temperature with a margin of 0.5 degrees. Since I don't have the skills to support in programming for Zigbee2MQTT i wonder if this can be achieved with changing settings, or does this require an update in the converter / Zigbee2MQTT? Thanks again!
local_temperature With 0.5 ----> yes Is possible
current_heating_setpoint With 0.5 ----> no Not possible
I have already written several times to regulate with 0.5 not possible!!!