ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

combine ROS with Home Automation [closed]

asked 2015-03-12 18:37:32 -0600

corb gravatar image

I have written a ROS python package which provides a bridge to the OpenHAB home automation system (open source license)

OpenHAB is an open source system that connects to virtually any intelligent device, such as smoke detectors, motion detectors, temperature sensors, security systems, TV/audio, fingerprint scanners, lighting, 1-Wire, Wemo, CUPS, DMX, KNX, openpaths, Bluetooth, MQTT, Z-Wave, telephony, Insteon, weather sensors, and web services such as Twitter, etc. ROS also provides a basic Web GUI and Iphone/Android app for setting and dynamically viewing values.

Give your robot knowledge of the wider world

Use Cases:

  • A motion detector in OpenHAB triggers and ROS dispatches the robot to the location.
  • ROS facial recognition recognizes a face at the door and OpenHAB unlocks the door.
  • A Washing Machine indicates to OpenHAB that the load is complete
    and ROS dispatches a robot to move
    the laundry to the dryer.
  • OpenHAB MQTT binding indicates that Sarah will be home soon and a sensor indicates that the temperature is hot. ROS dispatches the robot to bring Sarah's favorite beer. OpenHAB turns on her favorite rock music and lowers the house temperature.
  • A user clicks on the OpenHAB GUI on an IPAD and selects a new room location for the robot. The message is forwarded by the openhab_bridge to ROS and ROS dispatches the robot.

With the openhab_bridge, virtually any home automation device can be easily setup to publish updates to the openhab_updates topic in ROS, giving a ROS robot knowledge of any Home Automation device. ROS can publish to the openhab_set topic (or openhab_command) and the device in OpenHAB will be set to the new value (or act on the specified command).

To download and for more information:

edit retag flag offensive reopen merge delete

Closed for the following reason Question does not follow our guidelines for questions. Please see: for more details. by BennyRe
close date 2015-03-13 07:36:42.015511



Well, usually people post questions to the ROS users mailing list, which is reserved for announcements. In this case you do it the other way round. You post an announcement on ROS answers, which is reserved for questions. Please post this on ROS users. BTW: We already tested your package. Good job!

BennyRe gravatar image BennyRe  ( 2015-03-13 01:56:33 -0600 )edit

How can I connect my robot with the openhab_bridge?

Johan gravatar image Johan  ( 2015-03-19 16:06:55 -0600 )edit

Thanks for your reply. But how does the openhab bridge recognize the robot ?

My robot ist based on Arduino and has ROS

usually i used the following code for building a "connection" to be able to communicate.

rosrun rosserial_python _port:=/dev/ttyUSB0
Johan gravatar image Johan  ( 2015-03-19 18:36:00 -0600 )edit

Without Arduino/rosserial, it would run like this:

The linux system running ROSCORE would also launch openhab_bridge. The Openhab bridge subscribes and publishes ROS topics. The openhab bridge uses HTTP to talk to the Openhab REST interface.

corb gravatar image corb  ( 2015-03-19 18:59:56 -0600 )edit

Is it right that using Arduino/ rosserial is not able right now to connect with the openhab_bridge?

Johan gravatar image Johan  ( 2015-03-19 19:48:48 -0600 )edit

@Johan please open a new question, instead of asking in comment section (you won't get sufficient attention by right persons in comment).

130s gravatar image 130s  ( 2015-12-17 14:00:39 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-03-19 18:11:02 -0600

corb gravatar image

there is an overview here: . The openhab bridge is a small ROS python package that you launch. Your ROS robot would talk to OpenHAB by using ROS publish/subscribe to the bridge.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-03-12 18:37:32 -0600

Seen: 996 times

Last updated: Mar 12 '15