[Solved] No items in MyOpenHAB

I’ve successfully set up myopenhab to send notifications to my ios app when specific rules are triggered. My assumption then is that I have myopenhab set up correctly.

I’m now trying to graph the temperature item in my sitemap without success. I have the following persistence set up in myopenhab.persistence:

Strategies {

everyMinute : "0 * * * * ?"
everyHour : "0 0 * * * ?"
everyDay : "0 0 0 * * ?"
default = everyChange


Items {

// persist everything when the value is updated

 * : strategy = everyChange, restoreOnStartup

// define strategies of everyHour for Temperature group

temperature* : strategy = everyHour


However there are no items appearing in the myopenhab items tab. Any help would be appreciated.

openHAB 1.8.3 on RPi2

This is appearing in my openhab.log file:

2016-06-19 12:00:01.909 [ERROR] [.myopenhab.internal.MyOHClient] - Socket.IO error: io.socket.engineio.client.EngineIOException: websocket error
2016-06-19 12:00:01.913 [DEBUG] [.myopenhab.internal.MyOHClient] - Socket.IO disconnected
2016-06-19 12:00:01.914 [INFO ] [.myopenhab.internal.MyOHClient] - Disconnected from my.openHAB service (UUID = *** removed ***, local base URL = http://localhost:8080)
2016-06-19 12:00:03.369 [DEBUG] [.myopenhab.internal.MyOHClient] - Manager.EVENT_TRANSPORT
2016-06-19 12:00:03.372 [DEBUG] [.myopenhab.internal.MyOHClient] - Transport.EVENT_REQUEST_HEADERS

In addition if I browse to https://my.openhab.org/rest/items i can see all my items and they report current state. For example:


I don’t know the myopenhab addon, but:

  1. The file has to be named myopenhab.persist, not myopenhab.persist ence
  2. For graphing an item, the persistence strategy has to be setup to everyMinute, at least this is required for charting through rrd4j persistence, but I think, this applies to myopenhab, too.
  3. did you add your temp items to the group temperature? In the *.persist file, temperature* represents all group members from the group temperature but the group itself.

Thank you Udo! After changing the filename to myopenhab.persist I now have items appearing and updating in my.openab items and events tab. I’m still unable to chart temperature though - i just get a blank chart. Here are my settings:


Group temperature  "Temperature"   <temperature>
Number   Temp_Garagedoor       "Garage Temperature: [%.1f °C]"  <temperature> 	(sensor, temperature)		{ zwave="6:2:command=sensor_multilevel,sensor_type=1" }


temperature* : strategy = everyMinute


Chart item=Temp_Garagedoor period=D

and this is still appearing in openhab.log:

2016-06-20 20:00:02.216 [ERROR] [.myopenhab.internal.MyOHClient] - Socket.IO error: io.socket.engineio.client.EngineIOException: websocket error
2016-06-20 20:00:02.221 [INFO ] [.myopenhab.internal.MyOHClient] - Disconnected from my.openHAB service (UUID = ***removed***, local base URL = http://localhost:8080)
2016-06-20 20:00:22.832 [INFO ] [.myopenhab.internal.MyOHClient] - Connected to my.openHAB service (UUID = ***removed***, local base URL = http://localhost:8080)

At least this messages are quite usual for myopenhab. I do have exactly the same messages constantly every four hours at full hours (20h,0h,4h,8h etc.). As long as the service reconnects directly, everything is ok. I was told that myopenhab does this for “housekeeping” reasons.

Thanks Stefan - at least i know that the error is not abnormal.

I still can’t get any persistence for temperature sensor though.

Seems this was an issue with using myopenHAB persistence for whatever reason. Changed default persistence to rrd4j and charting works now.