Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[velbus] VMB4AN Number Formatting Feature Request #11597

Open
smoothquark opened this issue Nov 17, 2021 · 2 comments
Open

[velbus] VMB4AN Number Formatting Feature Request #11597

smoothquark opened this issue Nov 17, 2021 · 2 comments
Labels
enhancement An enhancement or new feature for an existing add-on

Comments

@smoothquark
Copy link

Thanks for a great binding. Can I suggest a feature request please (this is assuming I am not doing something stupid!)
I have an VMB4AN configured for Bathroom Humidity (CH9) and Temperature (CH10).
The channels (CH9, CH9Raw; CH10, CH10Raw) works as expected in that the Raw channels provide the current voltage in mV and CH9 and CH10 provide the humidity and temperature readings in % and °C respectively. As expected, the non-raw channels show % and °C when Type is "String" and not when Type is configured as "Number:Dimensionless" or "Number:Temperature". When it is configured as "String" the trend/Analyze function is not available. My current workaround is to use "%.1f %" and "%.1f °C" respectively. I guess this would be the correct way?
I wonder if it may be a good idea to provide CH9-12 channels with say a Number suffix and to use the openHAB types to get the correct formatting?
Thank you.

@smoothquark smoothquark added the enhancement An enhancement or new feature for an existing add-on label Nov 17, 2021
@smoothquark
Copy link
Author

Oh. Just noticed - if I use both CH9 and CH9Raw as Channel Links to a Point (Bathroom Humidity) with type as Number:Dimensionless, it is displayed with '%' and updates and shows the trend/Analyze function and the workaround with StateDescription patterns is not required. Is this by design or a a happy coincidence?

@Rosen01
Copy link
Contributor

Rosen01 commented Aug 25, 2023

The non-raw channels return the information from the module as a string (with the unit provided in the configuration).

I think we can close this request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

No branches or pull requests

2 participants