-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
35 lines (34 loc) · 1.36 KB
/
configuration.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
32
33
34
35
sensor:
- platform: template
sensors:
# Tryb ogrzwania
salon_tryb_ogrzewania:
friendly_name: Tryb ogrzewania salon
value_template: >-
{% if is_state_attr('climate.salon', 'preset_mode', 'none') -%}
{% if is_state('climate.salon', 'heat') -%}
{% if is_state_attr('climate.salon', 'hvac_action', 'heating') -%}
Heating
{%- elif is_state_attr('climate.salon', 'hvac_action', 'idle') -%}
Idle
{%- endif %}
{%- elif is_state('climate.salon', 'off') -%}
Off
{%- endif %}
{%- elif is_state_attr('climate.salon', 'preset_mode', 'away') -%}
Away
{%- endif %}
icon_template: >-
{% if is_state_attr('climate.salon', 'preset_mode', 'none') -%}
{% if is_state('climate.salon', 'heat') -%}
{% if is_state_attr('climate.salon', 'hvac_action', 'heating') -%}
mdi:radiator
{%- elif is_state_attr('climate.salon', 'hvac_action', 'idle') -%}
mdi:radiator-disabled
{%- endif %}
{%- elif is_state('climate.salon', 'off') -%}
mdi:power
{%- endif %}
{%- elif is_state_attr('climate.salon', 'preset_mode', 'away') -%}
mdi:exit-run
{%- endif %}