In this topic we can build together upon a Home Assistant integration with the UMR2 regulator for your underfloor heating installation. These are products of the Dutch company called WTH. The UMR2 regulator together with the C820S1 thermostat provides bidirectional communication.
Hereby a first example in a .yaml file. Of course, names of thermostats, values and IP address has to be adjusted to your own situation.
When using an older bus-thermostat (D9386) or power stealing thermostat, you can only read the state (on / off).
The mode of the the UMR2 can be read back (and probably controlled) as well.
configuration.yaml
rest:
- resource: "http://<IP_ADDRESS>/get.json?f=$.status.*"
scan_interval: 10
sensor:
- name: "UMR2 Mode"
value_template: >
{% set umr = value_json.status.main.mode %}
{% if umr == 'heating' %}
Verwarmen
{% elif umr == 'cooling' %}
Koelen
{% elif umr == 'switchover' %}
Omschakelen
{% elif umr == 'on' %}
Aan
{% elif umr == 'off' %}
Uit
{% else %}
Niet Aangesloten
{% endif %}
unique_id: "0_UMR2_Mode"
icon: mdi:sun-snowflake-variant
- name: "Thermostaat Woonkamer"
value_template: "{% if value_json.status.process.thermostats[0].isOn == true %}Actief{% else %}Uit{% endif %}"
unique_id: "0_UMR2_Thermostat0_Demand"
icon: mdi:thermostat
# Control valves
shell_command:
set_umr2_openvalve: 'curl -X POST -d "{\"settings\": { \"outputs\": { \"valves\": [ {\"index\": {{ (valve - 1) }}, \"mode\": \"{% if state == true %}on{% else %}auto{% endif %}\"} ] } } }" {{ ipaddress }}/set_config.cgi'
Switch between Open and Auto valves with a shell command.
This can be used to force valves open when you have a heat-pump with smart-grid support and you don’t have a thermostat with two way communication (C820S1).
the C820S1 thermostat provides bidirectional communication.
Do you have a specification of the C820S1 communication protocol?
The datasheet only mentions the basic parameters: 9600bps - 8N1
Which is useless information without the data protocol.
I am currently still working on optimising the central heating installation in my home, trying to reduce gas consumption and be ready for a transition to a heat pump.
Bump. I reconfigured my setup to use a rest call to read out sensor. In that way there is no need to run a script and uyse a MQTT server. Details here: