-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfiguration.yaml
More file actions
183 lines (171 loc) · 7.17 KB
/
configuration.yaml
File metadata and controls
183 lines (171 loc) · 7.17 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
homeassistant:
packages: !include_dir_named packages
################################################################################
frontend:
themes: !include_dir_merge_named themes
# Includes #####################################################################
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
################################################################################
default_config: # Configure a default setup of Home Assistant (frontend, api, etc)
wake_on_lan: # Further configuration in the corresponding package yaml files
# https://www.home-assistant.io/integrations/weather.template/
# https://www.home-assistant.io/integrations/openweathermap/
weather:
- platform: 'template'
name: "Wetterstation"
condition_template: "{{ states('weather.home') }}"
forecast_template: "{{ state_attr('weather.home_hourly', 'forecast') }}"
humidity_template: "{{ state_attr('weather.home', 'humidity') | float }}"
ozone_template: "{{ state_attr('weather.home', 'ozone') | float }}"
pressure_template: "{{ state_attr('weather.home', 'pressure') | float }}"
temperature_template: "{{ state_attr('weather.home', 'temperature') | float }}"
visibility_template: "{{ state_attr('weather.home', 'visibility') | float }}"
wind_bearing_template: "{{ state_attr('weather.home', 'wind_bearing') | float }}"
wind_speed_template: "{{ state_attr('weather.home', 'wind_speed') | float }}"
binary_sensor:
- platform: 'workday'
country: 'DE'
province: 'BY'
sensor:
- platform: 'time_date'
display_options:
- 'time'
- 'date'
- 'date_time'
- 'time_date'
switch:
- platform: flux # https://www.home-assistant.io/integrations/flux/
lights:
- light.bedroom_light
- light.kitchen_mood_light
- light.livingroom_floodlight
- light.livingroom_tv_light
name: Fluxer
start_time: "7:00"
stop_time: "1:00"
template:
- binary_sensor:
- name: "Basement Washer on"
unique_id: "basement_washer_on"
delay_off:
hours: 2
state: >
{% if states.sensor.basement_washer_power_consumption.state | float > 10 %}
On
{% else %}
Off
{% endif %}
- name: "Kitchen Dishwasher on"
unique_id: "kitchen_dishwasher_on"
state: >
{% if states.sensor.kitchen_dishwasher_power_consumption.state | float > 2 %}
On
{% else %}
Off
{% endif %}
- name: "Makita Akku charging"
unique_id: "makita_akku_charging"
state: >
{% if states.sensor.storeroom_switch_power_consumption.state | float > 1 %}
On
{% else %}
Off
{% endif %}
- sensor:
- name: "Electricity Price"
unique_id: "electricity_price"
# 2022-06-07
state: "0.309"
#state: "0.409" # From 01.01.2023
unit_of_measurement: "€/kWh"
- name: "Fritzbox Callmonitor Phonebook"
unique_id: "fritzbox_callmonitor_phonebook"
state: >-
{%- if is_state("sensor.fritzbox_callmonitor", "idle") %}
Frei
{% elif is_state("sensor.fritzbox_callmonitor", "dialing") %}
Wähle '{{ states.sensor.fritzbox_callmonitor.attributes.to_name }} ({{ states.sensor.fritzbox_callmonitor.attributes.to }})'
{% elif is_state("sensor.fritzbox_callmonitor", "ringing") %}
Eingehendes Gespräch von '{{ states.sensor.fritzbox_callmonitor.attributes.from_name }} ({{ states.sensor.fritzbox_callmonitor.attributes.from }})'
{% else %}
Gespräch mit '{{ states.sensor.fritzbox_callmonitor.attributes.with_name }} ({{ states.sensor.fritzbox_callmonitor.attributes.with }})'
{%- endif %}
icon: >-
{% if is_state("sensor.fritzbox_callmonitor", "idle") %}
mdi:phone-classic
{% elif is_state("sensor.fritzbox_callmonitor", "dialing") %}
mdi:phone-outgoing
{% elif is_state("sensor.fritzbox_callmonitor", "ringing") %}
mdi:phone-incoming
{% else %}
mdi:phone-in-talk
{% endif %}
- name: "Kitchen Fridge States"
unique_id: "kitchen_fridge_states"
state: >
{% if states.sensor.kitchen_fridge_power_consumption.state | float > 75 %}
Offen
{% elif states.sensor.kitchen_fridge_power_consumption.state | float > 58 %}
Kühlt
{% elif states.sensor.kitchen_fridge_power_consumption.state | float > 1 %}
Offen
{% else %}
Off
{% endif %}
- name: "Kitchen Cookerhood Stages"
unique_id: "kitchen_cookerhood_stages"
# Between level 7 and 9, the difference in power consumption is so small that a purposeful gradation is not possible.
state: >
{% if states.sensor.kitchen_cookerhood_power_consumption.state | float > 20 %}
Stufe 7+
{% elif states.sensor.kitchen_cookerhood_power_consumption.state | float > 11 %}
Stufe 6
{% elif states.sensor.kitchen_cookerhood_power_consumption.state | float > 8.9 %}
Stufe 5
{% elif states.sensor.kitchen_cookerhood_power_consumption.state | float > 7 %}
Stufe 4
{% elif states.sensor.kitchen_cookerhood_power_consumption.state | float > 5.7 %}
Stufe 3
{% elif states.sensor.kitchen_cookerhood_power_consumption.state | float > 5 %}
Stufe 2
{% elif states.sensor.kitchen_cookerhood_power_consumption.state | float > 4 %}
Stufe 1
{% elif states.sensor.kitchen_cookerhood_power_consumption.state | float > 1 %}
Licht
{% elif states.sensor.kitchen_cookerhood_power_consumption.state | float > 0 %}
Standby
{% else %}
Off
{% endif %}
- name: "Livingroom Fan Stages"
unique_id: "livingroom_fan_stages"
state: >
{% if states.sensor.livingroom_fan_power_consumption.state | float > 53 %}
Stufe 3 + Licht
{% elif states.sensor.livingroom_fan_power_consumption.state | float > 50 %}
Stufe 2 + Licht
{% elif states.sensor.livingroom_fan_power_consumption.state | float > 42 %}
Stufe 1 + Licht
{% elif states.sensor.livingroom_fan_power_consumption.state | float > 37 %}
Stufe 3
{% elif states.sensor.livingroom_fan_power_consumption.state | float > 33 %}
Stufe 2
{% elif states.sensor.livingroom_fan_power_consumption.state | float > 18 %}
Stufe 1
{% elif states.sensor.livingroom_fan_power_consumption.state | float > 1 %}
Licht
{% else %}
Off
{% endif %}
- name: "Livingroom PC on"
unique_id: "livingroom_pc_on"
state: >
{% if states.sensor.livingroom_pc_power_consumption.state | float > 2 %}
On
{% elif states.sensor.livingroom_pc_power_consumption.state | float > 0.5 %}
Standby
{% else %}
Off
{% endif %}