Versioner sammenlignet

Nøgle

  • Linjen blev tilføjet.
  • Denne linje blev fjernet.
  • Formatering blev ændret.
Tip

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

Gliffy Diagram
nameArkitektur
pagePin4

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

...

Kodeblok
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.ZenseMQTT
Jan 09, 2019 8:14:01 PM zensemqtt.Log logging
INFO: Starting ZenseHome MQTT listener

I have added compiled code here (out.zip) as of 2018-01-09 - Just change the config.properties file to suit Your installation

The supporting lib for MQTT is mqtt-client-0.4.0.jar.

Setup a light source

I have defined a Thing for the ZenseHome box:

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

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

Image Added

Tip

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

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

Image Added

This is is used in Sitemaps and Item files .

Visible and testing in Paper UI - Controls

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

Installing as a service

...

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

Tip

Use the MQTT Explorer for examining the topics