PreviousState - No Persistence Service

I wanted to use the previousState method to get of course the previous state :wink:
But I get the error โ€œThere is no persistence service configured!โ€.

Sadly the docs about peristence (https://www.openhab.org/docs/tutorial/persistence.html) are empty :frowning:
So what exaclty are the persistence services?
There a lot of different types of persistence services to install.

And do I need a persistence service if I want to retrieve the old value of an item?

See https://www.openhab.org/docs/configuration/persistence.html

Yes, you need a persistence service to get old values. Mapdb is fine for just the last value. Others are needed if you want something more sophisticated.

1 Like