-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlovelace.yaml_example-2
79 lines (77 loc) · 3.45 KB
/
lovelace.yaml_example-2
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Simple/Basic example with history lines
type: vertical-stack
title: Wohnraumlüftung
cards:
- type: horizontal-stack
cards:
- type: vertical-stack
cards:
- type: markdown
content: |-
<center> <font color=#676766>
{%- set OperatingMode = states('sensor.ambientika_1_operating_mode') -%}
<b> {{ OperatingMode }} </b>
{%- if OperatingMode in ['Smart', 'Auto', 'Night', 'AwayHome', 'ManualHeatRecovery'] -%}
<img src="/local/ambientika_smart/Casetta_completa.svg" width=90% />
{%- elif OperatingMode in ['Expulsion'] -%}
<img src="/local/ambientika_smart/Casetta_espulsione.svg" width=90% />
{%- elif OperatingMode in ['MasterSlaveFlow'] -%}
<img src="/local/ambientika_smart/Casetta_flusso_master_slave.svg" width=90% />
{%- elif OperatingMode in ['SlaveMasterFlow'] -%}
<img src="/local/ambientika_smart/Casetta_flusso_slave_master.svg" width=90% />
{%- elif OperatingMode in ['Intake'] -%}
<img src="/local/ambientika_smart/Casetta_immissione.svg" width=90% />
{%- elif OperatingMode in ['TimedExpulsion'] -%}
<img src="/local/ambientika_smart/Casetta_orologio.svg" width=90% />
{%- elif OperatingMode in ['Surveillance', 'Off'] -%}
<img src="/local/ambientika_smart/Casetta_vuota.svg" width=90% />
{%- endif -%}
{%- set fan_speed = states('sensor.ambientika_1_fan_speed') -%}
{%- set fan_speed_icon = state_attr('sensor.ambientika_1_fan_speed', 'icon') -%}
{%- set humid_level = states('sensor.ambientika_1_humidity_level') -%}
{%- set humid_level_icon = state_attr('sensor.ambientika_1_humidity_level', 'icon') -%}
{%- if OperatingMode in ['Auto', 'Survillance'] -%}
Ziel: <ha-icon icon='{{humid_level_icon}}'></ha-icon> {{humid_level}}
{%- elif OperatingMode in ['ManualHeatRecovery'] -%}
<ha-icon icon='{{fan_speed_icon}}'></ha-icon> {{fan_speed}}
{%- endif -%}
</center> </font>
- type: vertical-stack
cards:
- graph: line
type: sensor
entity: sensor.ambientika_1_temperature_filtered
name: Temperatur
detail: 1
- graph: line
type: sensor
entity: sensor.ambientika_1_humidity_filtered
name: Luftfeuchtigkeit
detail: 1
- type: entities
entities:
- entity: switch.ambientika_1
name: Ambientika Kinderzimmer
- entity: input_select.ambientika_1_mode
name: Modus
- type: conditional
conditions:
- entity: input_select.ambientika_1_mode
state: ManualHeatRecovery
row:
entity: input_number.ambientika_1_fanspeed
name: Lüfter
- type: conditional
conditions:
- entity: input_select.ambientika_1_mode
state: Auto
row:
entity: input_number.ambientika_1_humiditylevel
name: Luftfeuchtigkeit
- type: conditional
conditions:
- entity: input_select.ambientika_1_mode
state: Surveillance
row:
entity: input_number.ambientika_1_humiditylevel
name: Luftfeuchtigkeit