58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
|
|
||
|
# Loads default set of integrations. Do not remove.
|
||
|
default_config:
|
||
|
|
||
|
# Load frontend themes from the themes folder
|
||
|
frontend:
|
||
|
themes: !include_dir_merge_named themes
|
||
|
|
||
|
automation: !include automations.yaml
|
||
|
script: !include scripts.yaml
|
||
|
|
||
|
scene: !include scenes.yaml
|
||
|
|
||
|
modbus: !include weishaupt.yaml
|
||
|
|
||
|
template:
|
||
|
select:
|
||
|
- name: Systembetriebsart
|
||
|
unique_id: wpump_mode
|
||
|
state: "{{ states('sensor.wp_systembetriebsart_text') }}"
|
||
|
options: "{{ ['Automatik', 'Heizen', 'Kühlen', 'Sommer', 'Standby', '2. WEZ']}}"
|
||
|
select_option:
|
||
|
service: modbus.write_register
|
||
|
data:
|
||
|
hub: wpump
|
||
|
slave: 1
|
||
|
address: 40001
|
||
|
value: >
|
||
|
{% if option == "Automatik" %} 0
|
||
|
{% elif option == "Heizen" %} 1
|
||
|
{% elif option == "Kühlen" %} 2
|
||
|
{% elif option == "Sommer" %} 3
|
||
|
{% elif option == "Standby" %} 4
|
||
|
{% elif option == "2. WEZ" %} 5
|
||
|
{% endif %}
|
||
|
- name: Heizkreis Betriebsart
|
||
|
unique_id: wpump_hk_mode
|
||
|
state: "{{ states('sensor.wp_heizkreis_betriebsart_text') }}"
|
||
|
options: "{{ ['Automatik', 'Komfort', 'Normal', 'Absenk', 'Standby']}}"
|
||
|
select_option:
|
||
|
service: modbus.write_register
|
||
|
data:
|
||
|
hub: wpump
|
||
|
slave: 1
|
||
|
address: 41103
|
||
|
value: >
|
||
|
{% if option == "Automatik" %}
|
||
|
0
|
||
|
{% elif option == "Komfort" %}
|
||
|
1
|
||
|
{% elif option == "Normal" %}
|
||
|
2
|
||
|
{% elif option == "Absenk" %}
|
||
|
3
|
||
|
{% elif option == "Standby" %}
|
||
|
4
|
||
|
{% endif %}
|