kotio-home-automation.github.io

Raspberry Pi installation instructions

TODO

Prequisites

Raspberry Pi

Raspbian installation

Official installation instructions.

TL;DR;

Raspbian configuration before first boot

Mount the SD card e.g. if you have automount take it off from your computer and put it back

Enable SSH

Add empty file named ssh to boot partition of SD card e.g. touch /media/user/boot/ssh

Enable Wi-Fi

Add file named wpa_supplicant.conf to boot partition of SD card with configuration like this.

country=fi
update_config=1
ctrl_interface=/var/run/wpa_supplicant

network={
 scan_ssid=1
 ssid="MySSID"
 psk="Security"
}

First boot

Tellstick Duo

Official instructions at Telldus wiki.

Install telldus libraries

Install Node.js

Node.js 8 is required for ruuvitag-server to work but if you decide to use the newer Python based ruuvitag-api latest LTS Node.js is recommended

Go to URL Node.js 8 download page and download the appropriate binaries for your system

Unpack and copy the unpacked node distribution folder to /usr/local so that it’s executable.

  tar xf the-downloaded-node.xz
  cd the-downloaded-node
  sudo cp -r bin/ include/ lib/ share/ /usr/local/

Extra: Install PM2 for managing processes

A great tool for managing your Node.js or Python processes is PM2, more information from PM2 documentation.

Install the tool via NPM npm install pm2 -g

tellstick-api

A newer implementation of tellstick REST server built with python 3.5

tellstick-server

Ruuvitag

ruuvitag-api

A newer implementation of ruuvitag REST server built with python 3.5

ruuvitag-server

The original implementation of ruuvitag REST server built with Node.js (does not work on newer Node.js than version 8)

Web UI

Simple web UI for viewing sensor data and controlling tellstick.

Extra: Install nginx to serve web UI

Data-collector

Extra: Install InfluxDB

Follow installation instructions on InfluxDB documentation

Make sure to setup authentication and add admin user & database and user for data-collector usage.

Extra: Install Grafana

Get latest grafana from Grafana download page and follow the instructions.

Tapo camera API

HTTP API for Tapo Cameras. Implemented and tested with Python 3.9.

Shelly API

HTTP API for Shelly sensors. Implemented and tested with Python 3.9.