Every time we update to the latest Snapshot, all those configuraciones that have been done on UI and not saved on config/services/ under a *.cfg file are lost, so we need to set them again.
So far I solved it for: addons.cfg, homekit.cfg, runtime.cfg, weather.cfg etc… as there are some documentation from Openhab1
But with new addons in OH2 there is still some lack of documentation, that is why I need some help on how to configure:
persistance.cfg to set the default persistance
locale.cfg to set the default country and lenguage
audio.cfg (I guess is the file name) to set the default sink and source
voice.cfg (I guess is the file name) to set also its options
In general, take a look at the directory: /usr/share/openhab2/runtime/karaf/etc
From there, you can see the parameter and use this info to set something in /etc/openhab2/services/runtime.cfg so that it remains set after an OH2 upgrade.
For example:
The file /usr/share/openhab2/runtime/karaf/etc/org.eclipse.smarthome.audio.cfg has 1 parameter: defaultSink = enhancedjavasound
You could set within /etc/openhab2/services/runtime.cfg the following: org.eclipse.smarthome.audio:defaultSink=enhancedjavasound
and this would remain after an upgrade (in theory… I haven’t tested it :))