Persistent data in a openhab 2.0 binding

Morning,

How do I save persistent data in a binding? Should I be using config to persist the data? SOmething else? The config changes don’t seem to end up in the jsdb file when I make the changes…

Thanks,
David.

Look at the zwave binding which saves persistent data. I’m sure there is a place bindings can save things in the config DB. They can also create a folder under userdata and save files there (e.g. zwave creates a zwave folder and stores the node.xml files there).

I can’t tell you specifics, just that it is possible and the zwave binding does it.

Ok, found it. Thanks!