[Documentation] [TitleIndex] [WordIndex

Subscribes States from openhab using a bridge between openHAB and ROS. These are just examples of how you need to proceed for each item type. You can test this by testing the openhab_static_examples. This package serves as a template for writing subscribers for different item types.

In a minimal installation you need at least openhab_bridge and openhab_msgs.

Install the openhab_bridge_subscriber

In the next step you have to install the openhab_bridge_subscriber in your catkin workspace:

cd ~/catkin_ws/src
git clone --branch <branchname> https://github.com/Michdo93/openhab_bridge_subscriber
cd ~/catkin_ws
catkin_make

Please replace <branchname> with your branch, as example kinetic-devel, melodic-devel or noetic-devel.

Usage

You can test it by using the openhab_static_examples. You can run each subscriber like described in the following:

rosrun openhab_bridge_subscriber ColorSubscriber.py
rosrun openhab_bridge_subscriber ContactSubscriber.py
rosrun openhab_bridge_subscriber DateTimeSubscriber.py
rosrun openhab_bridge_subscriber DimmerSubscriber.py
rosrun openhab_bridge_subscriber GroupSubscriber.py
rosrun openhab_bridge_subscriber ImageSubscriber.py
rosrun openhab_bridge_subscriber LocationSubscriber.py
rosrun openhab_bridge_subscriber NumberSubscriber.py
rosrun openhab_bridge_subscriber RollershutterSubscriber.py
rosrun openhab_bridge_subscriber StringSubscriber.py
rosrun openhab_bridge_subscriber SwitchSubscriber.py

2024-11-09 14:42