This is the OpenTherm Gateway application for Homey. More information on the OpenTherm Gateway (OTG) can be found on http://otgw.tclcode.com.
You can order the gateway hardware e.g. via: KIWI electronics or NODO-SHOP .
If you have version 1.0.x of the application installed, please read these notes before switching to version 2.
The following Homey devices are currently supported.
You can add a device by clicking the '+' and selecting the 'OpenTherm Gateway'
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.
All other OTG configuration options can be set from the device settings page. Once they are saved, the configuration is sent to the OTG.
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.
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.
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:
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.
The Gateway device offers cards for triggers, conditions and actions. Note that also your thermostat device can be used in flows.
The following triggers are available:
Status flag changes (becomes active or inactive)
Fault flag changes (becomes active or inactive)
Temperature override (becomes active or inactive)
A response is received to a command that has been sent
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).
The following actions are supported. The actions are available on the Gateway device.
Send Gateway command. This should be a command as supported by the OTG. For a list of commands see the OTG website. Once the command is received the trigger 'Response received' will be fired.
Set hot water mode. The DHW (Domestic Hot Water) mode can be set to be either 'Thermostat controlled', 'Keep water hot' or 'Don't pre-heat'. You can use this to save energy when e.g. you are not home or at night, as you likely don't need hot water right away.
Set current thermostat time. For thermostats that support message ids 21 and 22, you have the option to synchronize the time from Homey to the thermostat.
Set outside temperature. If there is a temperature sensor device in Homey that measures the outside temperature, you can use this to send that information to the thermostat. This can enable an option like 'Optimal Comfort', which can heat the room independent of the temperature measured by the thermostat itself.
Set humidity level. Send a humidity percentage measurement to the thermostat, as it would be measured by a ventilation system.
You can ask Homey a number of questions related to the thermostat or boiler, e.g.
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.
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:
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.
getOtgwConfig
: returns the configuration settings of the OpenTherm GatewaygetOtgwVars
: returns all values read from the OpenTherm GatewayAn example how to invoke getOtgwVars
api('GET', '/app/com.tclcode.otgw/getOtgwVars', function(err, x) { console.log(x) })
<homey_ip>/api/app/com.tclcode.otgw/getOtgwVars