Closed GerdZanker closed 3 years ago
Sure, having a type there is always better than the dimensionless fallback. Do you have an official source where the dimensions of the data is defined by Bosch? I have not found one yet.
I just compared the logged DEBUG output with the values and units in Bosch Smart Home App.
I just compared the logged DEBUG output with the values and units in Bosch Smart Home App.
Smart! :) Will check your pull request immediately.
PR #73 improves this issues
I recommend to use always the Units Of Measurement to benefit from the conversion support.
The binding code uses the units already for all temperatures from my point of view. But for the Twinguard air purity and humidity no unit is used therefore the conversion is sometimes strange, e.g. to format the humidity as "%" doesn't work.
So instead of
it should be
and
Units.ONE
should never be used anymore.