วันพฤหัสบดีที่ 3 พฤศจิกายน พ.ศ. 2559

Raspberry Pi Smart Home with OpenHAB2


Raspberry Pi Smart Home with OpenHAB2

What is OpenHAB?

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 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 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,
sudo wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key
sudo apt-key add mosquitto-repo.gpg.key
sudo rm mosquitto-repo.gpg.key



Then make the mosquitto repository available to apt:
cd /etc/apt/sources.list.d/
sudo wget http://repo.mosquitto.org/debian/mosquitto-jessie.list

sudo apt-get update





Now we can install the core packages (server & clients):

sudo apt-get install mosquitto mosquitto-clients



3.Package Repository Installation


Now is Beta Release
Add the openHAB 2 Beta repository to your systems apt sources list (will overwrite your existing openhab2.list):
echo 'deb http://dl.bintray.com/openhab/apt-repo2 testing main' | sudo tee /etc/apt/sources.list.d/openhab2.list

Additionally, you need to add the openHAB 2 Bintray repository key to your package manager:
wget -qO - 'https://bintray.com/user/downloadSubjectPublicKey?username=openhab' | sudo apt-key add -

sudo apt-get update


4.Install add-ons

The offline distribution is full blown and comes with all add-ons


sudo apt-get install openhab2-offline



158 MB. take a time. Relax !


It take 1h 5min 2s ( Thailand only )



5.Start System Service

Start openHAB and register it to be automatically executed at system startup.

sudo systemctl start openhab2.service
sudo systemctl status openhab2.service

sudo systemctl daemon-reload
sudo systemctl enable openhab2.service




Open Web browser goto http://your raspberry pi ip address:8080



Now Install already. 
Then your must config some file for set your smart home automation system.


see next article... How to config file.



Reference

My Website
email : info@softpowergroup.net   Tel .081-6452400


My Blog about Android and Arduino

6 ความคิดเห็น:

  1. ไม่ระบุชื่อ7 พฤษภาคม 2561 เวลา 02:05

    Thanks for the marvelous posting! I truly enjoyed reading it, you can be a great author.I will be sure to bookmark your blog and will eventually come back at some point. I want to encourage you to continue your great writing, have a nice day!
    I absolutely love your blog and find many of your post's to be exactly I'm looking for. Do you offer guest writers to write content for yourself? I wouldn't mind composing a post or elaborating on a lot of the subjects you write with regards to here. Again, awesome blog! real estate social media

    ตอบลบ
  2. see next article... How to config file. ---So may i know where is next article?

    ตอบลบ
  3. Fantastic and useful we blog thanks for publishing this.it's useful and informative.keep up the great.
    Wireless Switches

    ตอบลบ
  4. Okas integrates lighting, music, video, climate control, security, and more into one simple system—a system you can access and control from anywhere in the world. You determine when, where and how things happen. You decide what actions and events take place. Because only you know what is best for your lifestyle.​

    ตอบลบ
  5. Thanks for sharing, nice post! Post really provice useful information!

    Giaonhan247 chuyên dịch vụ mua hàng mỹ từ dịch vụ order hàng mỹ hay nhận mua nước hoa pháp từ website nổi tiếng hàng đầu nước Mỹ mua hàng ebay ship về VN uy tín, giá rẻ.

    ตอบลบ