Raspberry Pi Smart Home Automation with Home Assistant
In the last article we know about OpenHAB Raspberry Pi Open Source smart home. In this blog we will know about Home Assistant Open Source smart home.
What is Home Assistant?
Home Assistant is Open Source Software for smart home or home automation systems.
Home Assistant is an open-source home automation platform running on Python 3.
Track and control all devices at home and automate control.
Home Assistant can install on many platforms such as Windows, Linux ,Mac OSX and embedded platforms such as Raspberry Pi , BeagleBone Black , UDOO , Cubietruck so you can install in to Raspberry Pi. ( Raspberry pi is popular and low cost then we us Raspberry pi3 board)
Current Version: 0.33.4
Released: November 23, 2016
System Diagram
Hardware
You will need :
Raspberry Pi3 Board
SD card (8GB or more) we use 16 GB
Power supply
Ethernet or WiFi Connection
Software
Raspberry Pi OS
Raspbian Jessie – at the time of writing I have used version Sep 2016 which can be download from here – Raspbian Jessie
RASPBIAN JESSIE WITH PIXEL
Image with PIXEL desktop based on Debian Jessie
Version:September 2016
Release date:2016-09-23
Kernel version:4.4
Raspberry Pi Tools
For Windows User
PuTTY is SSH tools for Remote Command line. Download moreinfo
WinSCP for remote edit and transfer files. Download moreinfo
for Linux or MAC os
use terminal for remote command line. ( without installing additional software )
fugu ssh or Filezilla
How to Install Home Assistant on Raspberry Pi
There’s three options to install Home Assistant on a Raspberry Pi.
Manual installation.
Following this guide doing each step manually. This is highly recommended as a first installation since you get a good overview of the installation.
Hassbian image.
Basic installation with the same settings as following the manual installation guide. Some additional software is preinstalled to make installation quicker and easier. Installation uses homeassistant user.
All-in-One Installer.
Fabric based installation script that installs and compiles many of the things an advanced Home Assistant install is likely to need. Installation uses hass user.
We use All-In-One Installer method to install.
Because there is including support for MQTT with websockets, Z-Wave, and the Open-Zwave Control Panel.
The only requirement is that you have a Raspberry Pi with a fresh installation of Raspbian Jessie connected to your network.
OpenHAB is Open Source Software for smart home or home automation systems. Now Version is openHAB 2. ( Oct 2016 )
OpenHAB 2 is based on the Eclipse SmartHome framework and is fully written in Java.
OpenHAB can install on many platforms such as Windows, Linux ,Mac OSX and embedded platforms such as Raspberry Pi , BeagleBone Black , UDOO , Cubietruck so you can install in to Raspberry Pi. ( Raspberry pi is popular and low cost )
System Diagram
Hardware
You will need:
Raspberry Pi Board
SD card (8GB or more)
Power supply
Ethernet or WiFi Connection
Software
Raspberry Pi OS
Raspbian Jessie
– at the time of writing I have
used version Sep 2016 which can be download from here –Raspbian Jessie
RASPBIAN
JESSIE WITH PIXEL Image with PIXEL desktop based on Debian
Jessie Version:September 2016 Release date:2016-09-23 Kernel version:4.4
Raspberry Pi Tools
for Windows User PuTTY is SSH toolsfor Remote Command line. Downloadmoreinfo WinSCP for remote edit and transfer files. Downloadmoreinfo
for Linux or MAC os
use terminal for remote command line. ( without installing additional software ) fugu ssh or Filezilla
How to Install OpenHAB2
1.Update your Raspberry Pi first
sudo apt-get update sudo apt-get upgrade
2.Install MQTT ( mosquitto ) on Raspberry Pi
First get
the repository package signing key, import it into apt, and remove the key file
after adding,
Mosquitto is an open source (EPL/EDL licensed) message broker that implements the MQTT protocol versions 3.1 and 3.1.1. MQTT.
Broker , Publisher , Subscriber
How to Install?
Update your Raspberry pi First.
sudo apt-get update sudo apt-get upgrade
Install mosquitto developer api library
sudo apt-get install libmosquitto-dev
Install mosquitto
sudo apt-get install mosquitto mosquitto-clients
How to Test?
After installation Mosquitto will be automatically started. To test, install theMQTT.FXsoftware. ( Download ) After
installation issue following command into terminal window where we left after
mosquitto installation
mosquitto_sub -d -t hello/world
Now openMQTT.FXand click on setting. Then enter IP address of
your Pi and port address 1883 (by default) ( see pics below ). Click apply and connect
Connect Mosquitto Broker at Raspberry Pi IP Address