Hi, this is Frank. I am more or less new with Openhab2.
Currently i am also running Fibaro HomeCenter 2 but i am missing flexibility there. I am still using OH2 now since 2 month and i have successfull transfer a lot of zwave devices from Fibaro into the OH2 system.
My System are Installed into a virtual VM with lubuntu on my DS718+ Device. System looks like stable.
Now i stuck with my item states. If i starting PaperUI or BasicUI i should found often my devices with NULL value. If i stay there for a while, some devices change there status from NULL into the right state, i.e. Switch, Temperature, Humidity… . I do not understand the reason because the items states are NULL. I should have persistance with mariaDB active and running. I should found the right values in my persistance DB as well, but the restore of item states are only after a system reboot or? Please tell me if I made an error in reasoning.
Do you configure your items in a items file or via paperUI?
If you do it in a text file, like I do, if you reload the item file by chaning one item all items will set to NULL and then back to the vaule before. But this does not work on every time. Sometimes the values which are set by a binding stay at NULL until the binding updates them.
I use a rule to reset the value from MAPDB. Only way I found.
Item SW_PresistenceWiederherstellen changed to ON
gRestoreState.members.forEach[ item |
logInfo("Logger","Itemname laden: "+item.name)
logInfo("Logger","Itemname laden: "+item.state.toString)
I use exactly what you have written here. The problem we are talking about is not restart of OH, just reload of item file. Sometimes the reload of item file causes all items in the file to set to NULL and back to value due to persistance. But sometimes not. Then they hang on NULL until z-wave update.
How can this be checked? I can only see, that mostly the values of reloaded items come back, but sometimes not.
Another hint can be, that some items are in a different file which is not reloaded. But the reload of a item file causes all items n al litems files to set to NULL. One of my next thing is to consolidate all items to one item file. May be this will help.