Hi there,
i just noticed that the charts for my three homematic thermostats current temperature stopped working.
The items still work fine and are showing the current temperature.
But the charts are stuck to an old value.
Things:
(No changes made in the last 3 month)
Bridge homematic:bridge:default [ gatewayAddress="127.0.0.1", callbackHost="127.0.0.1", gatewayType="auto", binCallbackPort=9125, xmlCallbackPort=9126 ]
{
Thing GATEWAY-EXTRAS-default GWE00000000 "Homegear Extras"
Thing HG-HM-CC-RT-DN MEQ1557919 "Heizung Schlafzimmer" @ "Schlafzimmer"
Thing HG-HM-CC-RT-DN MEQ0056432 "Heizung Badezimmer" @ "Badezimmer"
Thing HG-HM-CC-RT-DN MEQ0056036 "Heizung Küche" @ "Küche"
}
Items:
(Only added/changed groups)
Number itmHeizung_Schlafzimmer_IST "Temperatur Schlafzimmer [%.1f °C]" <heating> (Schlafzimmer, Temperatur, gPersist) ["CurrentTemperature"] {channel="homematic:HM-CC-RT-DN:default:<SERIALNUMBER>:4#ACTUAL_TEMPERATURE"}
Number itmHeizung_Badezimmer_IST "Temperatur Badezimmer [%.1f °C]" <heating> (Badezimmer, Temperatur, gPersist) ["CurrentTemperature"] {channel="homematic:HM-CC-RT-DN:default:<SERIALNUMBER>:4#ACTUAL_TEMPERATURE"}
Number itmHeizung_Kueche_IST "Temperatur Kueche [%.1f °C]" <heating> (Kueche, Temperatur, gPersist) ["CurrentTemperature"] {channel="homematic:HM-CC-RT-DN:default:<SERIALNUMBER>:4#ACTUAL_TEMPERATURE"}
I had to link the Things/Items manually (on initial setup) through the PaperUI as it seems that the links for homematic objects are not created with the items/channels.
Sitemap:
Frame label="Heizungen"
{
Text item=itmHeizung_Schlafzimmer_IST
{
Chart item=itmHeizung_Schlafzimmer_IST refresh=60000 period=D
}
}
Example:
Working chart for weather items:
Logfile:
2018-12-21 12:36:06.071 [DEBUG] [thome.ui.internal.chart.ChartServlet] - Received incoming chart request: Request(GET //192.168.2.11:8080/chart?items=itmHeizung_Schlafzimmer_IST&period=D&theme=dark&t=1545392166040)@427f56
2018-12-21 12:36:06.077 [DEBUG] [thome.ui.internal.chart.ChartServlet] - No begin or end is specified, use now as end and now-period as begin.
2018-12-21 12:36:06.081 [DEBUG] [thome.ui.internal.chart.ChartServlet] - chart building with width 480 height 240 dpi null
2018-12-21 12:36:06.086 [DEBUG] [ltchartprovider.DefaultChartProvider] - Rendering chart: service: 'null', theme: 'dark', startTime: 'Thu Dec 20 12:36:06 CET 2018', endTime: 'Fri Dec 21 12:36:06 CET 2018', width: '480', height: '240', items: 'itmHeizung_Schlafzimmer_IST', groups: 'null', dpi: 'null', legend: 'null'
2018-12-21 12:36:06.094 [DEBUG] [sql.internal.MysqlPersistenceService] - mySQL query: item is itmHeizung_Schlafzimmer_IST
2018-12-21 12:36:06.100 [DEBUG] [sql.internal.MysqlPersistenceService] - mySQL: query:SELECT Time, Value FROM Item16 WHERE TIME<'2018-12-20 12:36:06' ORDER BY Time DESC LIMIT 0,1
2018-12-21 12:36:06.107 [DEBUG] [sql.internal.MysqlPersistenceService] - mySQL: query returned 1 rows in 6ms
2018-12-21 12:36:06.113 [DEBUG] [sql.internal.MysqlPersistenceService] - mySQL query: item is itmHeizung_Schlafzimmer_IST
2018-12-21 12:36:06.119 [DEBUG] [sql.internal.MysqlPersistenceService] - mySQL: query:SELECT Time, Value FROM Item16 WHERE TIME>'2018-12-20 12:36:06' AND TIME<'2018-12-21 12:36:06' ORDER BY Time ASC
2018-12-21 12:36:06.125 [DEBUG] [sql.internal.MysqlPersistenceService] - mySQL: query returned 0 rows in 6ms
2018-12-21 12:36:06.322 [DEBUG] [thome.ui.internal.chart.ChartServlet] - Chart successfully generated and written to the response.
After checking the mysql server i noticed that openhab stopped writing persistence for these three homematic devices…
The group gPersist exists in one .items file
mysql.persist:
Strategies
{
everyMinute : "0 * * * * ?"
every5Minutes : "0 */5 * * * ?"
everyHour : "0 0 * * * ?"
everyDay : "0 0 0 * * ?"
default = everyChange
}
Items
{
gPersist* : strategy = everyChange, restoreOnStartup
}
- Platform information:
- Hardware: Raspberry Pi 3B
- OS: raspbian 9
- Java Runtime Environment:
- openjdk version “1.8.0_152”
OpenJDK Runtime Environment (Zulu Embedded 8.25.0.76-linux-aarch32hf)
OpenJDK Client VM (Zulu Embedded 8.25.0.76-linux-aarch32hf)
- openjdk version “1.8.0_152”
- openHAB version: 2.3.0-1 (Release Build)
After all this i just removed one )
from the homematic.items file, saved, put it back there and saved again.
This solved the issue and openHAB starts saving the persistence again!
I´m currently out of ideas why openHAB stopped saving persistence for the homematic items.
Is there any way to track if oH really saves all persistence data?
kind regards
Michael