This shows you the differences between two versions of the page.
— | project:ccu-homeassistant [2020/05/03 19:13] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Docker based Home Assistant and CCU on Raspbian ===== | ||
+ | | ||
+ | // | ||
+ | |||
+ | While setting up my smarthome solution the intention was to run all components on a single Raspberry Pi 3B+. Various componente had to be integrated: | ||
+ | |||
+ | === Hardware === | ||
+ | |||
+ | * Raspberry PI 3B+ | ||
+ | * ELV " | ||
+ | * External antenna | ||
+ | * SML Smart Meter adapter | ||
+ | * Various (wireless) Homematic IP sensors and actors | ||
+ | |||
+ | === Software === | ||
+ | |||
+ | * Home Assistant Supervised | ||
+ | * Homematic CCU3 | ||
+ | |||
+ | To get a flexible and modularized system I decided to have all components in docker containers. Therefore solutions like Raspberymatic are no option since they use a different container/ | ||
+ | |||
+ | The following script describes how to setup the environment. | ||
+ | |||
+ | ==== Prepare ==== | ||
+ | |||
+ | * Flash Debian Buster Lite to SDcard | ||
+ | * Enable " | ||
+ | * Boot Raspi and SSH to the system | ||
+ | * Start raspi-config and set timezone and WiFi zone | ||
+ | |||
+ | Initial system update | ||
+ | |||
+ | apt update | ||
+ | apt upgrade | ||
+ | |||
+ | Adjust hostname in the following files: | ||
+ | |||
+ | /etc/hosts | ||
+ | / | ||
+ | |||
+ | reboot | ||
+ | | ||
+ | ==== Install Home Assistant ==== | ||
+ | |||
+ | These steps are taken from the official Home Assistant documentation: | ||
+ | |||
+ | apt-get install -y software-properties-common apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat | ||
+ | systemctl disable ModemManager | ||
+ | systemctl stop ModemManager | ||
+ | |||
+ | curl -fsSL https:// | ||
+ | curl -sL " | ||
+ | |||
+ | Wait for 10-20 minutes ... | ||
+ | |||
+ | Tip: The deploy.sh script will try to install the pivccu packages for you. If it does not work please follow the instructions to install pivccu-modules-dkms, | ||
+ | |||
+ | ==== Install CCU ==== | ||
+ | |||
+ | Furtunately there is a docker image for CCU available: | ||
+ | |||
+ | cd ~ | ||
+ | apt-get install git | ||
+ | git clone https:// | ||
+ | cd docker-ccu | ||
+ | |||
+ | ./deploy.sh | ||
+ | |||
+ | ==== Verify ==== | ||
+ | |||
+ | Check if all containers are up and running: | ||
+ | |||
+ | root@charly:/ | ||
+ | CONTAINER ID IMAGE COMMAND | ||
+ | PORTS NAMES | ||
+ | a143659d70f3 | ||
+ | e8dadfe4acb6 | ||
+ | 90bec76d90c5 | ||
+ | 35c1a817bbe8 | ||
+ | b5aad12045c6 | ||
+ | 8b5de93f7ca1 | ||
+ | 43504a759b8b | ||
+ | 158c6d910913 | ||
+ | b1a44d2dc5c6 | ||
+ | |||
+ | Connect to the systems: | ||
+ | |||
+ | * CCU: [[http:// | ||
+ | * Home Assistant: [[http:// | ||