Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OpenHAB Driver
#1
OpenHAB is a JAVA-based open source automation software, http://www.openhab.org. It can run on almost all hardware, including Windows and Raspberry PI. It has apps for both android and IOS, and has a number of connection options, such as MQTT, SNMP, HTTP, and has a number of various interface/display options. Here's the summary from their website:

  1. is designed to be absolutely vendor-neutral as well as hardware/protocol-agnostic
  2. can run on any device that is capable of running a JVM (Linux, Mac, Windows)
  3. lets you integrate an abundance of different home automation technologies into one
  4. has a powerful rule engine to fulfill all your automation needs
  5. comes with different web-based UIs as well as native UIs for iOS and Android
  6. is fully open source
  7. is maintained by a passionate and growing community
  8. is easily extensible to integrate with new systems and devices
  9. provides APIs for being integrated in other systems

OpenHAB has also joined the cloud (band-wagon), and has a free, no-limits cloud service that connects and allows item values to be logged and uploaded to an external secure site, myopenhab.org.

IMHO, the documentation for version 2.x is great for the beginner but advanced subjects are difficult to locate or unavailable. OpenHAB has an active community and is actively developing new bindings (i.e., device drivers) for external connections. I found the community forum a better resource, than the online docs, but the built-in docs for the REST API are very comprehensive.

Attached is a CQC device driver for monitoring events, such as changes to an OpenHAB item's (field's) value. Other events could be monitored, but the driver does not support any other event types (yet). The driver's connection is only one-way, as any commands to the openhab instance can be completed using the REST API.

A TCP connection to the device running OpenHAB is required for the driver, since it implements a SSE (Server-side Event) protocol, where a persistent, one-way connection is created after a HTTP request.

The driver config file allows for multiple items to listened for (subscribed). Config file format, is as follows, (keyword names are not case-sensitive):

###############        CONFIG FILE - for OpenHAB Device Driver        ###############
####
#### ---- One config item per line, Use '~' for seperator. Lines with '#' will be ignored. ---- ####
####
# PollInterval will polling define interval, in milliseconds, default is 500
PollInterval~250

# Add additional custom fields on seperate lines, driver requires at least 1
ItemChange~someItemName
ITEMCHANGE~anotherItemName
itemchange~yetAnotherItemName
itemchange~AfourthItemName

# DebugEnable will dump debugging and detailed logging to a local file in MacroFileRoot
DebugEnable~False


Attached Files
.cqcdrvpack   OpenHAB-v1-0.CQCDrvPack (Size: 10.64 KB / Downloads: 0)
Reply
#2
Excellent stuff - I am aware of OpenHAB but have never used it. I know many have though and it is very popular. What is the use case scenario you are thinking of with this driver. Isn't OpenHAB its own automation system?

My first immediate thought was to use CQC with OpenHAB for MQTT, but I think a Node Red driver would be better if its just for that reason.

Is this meant to be a gateway to those protocol that are not currently supported in CQC but are in OpenHAB
Mykel Koblenz
Illawarra Smart Home
Reply
#3
(05-08-2018, 12:00 PM)znelbok Wrote: What is the use case scenario you are thinking of with this driver.  Isn't OpenHAB its own automation system?

Is this meant to be a gateway to those protocol that are not currently supported in CQC but are in OpenHAB

Yes, OpenHAB is another automation system, but designed to be run on lighter hardware. For me, openHAB is a backup or redundant monitor, depending on how stable I see it. I haven't enjoyed everything about OpenHAB, and I by-no means see it as a replacement to CQC, just another horse in the stable.

Recently, I've been experimenting with the various cloud automation services, integration capabilities, and I really appreciated the free cloud service for upload of data/events. I also found OpenHAB to be the only FREE service that allows me to send a string (or number) parameter via IFTTT to my home automation system, without exposing an open port to the internet.

So all this pushed me to develop and release the driver, and I thought others might find other use cases, as well, such as MQTT.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Pushbullet Driver whozeawhat 1 98 05-13-2018, 07:27 AM
Last Post: whozeawhat
  Monoprice Blackbird 4x4 HDMI Switcher - Driver request batwater 14 6,664 02-10-2018, 02:29 PM
Last Post: batwater
  LIFX Driver bobskie708 9 787 01-30-2018, 12:34 PM
Last Post: jkmonroe
  SNMP Driver wuench 115 261,435 01-01-2018, 05:18 PM
Last Post: Dean Roddey
  Sony Bravia TV Driver znelbok 6 534 12-27-2017, 08:03 AM
Last Post: jkmonroe
  CBUS CGate Driver martinmcc 46 16,175 12-18-2017, 01:19 AM
Last Post: znelbok
  Samsung SmartTV driver? sic0048 3 571 12-17-2017, 11:51 AM
Last Post: Dean Roddey
  Vantage Controls Driver for Infusion System KenC 3 1,355 10-23-2017, 12:10 PM
Last Post: Dean Roddey
  Another SMS Driver - SMS Global, one for everyone else znelbok 21 7,163 10-21-2017, 07:19 PM
Last Post: znelbok
  XBMC Driver wuench 419 139,205 07-02-2017, 11:04 AM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)