Exploring Item Value Restoration in OpenHAB

Hi everyone, I’m currently exploring how OpenHAB handles item value restoration after a restart. I’ve noticed that certain items retain their values, but others don’t. For instance, a Number item tracking yearly energy consumption automatically restores its value, while a DateTime item tracking the last rule execution time resets to null. This has led me to wonder about the specific criteria for item value restoration in OpenHAB.

I’ve checked the documentation, but it’s unclear which item types are preserved. This knowledge is crucial for ensuring consistent system behavior, especially for items requiring persistent data. Has anyone encountered similar behavior or found a comprehensive guide on this topic?

Additionally, if anyone has insights into customizing restoration behavior or ensuring all critical items retain their values post-restart, I’d greatly appreciate the input. Let’s collaborate to better understand and optimize OpenHAB’s item management capabilities. Thanks in advance for your thoughts and experiences!