nlrb / com.tclcode.otgw

OpenTherm Gateway application for Homey
https://apps.athom.com/app/com.tclcode.otgw
10 stars 3 forks source link

Homey OpenTherm Gateway application

This is the OpenTherm Gateway application for Homey. More information on the OpenTherm Gateway (OTG) can be found on http://otgw.tclcode.com.

Hardware

You can order the gateway hardware e.g. via: KIWI electronics or NODO-SHOP .

Migration: Important note

If you have version 1.0.x of the application installed, please read these notes before switching to version 2.

Devices

The following Homey devices are currently supported.

You can add a device by clicking the '+' and selecting the 'OpenTherm Gateway'

Gateway device

After installing the application, the first device that needs to be paired is the Gateway device.

There is no automatic way of finding an OpenTherm Gateway in your network, hence you will need to show the app where it can be found.

After entering the ip address and port number, press 'Start gateway search'. The application will start searching for the OTG and once found the Gateway device will be added to Homey.

The Gateway device will show whether it is in 'Monitoring only' mode. In order to be able to use all functionality this should normally be 'No', which indicates the OTG is in Gateway mode.

The Gateway device will also give you the option to change the current 'Domestic Hot Water' setting directly from the mobile card.

Gateway device settings

All other OTG configuration options can be set from the device settings page. Once they are saved, the configuration is sent to the OTG.

Thermostat device

Normally you can only add one thermostat device, except if you have a second circuit and it is supported by the boiler.

On the Thermostat device you change the temperature, which will either send a 'TT' or 'TC' command (depending on the setting) with the new temperature. If the new temperature is higher or equal to the current temperature, the thermostat mode will display 'Heat'. If the new set temperature is lower, the state will show 'Cool'. Adjusting the state to 'Cool' or 'Heat' manually has no effect. However, setting the state to 'Automatic' will send a 'TT=0' command, which results in the thermostat returning to the regular program.

Thermostat device settings

The following features are available.

When a temperature change on the thermostat device is made, either a 'TC' or 'TT' can be send to the OTG. A 'TC' will make it a permanent ('constant') change, until you change a setting on the thermostat. A 'TT' will make the temperature setting 'temporary'. In this case a program change (e.g. at 17.00 or so) will undo the settings, and the program will resume.

Please note that not all thermostats support these commands. Check the Equipment matrix on the OTG website for message 9 and 100.

The second option allows you to have the app send a 'SR=70:0,0' command. This results the thermostat believing that a ventilation device is supported. Some thermostats (like e.g. the Honeywell Chronotherm Modulation) can show the air humidity. But it will show it only when this option is set to 'Yes'. You can send a humidity value to the OTG via a Homey Flow card.

Boiler device

A pre-defined sensor-type device is available for pairing, called the Boiler device. When this device is added, you can view the following status items of the boiler:

Sensor device

You can create and add your own sensor devices, containing values that are supported by your thermostat or boiler. During pairing a list is shown of available variables that can be added to your sensor.

You can add as many entries to one sensor device as you like. They are added in the order the tick-marks are placed.

However, only messages that are supported by the boiler and/or thermostat will show up in the list. When fist starting up, it will take some time before the app knows which messages give valid values. So make sure the app is running for some time before configuring the sensor device.

Note: OpenTherm messages can come by in a slow pace, which means that updates can also be slow. E.g. when setting a new temperature on the thermostat, it will not take effect immediately. So when re-opening the device it can still show an old value. There's no other remedy than patience.

Flows

The Gateway device offers cards for triggers, conditions and actions. Note that also your thermostat device can be used in flows.

Triggers

The following triggers are available:

Conditions

Only one condition currently exists, which is to check whether the Remote Override is (in-)active (i.e. whether a temperature has been set via the application or not).

Actions

The following actions are supported. The actions are available on the Gateway device.

Speech

You can ask Homey a number of questions related to the thermostat or boiler, e.g.

Application settings

Device

On the app settings page there is one option available, which is relevant when adding a sensor device. If the tick-mark is not present, sensor values can appear in only one sensor device. They will not be in the list when adding a new sensor device if it already has been used. When the option is set to true, a value can appear in multiple sensor devices. Be aware however that this also causes Insights to log the same data multiple times.

Debug

It is possible to view debugging info generated by different parts of the application. Data is shown in the order as it comes in. Select a combination of the following debug components:

API

To enable usage of the values read from the OpenTherm Gateway outside of the app, there is are 2 API function available. They can be used unauthenticated.

Examples

An example how to invoke getOtgwVars

Versions