Slide 1

Slide 1 text

OpenHAB for home automation and things Jan-Piet Mens November 2015 @jpmens

Slide 2

Slide 2 text

Home automation • Connected home: thermostats, lights, sensors, blinds, audio, video … • Thermostats: seasonal preferences, defaults • Lights: presence triggers, night (DST changes) • Sensors: presence, temperature • Calendar: trigger “away”-mode (vacation) • Save energy The remainder of this slide deck is guaranteed bullet-free.

Slide 3

Slide 3 text

look Ma: automation

Slide 4

Slide 4 text

Ha, ha, ha, ha. No! This and the previous slide intentionally stolen from @teichsta

Slide 5

Slide 5 text

Intranet* of Things * http://kaikreuzer.blogspot.de/2014/02/privacy-in-smart-home-why-we-need.html blast furnace

Slide 6

Slide 6 text

Why openHAB? Mix and match: DIY, Z-Wave, Homematic, … Extensible: add upcoming technology without replacing rules, UI, etc. GUIs: Web, Android, iOS. Doesn’t rely on cloud: neither for processing nor for control. No fees: Open Source, large active community. Choose your platform: OS with Java.

Slide 7

Slide 7 text

? Get a CCU to do CUL for connecting the HM-LC-SW1-PI to the HM-CFG-LAN or you can use Homegear or a combination of LxCCU with a plain gateway on a cubietruck and Homegear or the CCU1 without Homegear and no LxCCU. Without it the binding requires TclRega on port 8181with or with FHEM but then disable AES which will cause Homegear to no longer work. In version x the RPC goes from XML to bin but no longer does RF except with a CCU if it controls a CUL. Sounds OK to me

Slide 8

Slide 8 text

WTF-8

Slide 9

Slide 9 text

openHAB

Slide 10

Slide 10 text

Bindings AlarmDecoder Anel Asterisk Astro BenQ Projector Bluetooth Bticino Comfo Air CUL CUPS DAIKIN Davis digitalSTROM DMX512 DSC Alarm DSMR Ecobee EDS OWSever eKey Energenie EnOcean Epson Projector Exec Freebox Freeswitch Fritz AHA Fritz!Box FS20 Global Cache IR GPIO HAI/Leviton HDAnywhere Heatmiser Homematic Homegear HTTP IEC 62056-21 IHC ELKO ImperiHome Insteon Hub Insteon PLM IRtrans jointSPACE KNX Koubachi Leviton/HAI Omnilink Lg TV MAX!Cube MiLight MiOS Modbus MPD MQTT MQTTitude Neohub Nest Netatmo Network Health Network UPS Nibe Heatpump Nikobus Novelan/Luxtronic NTP One-Wire Onkyo AV Receiver Open Energy Monitor OpenPaths OpenSprinkler Philips Hue Piface pilight Pioneer-AVR Plugwise PLCBus Pulseaudio RFXCOM Samsung AC Samsung TV Serial Satel Alarm SNMP Somfy Sonos Squeezebox Swegon ventilation System TCP/UDP Tellstick TinkerForge Tivo VDR Velleman-K8055 Wake-on-LAN EcoTouch Heatpump Weather Wemo Withings XBMC xPL Yamahareceiver Zibase Z-Wave

Slide 11

Slide 11 text

vi/emacs Designer

Slide 12

Slide 12 text

Items Switch Pplug "Power socket" { homematic="address=LEQ1068578, channel=1, parameter=STATE” } Number JPhttp "Value [%d]" (Weather) { http="<[http://localhost:9001/:60000:REGEX((.*))]" } Binding

Slide 13

Slide 13 text

Sitemaps sitemap jpdemo label="Main" { Frame { Switch item=Pplug } }

Slide 14

Slide 14 text

Web interface

Slide 15

Slide 15 text

Mobile interface

Slide 16

Slide 16 text

Have a REST curl -X GET -H 'Accept: application/json' \ http://localhost:8080/rest/items/Pplug { "link": "http://localhost:8080/rest/items/Pplug", "name": "Pplug", "state": "ON", "type": "SwitchItem" } curl -X POST http://localhost:8080/CMD?Pplug=TOGGLE curl, wget, jquery, etc. curl -X POST -H 'Content-Type: text/plain' \ -d ON http://localhost:8080/rest/items/Pplug

Slide 17

Slide 17 text

Can openHAB … ? Yes Automation: scripts, rules, actions. Integration: Asterisk, Google calendar, media players. User Interfaces: Web, Android, iOS. Console. REST API. Actions: mail, XMPP, Prowl. Persistence: db4o, rrd, logging, MQTT, MySQL, MongoDB, InfluxDB. Transformations: JSON, XSLT

Slide 18

Slide 18 text

Ideas Lights on after dark. Point webcam at window on open. Mute music when phone rings. Switch iron off when leaving home. Start irrigation at night. Switch kettle coffee machine on when alarm clock rings. Warn of open windows when leaving house.

Slide 19

Slide 19 text

Happy customer: @sumnerboy I love my bedtime mode - auto enabled when I plug my phone into the charger at night (via Tasker) which turns down the heating, turns off the TV, checks all doors are closed and my PCs are shutdown, and turns off all lights after 5 mins (giving me time to get to the bedroom) just works

Slide 20

Slide 20 text

openhab.org @openhab