Skip to content

piotrkaminski/PkamSmartHome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Install openHabian with OpenHab

  1. Install latest stable version of openHABian on SD card using instruction https://www.openhab.org/docs/installation/openhabian.html
    1. First boot requires to be connect to internet via cable (preferably) and can take a first long coffee break (~1 hour 15 minutes)
    2. 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.
    3. You can watch progress on http://your-ip/ page.
    4. Initial login and passwords to operating system are openhabian/openhabian
  2. Login to operating system shell as pshactor created above, using sudo openhabian-config set following configuration
    1. Set you host name (menu 30 -> 31)
    2. Disable wifi (menu 30 -> 37)
    3. Install Mosquitto (menu 20 -> 23), use blank password for unencrypted communication
    4. Enable NTP time synchronisation (menu 30 -> Enable NTP)
  3. Open openHAB console on page http://your-ip:8080
    1. create admin account
    2. point location or you home
    3. install following Add-ons:
      1. Astro Binding,
      2. HomeKit Integration,
      3. MQTT Binding,
      4. NTP Binding,
      5. TP-Link Smart Home Binding
  4. Reboot system sudo reboot

Install required dependencies

  1. Install Python Pyho
    pip3 install paho-mqtt
    

PkamSmartHome Actor installation

  1. Download project
    1. Add ssh key to GitHab
    2. Download project from git
    git clone git@github.com:piotrkaminski/PkamSmartHome.git
    
  2. Update OpenHab configuration
    cd ~/PkamSmartHome/openhab
    sudo ./install-config.sh
    
  3. Create log directory
    cd ~/PkamSmartHome/psh-actor
    mkdir logs
    
  4. Install service and set to be automatically started after machine boots
    cd ~/PkamSmartHome/linux-service
    sudo ./install-service.sh
    
  5. Service psh-actor is already started. Status can be checked by
    sudo systemctl status psh-actor
    

Add auto-discovered Things

  1. Login into admin console http://your-ip:8080
  2. Go to Settings -> Inbox
  3. Each auto discovered Thing should be added by
    1. Click on Thing name
    2. Click 'Add as Thing'

Executables Update

PkamSmartHome Actor update

  1. Update code
    cd ~/PkamSmartHome
    git pull
    sudo systemctl restart psh-actor
    

Reset installation (put all points into standard mode)

Reset all points in PkamSmartHome Actor

cd ~/PkamSmartHome/psh-actor
./reset-all-points.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published