I just upgraded my OpenHAB version from 2.5 to 3.0 and migrated my Things and Items configuration from file-based to UI based.
Now I’m trying to move my charts from grafana to using the default openhab charts.
I already know how to use the “influxdb-persist” file and also manged to store values within my influx db.
I want to store the state of some switches whenever theit state changed. Thats working fine as you can see in the screenshot of a query to that data in the command-line at the end of my post.
As you can see the states “ON/OFF” are corretly converted to “1/0”.
There are 3 values persisted. Everything seems fine.
The strange thing is, that when I want to “Analyse” the data the charts are empty.
Also, when I create a new chart and manually add the series of the switch, I only see “NaN” values (Screenshot at the end of this post)
I added the DataTable to the output of the chart and there I also see only “NaN” values.
I tried the API-Explorer to use the REST-API to request the data of the item and got strange results.
I get 5 da* tapoints returned (there should be only 3)
All 5 datapoints have the state “OFF” (2 of 3 should be OFF and one should be ON)
I already searched this forum here and the internet in general and still couldn’t find any solution for my problem.
I realy have no clue of what I’m doing wrong.
Is here anyone who could give e a hint ?
Here are the screenshots (sorry I as a newbie can only upload one image )
I have exactly the same problem. Data table show NaN as values… I use oh3.1 snapshot, but the Analyse function show the correct values as Diagramm. When I save this chart I can work on it without problems. Second problem is, and I think you have the same problem, the tool tip and the legend shows the item twice. I use rrd4j for persist this items.
The demo was the reason why I started to work with a second grid:-) and than I met this problem. What kind of Information do you need?
And I think this is not a persistence problem the problem exist with influxdb and rrd4j.