-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
193 lines (177 loc) · 4.61 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
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
184
185
186
187
188
189
190
191
192
193
default_config:
homeassistant:
name: Home
latitude: !secret latitude
longitude: !secret longitude
elevation: 22
unit_system: metric
time_zone: Asia/Makassar
auth_providers:
- type: homeassistant
- type: trusted_networks
trusted_networks:
- 192.168.1.0/24
- fd00::/8
- 127.0.0.1
- ::1
allow_bypass_login: true
customize: !include customize.yaml
external_url: https://home.dmit.ro
internal_url: http://home.local:8123
http:
server_port: 8123
cors_allowed_origins:
- https://home.dmit.ro
- http://home.dmit.ro
- http://home.local
use_x_forwarded_for: true
trusted_proxies:
- 35.225.6.194
- 127.0.0.1
- ::1
tts:
- platform: google_translate
base_url: https://home.dmit.ro
google_assistant:
project_id: sadovnychyi
service_account: !include sadovnychyi-2453d143a173.json
report_state: true
group: !include groups.yaml
script: !include scripts.yaml
automation: !include automations.yaml
scene: !include scenes.yaml
recorder:
purge_keep_days: 365
lovelace:
mode: storage
dashboards:
lovelace-yaml:
mode: yaml
title: Climate
icon: mdi:coolant-temperature
show_in_sidebar: true
filename: lovelace.yaml
sensor:
- platform: template
sensors:
temperature_outside:
friendly_name: "Temperature Outside"
unit_of_measurement: '°C'
value_template: "{{ state_attr('weather.home', 'temperature') }}"
device_class: temperature
temperature:
friendly_name: "Temperature"
unit_of_measurement: '°C'
value_template: "{{ state_attr('fan.air_purifier_2', 'temperature') }}"
device_class: temperature
humidity_outside:
friendly_name: "Humidity Outside"
unit_of_measurement: '%'
value_template: "{{ state_attr('weather.home', 'humidity') }}"
device_class: humidity
humidity:
friendly_name: "Humidity"
unit_of_measurement: '%'
value_template: "{{ state_attr('fan.air_purifier_2', 'humidity') }}"
device_class: humidity
aqi:
friendly_name: "AQI"
unit_of_measurement: 'aqi'
value_template: "{{ state_attr('fan.air_purifier_2', 'aqi') }}"
target_temperature:
value_template: "{{ state_attr('climate.thermostat', 'temperature') }}"
device_class: temperature
friendly_name: Target Temperature
yeelight:
devices:
192.168.1.53:
# yeelink-light-strip2_miap7569 7C-49-EB-B6-75-69
name: Under Bed
model: strip1
192.168.1.52:
# yeelink-light-color2_miapbfe4 7C-49-EB-AC-BF-E4
name: Bedroom 2
model: color2
192.168.1.54:
# yeelink-light-color2_miap0cf8 04-CF-8C-97-0C-F8
name: Office 2
model: color2
192.168.1.55:
# yeelink-light-color2_miap1a87 04-CF-8C-97-1A-87
name: Office 1
model: color2
192.168.1.56:
# yeelink-light-color2_miap2573 04-CF-8C-97-25-73
name: Bedroom 1
model: color2
192.168.1.57:
# yeelink-light-color2_miap46c7 04-CF-8C-A5-46-C7
name: Cosmetic 2
model: color2
192.168.1.58:
# yeelink-light-color2_miap4ea4 04-CF-8C-A5-4E-A4
name: Cosmetic 1
model: color2
192.168.1.59:
# yeelink-light-color2_miap356d 04-CF-8C-A0-35-6D
name: Kitchen 2
model: color2
192.168.1.60:
# yeelink-light-color2_miap43a0 04-CF-8C-A5-43-A0
name: Kitchen 1
model: color2
xiaomi_aqara:
discovery_retry: 10
gateways:
- key: !secret gateway_key
# fan:
# - platform: xiaomi_miio
# name: Air Purifier
# host: 192.168.1.51
# token: !secret purifier_key
# model: zhimi.airpurifier.ma2
remote:
- platform: xiaomi_miio
name: Remote
host: 192.168.1.61
token: !secret ir_key
slot: 1
timeout: 30
hidden: true
commands: !include ir_commands.yaml
input_boolean:
ac:
name: "Air Conditioner"
initial: off
climate:
- platform: generic_thermostat
name: Thermostat
heater: input_boolean.ac
target_sensor: sensor.temperature
initial_hvac_mode: 'cool'
keep_alive:
hours: 1
min_cycle_duration: 300
min_temp: 17
max_temp: 30
ac_mode: true
target_temp: 27
away_temp: 30
cold_tolerance: 1.5
hot_tolerance: 0.5
precision: 0.5
geo_location:
- platform: usgs_earthquakes_feed
feed_type: 'past_month_m25_earthquakes'
radius: 150
minimum_magnitude: 2.5
ios:
actions:
- name: Toggle lights
background_color: "#000000"
label:
text: "Toggle lights"
color: "#ffffff"
icon:
icon: lightbulb
color: "#ffffff"