/hsmqtt

A Java MQTT bridge for the HomeSeer JSON API

Primary LanguageJavaBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

CI

HomeSeer hsMQTT

A Java MQTT bridge for HomeSeer. msMQTT polls the HomeSeer API on a schedule and publishes device change messages to an MQTT Broker. Messages are published in JSON format.

hsMQTT is one of numerous HomeSeer support applications created by khubla.com, including

msMQTT uses hsClient

License

msMQTT is distributed under the BSD 3-Clause License.

Configuration

msMQTT is configured via the file "hsmqtt.properties". A typical example is

# HomeSeer
hsurl=http://192.168.75.129/JSON
hsuser=HOMESEERUSERNAME
hspassword=HOMESEERPASSWORD

# MQTT
mqtturl=tcp://192.168.75.71:1883
mqtttopic=devices
mqttpublisherid=hsMQTT

# Number of threads to poll HomeSeer on
pollingthreads=5

# minutes
pollinginterval=1

Example message

{"deviceRef":107,"value":0.0,"lastChange":1594530001541,"location":"Living Room","location2":"Main Floor","name":"Living Room Dimmer","status":"Off","type":"Z-Wave Switch"}

Usage

java -jar target/hsmqtt-1.0.0-SNAPSHOT.jar 

A log file is generated to hsmqtt.log and rotated every 30 days.