Temperature chart


I trying to show my house temperatures in a chart.

I installed RRD4J, and set up the following:


Frame label="Nappali" icon="humidity"{
 Text item=Temperature {
   Text item=natemp
   Switch item=GraphRange label="Time:" mappings=[0="1H", 1="24h", 2="48h", 3="W", 4="M"]
   Chart item=gTemp_Outdoor period=h  refresh=6000 visibility=[GraphRange==0, GraphRange=="Uninitialized"]
   Chart item=gTemp_Outdoor period=D  refresh=6000 visibility=[GraphRange==1]
   Chart item=gTemp_Outdoor period=2D refresh=6000 visibility=[GraphRange==2]
   Chart item=gTemp_Outdoor period=W  refresh=6000 visibility=[GraphRange==3]
   Chart item=gTemp_Outdoor period=M  refresh=6000 visibility=[GraphRange==4] 


Group gTemp_Outdoor
 Number natemp "Nappali hőmérséklet [%.1f °C]"  (gTemp_Outdoor) {mqtt="<[raspberrypi:tele/thermostat/SENSOR:state:JSONPATH($.DS18B20.Temperature)]"}
//dummy item:
Number GraphRange 


Strategies {
    everyMinute : "0 * * * * ?"
    everyHour : "0 0 * * * ?"
    everyDay : "0 0 0 * * ?"

    default = everyChange

Items {
    gTemp_Outdoor* : strategy = everyMinute, restoreOnStartup


Temperature graph shows nothing, what am I doing worong?

Which persistence service(s) are you using, and what is your system default set to (because that controls where the Chart widget looks)

I’m guessing you are on OH2, you must tell us these things.

RRD4J is the default, and yes I use openHAB 2.5.12, sorry!

What does the logging tell you?
Did you install JSONPATH transformation?
Did you check wether any data is persisted at all (checking for the relevant .rrd filesor checking via the REST API)?


I checking the log with Frontail but it shows nothing to me.
JSONPATH transformation is active.
Yes the weather data (24,9) is accurate.

I found this error message:

2022-11-27 19:48:56.234 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.sitemap.Text

I founfd the .rrd files, looks like RRD4J working.

I found this soulution, but I don’t know how to do it, someone please explane me?

That’s something else, obviously a Text widget like one of these two, or somewhere else in the sitemap.

Check Item name spelling, and it is case-sensitive,

Items name spelling looks good to me, “natemp” is storing the actual temperature.

And right above that Text widget for “natemp” is another Text widget pointing to a supposed Item “Temperature”. Does that exist? You’ll need to look at every Text widget in your sitemap.

Its unlikely this has anything to do with your chart problem, but I suppose if the failing Text widget {encloses} the charts it just might.

I think I’d use REST API to see if you can access data .for the group member Item(s)

1 Like

I started over form the begening, and now it works fine with this settings!

Thanks for everyone!