- Install latest stable version of openHABian on SD card using instruction https://www.openhab.org/docs/installation/openhabian.html
- First boot requires to be connect to internet via cable (preferably) and can take a first long coffee break (~1 hour 15 minutes)
- If there will be keyboard and display attached, you will be asked for user name to create account - please use
pshactor
This account will be used for PkamSmartHome actor service. This user also is sudoer, used for operation system configuration. - You can watch progress on http://your-ip/ page.
- Initial login and passwords to operating system are openhabian/openhabian
- Login to operating system shell as
pshactor
created above, usingsudo openhabian-config
set following configuration- Set you host name (menu 30 -> 31)
- Disable wifi (menu 30 -> 37)
- Install Mosquitto (menu 20 -> 23), use blank password for unencrypted communication
- Enable NTP time synchronisation (menu 30 -> Enable NTP)
- Open openHAB console on page http://your-ip:8080
- create admin account
- point location or you home
- install following Add-ons:
- Astro Binding,
- HomeKit Integration,
- MQTT Binding,
- NTP Binding,
- TP-Link Smart Home Binding
- Reboot system
sudo reboot
- Install Python Pyho
pip3 install paho-mqtt
- Download project
- Add ssh key to GitHab
- Download project from git
git clone git@github.com:piotrkaminski/PkamSmartHome.git
- Update OpenHab configuration
cd ~/PkamSmartHome/openhab sudo ./install-config.sh
- Create log directory
cd ~/PkamSmartHome/psh-actor mkdir logs
- Install service and set to be automatically started after machine boots
cd ~/PkamSmartHome/linux-service sudo ./install-service.sh
- Service psh-actor is already started. Status can be checked by
sudo systemctl status psh-actor
- Login into admin console http://your-ip:8080
- Go to Settings -> Inbox
- Each auto discovered Thing should be added by
- Click on Thing name
- Click 'Add as Thing'
- Update code
cd ~/PkamSmartHome git pull sudo systemctl restart psh-actor
cd ~/PkamSmartHome/psh-actor
./reset-all-points.sh