OpenTherm Gateway Plugin for HomeSeer HS4 Manual

Introduction

Thank you for using the OpenTherm Gateway Plugin for HS4! This plugin can be used to communicate with an OpenTherm Gateway (OTGW). OTGW is an open source gateway by Schelte Bron that you can build yourself (or buy from a few webshops) and connect in between your OpenTherm thermostat and boiler or compatible devices. Please see Requirements for more info.

Please note that, despite its name, the OpenTherm protocol is not an open standard. Information about it was gathered from leaked documents and downloads, as well as other projects. It may not be 100% correct, but I'm constantly hunting for more information and will update this plugin accordingly. If you have additional information, please share it with me through the HomeSeer forums.

This plugin will process every known OpenTherm message, unlike scripts or solutions for other home automation platforms. Those are usually based on the (PS=1) summaries, which are read every at certain intervals. In other words, this plugin is realtime. Any delay is caused by thermostat/boiler being busy with other more important messages. The devices page in HS4 also does not update instantly (but every other second or so). Not using PS=1 also means that you can always use the latest OTGW firmware (The summary output changed in version 5.0 and may change again in future).

This is my fourth plugin for HS4. My other plugins are the MiLight Plugin, Volvo Plugin and Horizon Remote Plugin. My main motivation to develop these plugins is to get better and better at C# development, and because I want the functionality for my own system.

I have tested this plugin thoroughly, but if you find bugs anyway, please let me know.

Bernold

Requirements

To use this plugin, you will need the following:

Abbreviations

CH
Central Heating
CH2
Central Heating, 2nd circuit
DHW
Domestic Hot Water
FHB
Fault History Buffer
OEM
Original Equipment Manufacturer
OTC
Outside Temperature Compensation
TSP
Transparent Slave Parameters
V/H
Ventilation/Heat-Recovery

OTGW is an abbreviation of OpenTherm Gateway

Installation/Configuration

  1. Install and activate the plugin like any other plugin. If you're new to HS4, here is how:
    • Go to your HomeSeer Web Control page.
    • Use the Plugin dropdown and choose Add.
    • Use the (2nd) Search bar, or scroll to OTGW Plugin.
    • Choose Install.
    • In Plugins > Installed use the toggle to turn on the plugin.
  2. Configure:
    • Go to Plugins > OTGW Plugin > Add OpenTherm Gateway.
    • Follow the steps:
      • Choose Continue at the introduction step.
      • Enter the IPv4 address of the OTGW. Choose Continue.
      • Enter the port number that goes with that IP address. Choose Continue.
      • Optionally enter a name for this OTGW. This is useful when you have more than one. If you don't enter a name, the IP and port will be used. If you now continue by choosing Create Device/Features, the entered information will be validated and the device and a few of its features will be created. After that, the connection to the OTGW will be made.

Noteworthy

Devices and Features

There are quite a lot of (feature) devices being created. This chapter gives you more information on them. Given the amount of possible features it's not really doable to list them all. But here is some general information.

Features that are related to an OpenTherm MsgID

Most features have a MsgID reference. This is the ID which is used in the OpenTherm protocol. These IDs carry different information. All of these are converted to feature values.

Noteworthy:

Other features

Then there are features that are not directly related to Msg IDs. Here is a list of all of them:

