Hm okay, but I want that (changing) value to persist during restarts of OpenHAB and thought about using the persistence addons.
Maybe I'm on the wrong way. What I like to to do is:
I've a thing, a power pulsemeter, that counts pulses from an energy meter. The thing knows how to calculate these pulses into the amount of energy used. While running, the thing reports the amount of energy used and the pulse count since installation. The thing itself is not able to remember the amount of energy used or the pulsecount, so after a restart of the thing, it knows nothing. When the thing gets restartet it asks the Controller/OpenHAB to deliver the last known pulsecount and starts working based on that information.
So I'm able to store the pulsecount in OpenHAB (updateState), but I can't read it? If I cache the value in the binding, the value don't persist during a restart of OpenHAB.
Do you have a suggestion how to solve that?
Greetings,
Tim