Running OH4.3.3-release on a Pi4(4GB) with openHABian.
So, I’m maximal confused. Some of my rules rely on “lastupdate” in persistence. And for that I’m using mostly ‘jdbc’, because sometimes it’s about “now” and rrd4j was too slow for that.
Use case with hourly updated item (dynamic pricing with Tibber):
- I want to see the last update for a item. But, now I’m maximal confused, or it’s simply, the Tibber “forecast”-item doesn’t get “updated” for 24h?
- (I could compare the current price with the price last hour, but that isn’t reliable, sometimes prices stay the same for consecutive hours.)
So I tested three items:
- TIB_Current_StartsAt => an item, which should be updated via Tibber-Binding on the hour.
- EMS_VarTibberLow => an item, which has no link to a thing, which I updated months ago
- WS_TempOutside => an item, which is updated via MQTT randomly
console.info("DEBUG: lastUpdate jdbc TIB_Current_StartsAt: " + items.getItem("TIB_Current_StartsAt").persistence.lastUpdate('jdbc'));
console.info("DEBUG: lastUpdate jdbc EMS_VarTibberLow: " + items.getItem("EMS_VarTibberLow").persistence.lastUpdate('jdbc'));
console.info("DEBUG: lastUpdate jdbc WS_TempOutside: " + items.getItem("WS_TempOutside").persistence.lastUpdate('jdbc'));
console.info("DEBUG: lastChange jdbc TIB_Current_StartsAt: " + items.getItem("TIB_Current_StartsAt").persistence.lastChange('jdbc'));
console.info("DEBUG: lastChange jdbc EMS_VarTibberLow: " + items.getItem("EMS_VarTibberLow").persistence.lastChange('jdbc'));
console.info("DEBUG: lastChange jdbc WS_TempOutside: " + items.getItem("WS_TempOutside").persistence.lastChange('jdbc'));
Output:
2025-03-29 20:43:07.214 [INFO ] [b.automation.script.ui.TestFuerAlles] - DEBUG: lastUpdate jdbc TIB_Current_StartsAt: 2025-03-29T19:53:51.494+01:00[Europe/Berlin]
2025-03-29 20:43:07.227 [INFO ] [b.automation.script.ui.TestFuerAlles] - DEBUG: lastUpdate jdbc EMS_VarTibberLow: 2024-09-14T10:20:39.189+02:00[Europe/Berlin]
2025-03-29 20:43:07.241 [INFO ] [b.automation.script.ui.TestFuerAlles] - DEBUG: lastUpdate jdbc WS_TempOutside: 2025-03-29T20:17:24.254+01:00[Europe/Berlin]
2025-03-29 20:43:07.313 [INFO ] [b.automation.script.ui.TestFuerAlles] - DEBUG: lastChange jdbc TIB_Current_StartsAt: 2025-03-29T19:53:51.494+01:00[Europe/Berlin]
2025-03-29 20:43:07.548 [INFO ] [b.automation.script.ui.TestFuerAlles] - DEBUG: lastChange jdbc EMS_VarTibberLow: 2024-09-14T10:20:39.189+02:00[Europe/Berlin]d
2025-03-29 20:43:07.575 [INFO ] [b.automation.script.ui.TestFuerAlles] - DEBUG: lastChange jdbc WS_TempOutside: 2025-03-29T20:17:24.254+01:00[Europe/Berlin]
It seems, both “normal” items get their updates and changes as they should, but a forecast item doesn’t get both updated and changed - except the forecast intervall changes? (I restarted Tibber at 19:53, because the Binding didn’t update (again: Tibber price- and live-updates stopped sometime a month ago)
So, is there a way to tell, the tibber binding is running as it should?