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.
The file has to be named myopenhab.persist, not myopenhab.persist ence
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.
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:
home.items
Group temperature "Temperature" <temperature>
Number Temp_Garagedoor "Garage Temperature: [%.1f °C]" <temperature> (sensor, temperature) { zwave="6:2:command=sensor_multilevel,sensor_type=1" }
myopenhab.persist
temperature* : strategy = everyMinute
home.sitemap
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.