New AirGradient connection in openHABian 5.x. I have two issues I need help with:
1: The reading for TVOC on the AirGradient Dashboard is currently 78. In OH it’s displayed as .0000078%. I’ve been hacking away at it and I’ve managed to remove the % and get the display to 780, but obviously I need to understand the correct way to configure this Item. Have not been able to find solid information in search. Current settings are default (Dimension: Dimensionless, Unit: %, State Description Pattern: %d %Unit%
2: OH has all of the channels shown in the AirGradient Dashboard except NOx. No channel showing for that in OH.
Wouldn’t VOC be measured in ppm or ppb? Trying to live in an environment of 78% VOCs I think would be fatal. I’ve never seen % used for a VOC measurement but 0.0000078% actually seems a reasonable measurement in %.
You probably just need to determine what unit the binding publishes and whether the binding publishes the value with a unit or just a raw number.
If the binding publishes just a raw number, you need to make your Item’s unit metadata match what’s being published (e.g. “ppb”). I don’t think that’s the case give the % value you are seeing.
If the binding publishes the value with a unit, you can make your Item’s unit metadata be what ever unit you want it to be (“ppm”, “ppb”, “ppt”, etc.). I’m pretty sure this is what you need to do.
The state description pattern can be %Unit% which will be what ever the unit metadata is, or you can specify what unit you want to see the value as in the UIs.
Double check it’s not hidden behind the “show advanced” checkbox. It’s not always easy to predict which Channels a binding author would choose to hide by default.