Skip to content

Setting up GPIO pins in openHAB #107

Discussion options

You must be logged in to vote

I suggest you read through the documentation of MQTTany and the MQTT binding in openHAB to get more familiar with both. You will also find examples for the MQTT binding on the openHAB forum.

I will give you some examples for the pin you are trying to setup to get you started.

The root topic defaults to being the same as the client id, which defaults to the hostname of the system. You have your topics in openHAB using a root of 10.0.10.200, but that is the address of your MQTT server. From your command prompt pi@raspberrypi: ~ $ you can see that the hostname is raspberrypi, therefore MQTTany is connecting using the name raspberrypi and the root topic is also raspberrypi.

The rest of the to…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by CrazyIvan359
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant