In the field of the internet of things smart home is an area, which will change our day-to-day life most intensive. The vision of an overall and adaptive Smart Home is still some years away, but there are individual solutions, for example the thermostat from NEST, which delivers great value to his users already. The same is true for approaches, which make the life of residents safer and handle emergency situations. In this talk we want to demonstrate on a concrete showcase how an intelligent smoke detector could look like and that the implementation is possible with state-of-the-art technologies. When having the infrastructure it is also easy possible to integrate other devices, for example intrusion detection systems.
On a technical perspective we are using OpenHAB as communication hub inside the house. It uses the Homematic protocol to communicate with the smoke detectors and intrusion sensors. Outbound we are leveraging the HiveMQ MQTT broker in order to connect a mobile app, a SMS-plugin and a web app. Apart from the obvious alarm functionality, we also implemented additional features which have a benefit for the user, for example a status display and a test alarm for checking the functionality. In the talk we will explain the whole system, beginning with the benefits for the user and ending with an in-depth look at the technical implementation and of course we will demonstrate the system in action.
2. Support their clients to
successfully transform their
business in a digitized and
connected world
expertise in MQTT
the protocol that drives
the internet of things
Consulting for
insurance companies
and other industries
Consulting and Creating
of Building Block for the
Internet of Things
About us
3. SMART HOME LIVE
î"
MOTIVATION
1
â˘âŻ Showcase objectives
â˘âŻ Fire dangers
î"
OVERVIEW
2
â˘âŻ 1st live demo -
maintenance features
â˘âŻ Basic architecture
î "
SETUP
3
â˘âŻ Architectural details
â˘âŻ 2nd live demo â break-in
detection
î"
CONCLUSION
4
â˘âŻ Lessons learned
â˘âŻ Outlook
4. î Evaluate available technologies like MQTT, Eclipse SmartHome
îŚ We are not building a product!
î´ Iterate and explore key features for an intelligent smart home
Showcase objectives
10. SMOKE DETECTORS are mandatory
In Germany2018
In France2015
In USA2010
h#p://www.fusac.fr/countdown3smoke3detectors/!h#p://www.rauchmelderpďŹicht.eu/download/Uebersicht_RauchmelderpďŹicht.pdf!
34. HiveMQ â at a glance
High Performance MQTT Broker î! î! Open Plugin System
Highly Scalable î¨! î! Supports Bridge Protocol
Clustering î´! îˇ! Native Websockets Support
38. Smart Home Devices
Communication
â˘âŻ 868 MHz
â˘âŻ BidCoSÂŽ-Protocol
(âBidirectional Communication
Standardâ)
â˘âŻ Supports âAES signed
commandsâ
Devices
â˘âŻ Brand: HomeMatic
â˘âŻ Sold by eq-3 (ELV)
â˘âŻ Readily available
â˘âŻ Many diďŹerent devices
39. Hardware
Software
Inside the House
îŠ
îŹ
Homegear
(v1.6.0)!
(v0.5.732)!
Raspberry Pi (Modell B)
CPU: ARM1176JZF-S (700 MHz)
RAM: 512 MB
Power: 5 V, 700 mA (3,5 W)
Busware CCD
â˘âŻ CC1101 transceiver
â˘âŻ ILI9341 based 2.8" TFT
Touch Display
â˘âŻ culfw ďŹrmware
Extras
â˘âŻ Transparent case
(busware)
â˘âŻ WiFi-Stick
â˘âŻ Antenna
40. Hardware
Software
Inside the House
îŠ
îŹ
Homegear
(v1.6.0)!
(v0.5.2436)!
Raspberry Pi 2 (Modell B)
CPU: ARM Cortex-A7
(4 x 900 MHz)
RAM: 1024 MB
Power: 5 V, 800 mA (4 W)
Busware CCD
â˘âŻ CC1101 transceiver
â˘âŻ ILI9341 based 2.8" TFT
Touch Display
â˘âŻ culfw ďŹrmware
Extras
â˘âŻ Transparent case
(busware)
â˘âŻ WiFi-Stick
â˘âŻ Antenna
41. OpenHAB by Example
âopenHAB is a software for integrating diďŹerent home
automation systems and technologies into one single
solutionâ
Core%Components%
Items% Protocol%Bindings% Automa6on%Logic%
Core Components were moved to eclipse:
44. Item definitions
/* Item format
TYPE ITEMNAME LABEL ICON (GROUPS) {BINDINGS}
*/
/* Group definitions */
Group:Switch:OR(ON,OFF) FireAlertDevices "Brandmelder"
/* Example item with binding */
Switch SmokeDetector1_Fire "Feueralarm Schlafzimmer" <fire>
(FireAlertDevices,Schlafzimmer)
{homematic="id=JEQ0736552, channel=1, parameter=STATE"}
45. Rule definitions
rule "Send MQTT messages on alerts"
when
Item FireAlertDevices changed
then
if (FireAlertDevices.state == ON) {
// we find the alerting sd and only send an alert for the "first responder"
var alertingSd = FireAlertDevices?.members.findFirst(sd|sd.state == ON)
var String mqttItemName = "MQTT_" + alertingSd.name
logDebug("MQTT", "Notifying mqtt item '{}'", mqttItemName)
postUpdate(mqttItemName, "ON")
} else {
logWarn("FireAlertDevices", "Ignored state change to " +
FireAlertDevices.state)
}
end
47. STEPS TO PRODUCTION
Hardening / Security Cloud
TLS, Authentication, Authorization, High Availability
01
Encrypt Inhouse Communication02
Sophisticated Hardware03
Platform Improvements04
48. Lessons Learned
îś!
POSSIBLE TO BUILD A SOLUTION
WITHOUT MUCH CODING
î! THE SMART HOME WORLD
IS CHANGING RAPIDLY
îż!
INTERESTING OPEN SOURCE
SMART HOME TECHNOLOGIES
OUT THERE
î´!
FOCUS ON ADDED VALUE AND
INTEGRATE CERTIFIED SECURITY
SOLUTIONS