I set MapDB to be a preferred persistence
then In the openHAB-conf \ persistence folder
then I created a file named mapdb.persist
then I entered this entry:
Items {
: strategy = everyChange, restoreOnStartup
}
then I rebooted the system for testing but still shows it to me:
note, the rest of the items are OK and this only happens in mqtt items.
Thanks in advance
Okay, I thought MQTT odd behaviour has been fixed sometime in 2.5. But the best check is finding out what state your Items are actually in. And what is stored in your mapdb. REST API is a useful tool for that sort of thing.
To explain -if your Items are NULL state, restore did not work. If they are UNDEF state, the binding did that. Then we know where to look next.
thanks for your reply
i check, after reboot of openhab the items back to NULL state.
REST API is very complicated for me and I could not figure it out from the moment I installed openhab.
If you install the misleadingly named “REST API Docs”, it gives you an interactive tool. A list of API commands you can complete a form, poke “try it out”, and see the response.
Okay, let’s see if there is any persisted data.
Use REST API to enquire about persistence for one of your Items and “mapdb”.
The reason for exploring is that openhabian installation have been known to restore the wrong thing, and I’m trying to find out if that is happening to you. It’s about zram.
Or depending what else appears to get restored, you might take a close look and see if it ever restores anything different to the last time.