Each Error feature has a button to reset the feature value to 0 (It's not sent to the OTGW).

Sending a Command

While some features have buttons to send commands, I decided to not create a feature for every possible command. Mainly to keep the number of features to a minimum (kind of), but mostly because not every OpenTherm device supports every command and some commands are only available on an OTGW with a certain type of PIC or a certain firmware version. These features would be not be useful for everybody. Besides, some commands have to be used with care.

So instead I chose to create an event action that lets you send any command to the OTGW.

Example

As an example, here is how to send the outside temperature from a separate sensor (not connected to the boiler/thermostat/OTGW) to the OTGW.

First, create the trigger. In this case, the event will run when the sensor's temperature has been set or changed:

[Description of the HomeSeer event configuration screenshot: A visual representation of a HomeSeer event trigger and action. The trigger is set to "A Device's Value is..." for "Outside-Outside back-Temperature" when "Just had its value set or changed". The action is "OTGW Plugin Action - Send command" to a specific OTGW Device (iSense (192.168.20.80:8080)) with the command "OT=$$DVR:1256:"]

If this event is triggered, the Send Command action is used to send, to the selected OTGW, the OT (Outside Temperature) command with the value from the replacement variable of feature device with reference 1256 (which in this case is the reference of the same outside temperature sensor as the trigger uses).

For a full list of OTGW commands, see: https://otgw.tclcode.com/firmware.html#commands

And a list of replacement variables can be found here: https://docs.homeseer.com/products/software/hs4-smart-home-software/scripting/applications-and-plugins/replacevariables/using-replacement-variables

Of course, sending commands is fully at your own risk. Especially the commands which allow you to modify setpoints can cause unwanted situations. Always make sure that commands are confirmed, by checking their matching MsgID.

Modifying a Gateway

To modify the IP address, port and/or name of a previously added OTGW you can use the Modify OpenTherm Gateway page as follows:

Removing a Gateway

To completely remove an OTGW from the settings and remove its device and features you can use the Remove OpenTherm Gateway page as follows:

Donate

As the Donate page (Plugins > OTGW Plugin > Please Donate) explains, I decided to make the plugin free. Considering the amount of work that went into it (research, writing code, testing, etc.) and expected support/updating in future, this would have been a paid plugin.

The reason for this plugin being released as a free plugin is simple. Schelte Bron has released the OTGW without the intention to make money. Its PCB design, firmware, software and sources are available for everyone, free of charge.

If you are willing to donate, please first consider to donate to Schelte Bron. There is a link to his PayPal at the bottom (Feedback) of this page on his site.

If you are willing to donate to me I'm asking you to buy my paid plugin: MiLight (LimitlessLED). That way HomeSeer will get their share too, which I think is fair.

Thank you for your support.

Serial Connection

Although this plugin does not natively support using a serial connection (USB/COM/TTY), there are ways to connect an OTGW that has no LAN/Wi-Fi yet:

  1. Use a free COM/TTY port to IP address redirector to connect. They can easily be found through an internet search engine.
  2. Use Schelte Bron's Opentherm Monitor to connect via serial port (Options > Connection > Serial port. Set the radio button and choose the Serial device). Then use its relaying function under Options (Configuration) > Remote Access. Enable both Enable relay server and Relay opentherm messages. Modify the Server port if needed. Then add the OTGW to the plugin with the IP of the machine running Opentherm Monitor and the port you have set for relaying.

Note you may want to save resources by:

[Description of the Opentherm Monitor screenshots: Two screenshots of the Opentherm Monitor software are displayed. The left screenshot, labeled "Connection", shows configuration options for serial port (e.g., COM1) and TCP connection (localhost:25238). The right screenshot, labeled "Remote access", shows settings for enabling a relay server on port 7686 and relaying OpenTherm messages.]

Thanks to forum user mo046 for this addition.

Support

If you have a question about this plugin or want to report a bug, please use the dedicated sub-forum on https://forums.homeseer.com/

Everything about the OTGW can be found here: https://otgw.tclcode.com/

And a forum about the OTGW, where the creator is present as moderator: https://domoticaforum.eu/viewforum.php?f=75

Changelog

VersionRemark
1.0.5.0Fixed Log flooding and HS4 slowdown when OT message is empty/null (usually when another client connects). Now assuming disconnect, trying to reconnect.
1.0.4.0Fixed timeout, automatic reconnect. Described in manual. Modified MsgID78 after confirmation by Schelte
1.0.3.0Improved TCP Client Added ΔT feature
1.0.2.0Fixed instability issue.
1.0.1.0Fixed reconnect button. Improved setup page. Improved checking for valid incoming OT messages. Added some error log messages.
1.0.0.0Initial release
Models: HS4 Smart Home Software, HS4, Smart Home Software, Home Software, Software

File Info : application/pdf, 9 Pages, 566.67KB

PDF preview unavailable. Download the PDF instead.

523 OpenTherm Gateway Plugin for HomeSeer HS4 manual

References

Microsoft Word 2019

Related Documents

Preview mcsMQTT HomeSeer HS3/HS4 Plugin User Manual
User manual for the mcsMQTT plugin by Michael McSharry, enabling seamless integration of MQTT-enabled IoT devices with HomeSeer HS3 and HS4 home automation systems. Covers installation, configuration, MQTT message handling, and device integration.
Preview Updates Plugin for HomeSeer HS4: User Manual and Guide
Comprehensive manual for the HomeSeer HS4 Updates Plugin. Learn installation, configuration, features, and troubleshooting for managing HS4 and plugin updates.
Preview HomeSeer HS4 Quick Start Guide: Smart Home Automation Setup and Usage
Get started with HomeSeer HS4, the smart home automation software. This quick start guide covers installation, registration, navigating the interface, adding devices and events, remote access via MyHS, and using the HomeSeer Mobile app.
Preview HomeTroller PRO Quick Start Guide - Setup and Usage
Get started quickly with the HomeTroller PRO smart home automation system. This guide covers setup, registration, navigation, adding devices and events, remote access with MyHS, and using the HomeSeer mobile app.
Preview HomeTroller Plus Quick Start Guide | HomeSeer Smart Home Hub
Get started with your HomeTroller Plus smart home hub. This guide covers setup, registration, navigation, installing plugins, creating devices and events, remote access with MyHS, and the mobile app.
Preview HomeSeer HS2 Getting Started Guide - Home Automation Software
A comprehensive guide to installing and using HomeSeer HS2, covering setup, configuration, features like voice control and event management, and technical support for home automation systems.
Preview HomeSeer Rain8/Relay8: RainRelay8 Plugin Release Notes and Installation Guide
Comprehensive release notes and installation guide for HomeSeer Rain8 and Relay8 Net Controllers, detailing the setup and configuration of the RainRelay8 plugin with HomeSeer software.
Preview HomeSeer HomeTroller PRO Quick Start Guide: Setup and Operation
A quick start guide for the HomeSeer HomeTroller PRO, covering setup, registration, navigation, creating devices and events, and using the MyHS remote access service and mobile app.