I have a window sensor in my smarthome. To manage the smarthome I use openHAB + influxDB + Grafana on a raspPI.
InfluxDB shows values like ‘open’ and ‘closed’ for the different window-states.
Since influxDB shows ‘only’ ‘open’ or ‘closed’ I cannot use these values to create metrics in Grafana.
I need values like 0 (for closed) and 1 (for open) to create the metrics and finally a graph.
Is there any text to value mapping in openHAB? How can I solve this issue?