If you set up persistence with restoreOnStartup those Item will be initialized to their previous value when OH starts up instead of Undefined which is why that rule is throwing an error.
Not entirely certain as to why you are seeing the error now and didn’t before, but I believe using persistence in this case is the best answer.
See the following for details:
The New Rule Engine is experimental so there could be some other things going on as well. I still think persistence will address your issue.
Hmm I’ve seen a little about persistence and not sure exactly where to start. Is there any type of persistence that is built-in? Without the need to setup a database?
Perfect for now that’s all I need is mapdb. For openhab2 I installed the persistence extension through paperui and also set mapdb is the default persistence in paperui. Is there anything else I need to do or will it handle all the rest it’s self?
Hey how did you get your Plex entered in on OH2? I have been racking my brain on how to do that. I am not running on a PI but a stand alone server. Any help would be great.
That should not be part of your mapdb.persist file. Maybe it is causing problems because it cannot be parsed correctly.
If you want to define a default persistence service edit runtime.cfg to org.eclipse.smarthome.persistence:default=mapdb or set that via PaperUI oder HABmin.
Some simple rules worked well for me until I updated my Raspberry/openhab2 last week via sudo apt-get update and upgrade. I lost my habpanel settings and rules in Paper UI are not working anymore. Any idea what went wrong?
So you should check if:
Your bindings are still installed
Your things are still there (because of change of mapdb to jsondb)
and a lot of more things.
What are the error outputs of your openhab.log?
Did you already switch to debug mode? If yes, what are the outputs of your openhab.log?
I seem to have solved it. The rules were gone. When I added them again, I named them e.g. “Lights on”. Seems rule names don’t allow spaces. “Lights_on” works.
After the update I also needed to add the z-wave binding again. The serial port for the USB-stick was gone. For several things, the item links were gone.
However, the different “Panel configurations” (not local storage) in habpanel are gone. I wonder were they are saved and if they could be loaded again. But maybe they were just overwritten/deleted through the update.