- Hardware: Raspi 3
- OS: Raspian OS 10
- openHAB version: 3.1.0 Release Build running on Docker 2.6.2
- Bindings: Homematic Binding for CCU 2 (controlling lights via Alexa, logging the heating), Gardena Binding for Gardena Gateway / smart irrigation control (logging soil humidity), Alexa Binding (controlling the Homematic lights)
While I’m pretty happy the way the Gardena binding is working on my openHAB (primarily: logging the soil moisture and valve status; the actual irrigation is done by the Gardena smart irrigation control directly), the way the values are formatted in openHAB is pretty irritating:
While the battery level of the sensor looks perfectly fine…
… and the graph also looks the way it should (ignore the fact that there’s not much data inside)…
… the soil humidity just looks odd (with the “one”-string at the end)…
… and the y-axis label looks weird (with the “%unit”):
I did read through the “transformation-chapter” in the tutorial (Transformations | openHAB), but since I have to substract a " one"-string from a string, convert it to a number and add a " %" I’m a bit puzzled on how to do that.
Anyone with the same problem / anyone can give directions? Specifically:
- How to convert " one" to " %"?
- How to change the y-axis-label in the graph “%unit%” to “%”?
Thanks a lot!