Opentherm gateway and script integration into Homeseer
Posted: Thu Aug 25, 2011 12:25 am
Hi all,
I have, also based on information found on this forum, integrated my Central Heating system into Homeseer.
I have build the opentherm gateway as described on http://tclcode.com/opentherm/.
It turned out the timing of my Remeha Celcia 20 Room Thermostat was not 100% according Opentherm specification, but due to the great support of the developer (hvxl on this forum) of the gateway this issue is solved. He also added the option to the gateway to give the status of all opentherm messages on request, which made it easy to integrate the gateway into Homeseer. All information about the gateway, including the schematic, part list, print layout , firmware, all possibilities and an optional monitoring program can be found on the mentioned website and is now also discussed on this forum, see here
Integration is done into Homseer with a lot of virtual devices and a script. I run this script every 1,5 minutes to update the status of my Central Heating system into Homeseer and I can control the setpoint for the room temperature via Homeseer as well.
The Devices (Devices not supported by my Boiler / Room Thermostat are hidden): The Events: My programming skills are not great, so the code is not the most efficient, but it is functional.
Updates:
20131103: Version 02l of the script (attached). Changes mainly to be used with the Alpha/Beta Firmware Versions of the Opentherm Gateway. Please use this new version 02l ONLY with Alpha/Beta Firmware 4.0a10 or higher and NOT with the standard Firmware (3.4):
adapted for OTGW firmware version 4.0a10; PR reply changed from only result to "PR: A=x"; reply PS=1 command striped new due to PS in Reply
adapted for OTGW firmware version 4.0a7; GW command changed from G to M, result G or M
adapted for OTGW firmware version 4.0a6; IT and PR=T command not needed & not supported anymore
FIXED: corrected opening serial port, port was not open before first message send
added 2nd TempTemperature, the first one with buttons (Thanks Again Rutger!), the second one with the Listbox;
changed "devices" section in .ini file to "Temperatures"
added default Day and Night temperatures in .ini file;
added SerialControlInScript parameter in .ini file to control open/close in script (value TRUE) or in e.g. startup script (value FALSE), so additional setup required!!.
included also the .gif files uses in the script. 20130101: Version 02g of the script (attached). Changes:
FIXED: Creation of OTGW devices is now also possible via TELNET connection. 20121209: Version 02e of the script. Changes:
NEW: added create virtual device for temporary temperature control as 7th OTGW Device with Listbox (thanks Rutger);
FIXED: Telnet control (moved communication to Function SendMessage);
several clean up actions in the script (e.g. repaces spaces by tabs); debugOTGW settings more consistent;
improved execution speed by replacing waitsec(1) with waitMS(200).
corrected hscontrol to work with temperatures in tenths of decrees and corrected PR=O response;
minor layout improvements PR presentations;
20111206: Version 02 of the script. This version can communicate with the OT Gateway via Telnet or Serial port.
New: Communication via COM port or Telnet (based on setting in config file;
New: additional device(s) for the OT gateway itself;
New: all devices will be created when the scripts runs for the first time;
Change: renamed config file to hssi_BLB_OT_monitor.ini (hssi stands for HomeSeerScrIpt);
Change: all parameters, house codes and settings in the config file, no hardcoding anymore in the script itself.
20111109: Version 01 of the script. This version is communicating with the OT Gateway via Telnet.
I have, also based on information found on this forum, integrated my Central Heating system into Homeseer.
I have build the opentherm gateway as described on http://tclcode.com/opentherm/.
It turned out the timing of my Remeha Celcia 20 Room Thermostat was not 100% according Opentherm specification, but due to the great support of the developer (hvxl on this forum) of the gateway this issue is solved. He also added the option to the gateway to give the status of all opentherm messages on request, which made it easy to integrate the gateway into Homeseer. All information about the gateway, including the schematic, part list, print layout , firmware, all possibilities and an optional monitoring program can be found on the mentioned website and is now also discussed on this forum, see here
Integration is done into Homseer with a lot of virtual devices and a script. I run this script every 1,5 minutes to update the status of my Central Heating system into Homeseer and I can control the setpoint for the room temperature via Homeseer as well.
The Devices (Devices not supported by my Boiler / Room Thermostat are hidden): The Events: My programming skills are not great, so the code is not the most efficient, but it is functional.
Updates:
20131103: Version 02l of the script (attached). Changes mainly to be used with the Alpha/Beta Firmware Versions of the Opentherm Gateway. Please use this new version 02l ONLY with Alpha/Beta Firmware 4.0a10 or higher and NOT with the standard Firmware (3.4):
adapted for OTGW firmware version 4.0a10; PR reply changed from only result to "PR: A=x"; reply PS=1 command striped new due to PS in Reply
adapted for OTGW firmware version 4.0a7; GW command changed from G to M, result G or M
adapted for OTGW firmware version 4.0a6; IT and PR=T command not needed & not supported anymore
FIXED: corrected opening serial port, port was not open before first message send
added 2nd TempTemperature, the first one with buttons (Thanks Again Rutger!), the second one with the Listbox;
changed "devices" section in .ini file to "Temperatures"
added default Day and Night temperatures in .ini file;
added SerialControlInScript parameter in .ini file to control open/close in script (value TRUE) or in e.g. startup script (value FALSE), so additional setup required!!.
included also the .gif files uses in the script. 20130101: Version 02g of the script (attached). Changes:
FIXED: Creation of OTGW devices is now also possible via TELNET connection. 20121209: Version 02e of the script. Changes:
NEW: added create virtual device for temporary temperature control as 7th OTGW Device with Listbox (thanks Rutger);
FIXED: Telnet control (moved communication to Function SendMessage);
several clean up actions in the script (e.g. repaces spaces by tabs); debugOTGW settings more consistent;
improved execution speed by replacing waitsec(1) with waitMS(200).
corrected hscontrol to work with temperatures in tenths of decrees and corrected PR=O response;
minor layout improvements PR presentations;
20111206: Version 02 of the script. This version can communicate with the OT Gateway via Telnet or Serial port.
New: Communication via COM port or Telnet (based on setting in config file;
New: additional device(s) for the OT gateway itself;
New: all devices will be created when the scripts runs for the first time;
Change: renamed config file to hssi_BLB_OT_monitor.ini (hssi stands for HomeSeerScrIpt);
Change: all parameters, house codes and settings in the config file, no hardcoding anymore in the script itself.
20111109: Version 01 of the script. This version is communicating with the OT Gateway via Telnet.