the openhab platform - lig membreslig-membres.imag.fr/donsez/cours/openhab.pdf · the openhab...
TRANSCRIPT
24/02/14 D. Donsez, OpenHAB, 2013-2014 1
The OpenHAB platform
Didier DonsezUniversité de Grenoble
LIG / [email protected]
From Processing.org
24/02/14 D. Donsez, OpenHAB, 2013-2014 2
OpenHABhttps://code.google.com/p/openhab
● open Home Automation Bus (openHAB)● Universal integration platform
for home automation things● Based on OSGi Java (Equinox OSGi)● Event bus (OSGi Event Admin)● DSL for ECA Rules and HCI
– Using Eclispe Xtext and Xtend● Bindings with many SOHO protocols (enOcean, ZigBee, Hue ...)
● Now part of Eclipse Smart Home project– EPL licence
24/02/14 D. Donsez, OpenHAB, 2013-2014 3
OpenHAB Demohttp://demo.openhab.org:8080/greent
24/02/14 D. Donsez, OpenHAB, 2013-2014 5
OpenHAB Event Bus
OSGiEvent Admin
Bindingsare delivered
as OSGibundles
24/02/14 D. Donsez, OpenHAB, 2013-2014 7
Model : Items and Groups
● Items
– Are SOHO-specific sensors & actuators● Switch, Dimmer, RollerShutter, Color, Contact, Number, Text
– Sensors emit « state » events– Actuators receive « command » events– Bound to protocols (enOcean, Serial, Hue, ModBus, MQTT ...)
● Groups
– of Items– of Group– Logical, Physical, Device … classes and sub-classes– can be active (command and state)
24/02/14 D. Donsez, OpenHAB, 2013-2014 12
Bindings
● Devices– Serial, enOcean, KNX, ...
● Communication protocols– HTTP, MQTT
● Utilities– NTP …
● Custom– CSVReplay
24/02/14 D. Donsez, OpenHAB, 2013-2014 13
Misc with OpenHAB
● MQTT (Binding)● Mosquitto, ● Node-RED
– MongoDB, Redis.io● MQTT Panel
24/02/14 D. Donsez, OpenHAB, 2013-2014 14
Demo Smart Doll HouseOpenHAB + Arduino + MQTT
http://air.imag.fr/index.php/SDH
http://localhost:8080/openhab.app?sitemap=demohttp://localhost:8080/greent/?sitemap=demo
24/02/14 D. Donsez, OpenHAB, 2013-2014 15
Demo Smart Doll House
MosquittoServer
Python-based
MosquittoServer
Python-based
MQTT WebReport
Node.js(Node RED)
OpenHABBob's home
MoquetteServer
Java--Based MQTT Server
MoquetteServer
Java--Based MQTT Server
OpenHABAlice's home
OpenHABDidier's home
OpenHABThomas's home
TemperatureEnergy Consumption
hearbeat...
Rule to generate/collect valuesfor
temperature,energy comsumption, …
MQTT ConnectionPort 1883
MQTTStorageNode.js
(Node RED)
MongoDB
MQTT ConnectionPort 1883
24/02/14 D. Donsez, OpenHAB, 2013-2014 16
Node REDMashup for IoT stream processing
http://localhost:1880