-
Notifications
You must be signed in to change notification settings - Fork 0
/
hotwater_device.yaml
31 lines (31 loc) · 1.22 KB
/
hotwater_device.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
mqtt:
- water_heater:
name: "Vaillant"
unique_id: "vr720-hotwater"
device:
manufacturer: "Vaillant"
model: "Ctlv2-Hotwater"
name: "Ctlv2-Hotwater"
suggested_area: "Heating"
identifiers:
- !secret hotwater_device_serial
min_temp: 35
max_temp: 65
current_temperature_topic: "ebusd/ctlv2/HwcStorageTemp"
current_temperature_template: "{{ value_json['tempv']['value'] }}"
temperature_command_topic: "ebusd/ctlv2/HwcTempDesired/set"
temperature_state_topic: "ebusd/ctlv2/HwcTempDesired"
temperature_state_template: "{{ value_json['tempv']['value'] }}"
modes:
- "off"
- "auto"
- "heat"
mode_command_topic: "ebusd/ctlv2/HwcOpMode/set"
mode_command_template: >-
{% set values = { 'auto':'time controlled', 'heat':'manual', 'off':'off'} %}
{{ values[value] if value in values.keys() else 'Time Controlled' }}
mode_state_topic: "ebusd/ctlv2/HwcOpMode"
mode_state_template: >-
{% set values = { 'time controlled':'auto', 'manual':'heat', 'off':'off'} %}
{% set val = value_json['opmode2']['value'] %}
{{ values[val] if val in values.keys() else 'auto' }}