OpenHAB with Zensehome

Version 15.1 by Normann P. Nielsen on 2026/11/15 15:42

Success

Update 08-12-2022. Now a days ZenseHome has MQTT connection, so this page is 100% outdated. Use the MQTT Connection in ZenseHome to provide bridging to OpenHAB or similar.

Architecture

MQTT
openHAB
Java App
ZenseHome Box
Websocket
communication
Send to Topic
Read from Topic
Channel
Item
Text is not SVG - cannot display

Java Application as Bridge

Github Source: https://github.com/jobu279/zensehome

Compile the source code or fetch the runtime. Edit config.properties to suit your network and mqtt.

Samples below are referenced from /home/bnp/production/zensehome/zensemqtt

You need to create a "/home/bnp/production/zensehome/zensemqtt/logs" directory; - then execute the application

root@robin:~/production/zensehome/zensemqtt# java -Dfile.encoding=UTF-8 -classpath /home/bnp/production/zensehome:/home/bnp/production/zensehome/zensemqtt/mqtt-client-0.4.0.jar zensemqtt.ZenseMQTTJan 09, 2019 8:14:01 PM zensemqtt.Log loggingINFO: Starting ZenseHome MQTT listener

Setup a light source

I have defined a Thing for the ZenseHome box:

Screenshot 2019-01-09 at 21.16.19.png

Screenshot 2019-01-09 at 21.07.32.png

And are adding each light as a channel See Concepts):

Screenshot 2019-01-09 at 21.05.19.png

With the Topics according to https://github.com/jobu279/zensehome. The Id can be found in the Zensehome Windows Application:

Screenshot 2019-01-27 at 12.48.02.png

Success

Adding as "Percentage value" instead of ON/OFF, gives a slider for the light

After the Save operation, the Channel has a unique id:

Screenshot 2019-01-27 at 16.17.53.png

This is is used in Sitemaps and Item files .

Visible and testing in Paper UI - Controls

You should be able to see the Channels in Paper UI and test them:

Screenshot 2019-01-09 at 21.36.17.png

Installing as a service

Follow: https://computingforgeeks.com/how-to-run-java-jar-application-with-systemd-on-linux/

Logging

Watch the Log in /home/bnp/production/zensehome/zensemqtt/logs

root@robin:~/production/zensehome/zensemqtt/logs# cat 2019-1_ZenseLog.logJan 09, 2019 7:44:53 PM zensemqtt.Log loggingINFO: Starting ZenseHome MQTT listenerJan 09, 2019 7:46:35 PM zensemqtt.Log loggingINFO: New message with topic: zense/execute/10604, Message: ONJan 09, 2019 7:46:37 PM zensemqtt.Log loggingINFO: New message with topic: zense/execute/10604, Message: OFFJan 09, 2019 7:46:43 PM zensemqtt.Log loggingINFO: New message with topic: zense/execute/10604, Message: ONJan 09, 2019 7:46:44 PM zensemqtt.Log loggingSEVERE: Error in socket creation: java.net.SocketExceptionJan 09, 2019 7:46:54 PM zensemqtt.Log loggingINFO: New message with topic: zense/execute/10604, Message: OFFJan 09, 2019 7:46:55 PM zensemqtt.Log loggingSEVERE: Error in socket creation: java.net.SocketExceptionJan 09, 2019 7:47:00 PM zensemqtt.Log loggingINFO: New message with topic: zense/execute/10604, Message: ON

Notice the "SEVERE: Error in socket creation: java.net.SocketException" - this means the ZenseHome box is non-responding

Success

Use the MQTT Explorer for examining the topics