- 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)
- You can watch progress on http://your-ip:81/ page.
- Initial login and passwords to operating system are
openhabian/openhabian
- Login to operating system shell as
openhabian
. Executesudo openhabian-config
to set following configuration:- Set you host name (menu 30 -> 31)
- Install Mosquitto (menu 20 -> 23), use blank password for unencrypted communication despite of insisting for prividing password.
- Change password for
openhubian
- Type in terminal
passwd
. provide current passwordopenhabian
and change to different one.
- Type in terminal
- Open openHAB console on page http://your-ip:8080
- Create admin account
- Begin setup
- Point location or you home
- Skip proposed storage Add-ons
- Skip install discovered Add-ons, it is safer to install them manually in later phase, one by one.
- Install following Add-ons
- Astro Binding
- MQTT Binding
- NTP Binding
- HomeKit Integration
- TP-Link Smart Home Binding
- Back to terminal and create
pshactor
user. This account will be used for PkamSmartHome actor service.- Execute
sudo adduser pshactor
- Provide additional details if would like to.
- Execute
sudo usermod -aG sudo pshactor
- Exectue
sudo usermod -a -G gpio pshactor
- Exectue
sudo chown root.gpio /dev/mem && sudo chmod g+rw /dev/mem
- Execute
- Reboot system
sudo reboot
- Login to terminal as
pshactor
- Download project
- Add ssh key to GitHab
- Download project from git
git clone git@github.com:piotrkaminski/PkamSmartHome.git
- Initialize PSH Actor environment
cd ~/PkamSmartHome/psh-actor ./install-environment.sh
- Update OpenHab configuration
cd ~/PkamSmartHome/openhab sudo ./install-config.sh
- 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 -> Things -> Inbox
- Each auto discovered Thing should be added by
- Click on Thing name
- Click 'Add as Thing'
This step is needed when configuration of system is updated via GitHub. Initial installation does not require this step.
- Update code
cd ~/PkamSmartHome git pull sudo systemctl restart psh-actor
This step puts all points into standard (initial) mode. Initial installation does not require this step.
cd ~/PkamSmartHome/psh-actor
./reset-all-points.sh