- Platform information:
- Hardware: Raspberry Pi 3
- OS: Rasbian
- openHAB version: 2.4.0, installed via packages
I have a relatively small OpenHAB setup, with about 25 Things - mostly Philips Hue sensors and bulbs, but a couple of Sonos speakers and other individual things, plus a Z-Stick with a motion sensor. I’ve configured all of this through PaperUI.
Lately I’ve been increasingly concerned about the lack of version control afforded to me by that approach - I’ve had a few occasions where I’ve changed something and wished I could easily ‘undo’ to a previous state. Similarly, I worry about the lack of backup should something catastrophic happen.
Less significant, but still motivation for making the change is that I’d like to be able to organise the files ‘my way’ (probably mostly naming conventions, but perhaps folder structures or similar if that’s possible) rather than relying on how the UI presents them. I’ve also wasted time on a few occasions trying to change some parameter only to find that it’s failing because of some bug in the UI, or that I can’t change it in Paper UI and have to switch to Habmin instead (or vice-versa).
I’m aware that everything (?) can be configured through text files, and as a software developer I think that would make me feel a lot more comfortable.
Does anyone have any advice on the best approach to make that change? Specific questions:
- Will I have all the same functionality through text files? I’ve seen a few posts here regarding text-based config for Z-Wave devices, suggesting that it’s non-trivial. As I currently only have the one Z-Wave device, I would be happy to leave its config through the UI if that’s the better choice.
- I’m assuming that I can do it gradually, moving things and items from the UI config to text files one at a time. Is that right? Any recommended approaches to making the transition smooth?
- Any recommendations on file structure / naming conventions / etc? I’d like to use Git to version everything - should I have a separate git repository on the file system of my RPi and symlink to there from the OpenHAB directories?
- What haven’t I thought of?