I am having a problem getting charts to generate in my BasicUI. I just bought a Philips Hue motion sensor and in addition to turning lights on via motion sensor (which I have working), I realised it can take temperature as well. I have the temperature value showing up in my BasicUI but I would like to track it over time. I have enabled persistence (using rrd4j) but I cannot seem to get the charts to generate. When I try to show the chart, the log file says:
You could use the REST API to check if the .rrd file is really getting values.
The database might have got broken because of a change of datatype of the persisted item. In this case stop openhab, remove the .rrd file and restart.
Open the REST APIfrom the dashboard,
select persistence
Select the third blue GET ( /persistence/itmems/{itemname})
Set serviceID to rrd4j and the item name to your item name
Hit the " Try it out!" button.
You will get displayed the name, the number of data points and the data.
Sorry for late reply, we had interruption of power supply which resulted in a breakdown of my installation. Recovered now.
So it is the persistence which doesn’t work. Recheck everything!
Another hint: By using the PersistenceViewer in Habpanel you could check the correct setup of grouped items and if something is really persisted on the fly.
If that is still your setup? You have a group named “Temperature_Chart_GF_MBR” but you asign the item to the group “gGF_MBR”.
I can’t tell if the persist strategy which only addresses gTemperature and Temperature_chart ( not existing) does have the effect that charting of group "Temperature_Chart_GF_MBR " result in NULL.
Based on Opus’ comments, I re-checked everything and realised that the number I was trying to graph was not a member of the correct group I had setup. I don’t want to to go into too much detail because I am going to be changing a number of things with my setup and names (so what I put down will be incorrect very soon), but I have figured out what I did wrong