Hi there,
I started several approaches to think about how to migrate from my files based configuration to a UI based configuration without having so set up all from scratch.
While thinking (and reading :o) about this, I reagularily was wondering about one central point:
Why is this so much different?
When I was starting with OpenHAB I needed some time to understand why I was not able to do the config vice versa. Then i understood, there are two different persistence points:
- filesystem and
- database
Still I do not understand why this is needed (anymore).
While I do understand, that, if I start to change something in the UI this is not changing my files (because this would be a nonsense requirement with too much effort.)
So I thought, it might could make sense to just start the question, why my text-files could not create/update the things (and items and rules) in db, as if I had done this in the UI, without any difference, so I would have the possibility to change them in the UI from now on as well, but if I do this will have no effect to my source file, which will remain untouched.
And if i decide to change the files again, this will update the target db object again with all consequenses: I might loose changes made to them via UI.
So, yes, i would need to be careful, but could have best of both worlds.
Maybe, your answers now will show me, what I am still missing in the details about the core of the different approaches.
At least, I can learn another detail or two. Or, alternatively, there might be a chance … a way to change the future behavior of this. That would make me happy as well.