This setup uses Ansible to automate provisioning of a linux machine containing a setup for OpenHAB2
- Install ansible:
*
sudo apt-get install -y ansible
- Clone this repo from the command line (in a directory of your choice):
git clone https://github.com/steintore/my-openhab2-config.git
cd my-openhab2-config
into your cloned repo.- From the command line run:
To install everything:
ansible-playbook playbook.yml -i hosts --ask-vault-pass --ask-sudo-pass
. To update the OpenHAB2 configurations:ansible-playbook updateOpenhab.yml -i hosts --ask-vault-pass --ask-sudo-pass
Note! The repository contains file(s) encrypted using ansible-vault
- in such files there are secrets - like binding keys etc. Without the passphrase to the encrypted files you cannot start the system - in other words you need to replace the files with your own encrypted files with your secrets - or remove the functionality.
After you are up and running, open a browser and point it to openHAB2 http://localhost:8080.
Run the ansible command again. It will download some things all over again. I'm currently using my own github repo for the configurations as well, so i can git pull
in the configurations folder.
- Connect to mqtt to listen to all messages.
mosquitto_sub -p 1883 -v -t '#' -u <username> -P <password>
- Mqtt for the z-wave server: https://github.com/hackercowboy/zway-mqtt