-
Notifications
You must be signed in to change notification settings - Fork 0
/
espatrea.yaml
189 lines (173 loc) · 4.98 KB
/
espatrea.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
esphome:
name: espatrea
includes: espatrea.h
esp8266:
board: d1_mini
# Enable logging
logger:
hardware_uart: UART1
# Enable Home Assistant API
api:
encryption:
key: "xxx"
ota:
- platform: esphome
password: "yyy"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "ESPAtrea Fallback Hotspot"
password: "DB0xxxyhjsK"
manual_ip:
static_ip: 192.168.3.204
gateway: 192.168.3.1
subnet: 255.255.255.0
power_save_mode: none
captive_portal:
uart:
id: uart_bus
rx_pin: GPIO3
tx_pin: GPIO1
rx_buffer_size: 20
baud_rate: 300
text_sensor:
- platform: custom
lambda: |-
auto uart = new AtreaUart(id(uart_bus));
auto atrea = new AtreaTextSensor();
App.register_component(uart);
App.register_component(atrea);
return {atrea->cp07_rezim, atrea->cp07_intenzita, atrea->cp07_rizeni_teploty, atrea->atrea_rezim, atrea->atrea_intenzita, atrea->atrea_chyby};
text_sensors:
- name: "CP07 režim VZT"
- name: "CP07 intenzita"
- name: "CP07 nastavení teplot"
- name: "Atrea režim VZT"
- name: "Atrea intenzita"
- name: "Atrea chyby"
sensor:
- platform: custom
lambda: |-
auto atrea = new AtreaSensor();
App.register_component(atrea);
return {atrea->atrea_teplota_TE, atrea->atrea_teplota_TA, atrea->atrea_teplota_TI2, atrea->atrea_cirkulace};
sensors:
- name: "Atrea venkovní teplota"
unit_of_measurement: "°C"
- name: "Atrea teplota výměníku"
unit_of_measurement: "°C"
- name: "Atrea teplota za rekuperátorem"
unit_of_measurement: "°C"
- name: "Atrea přisávání cirkulace"
unit_of_measurement: "%"
- platform: homeassistant
id: esp_teplota_termostatu
entity_id: sensor.teplota_termostatu
unit_of_measurement: "°C"
internal: true
binary_sensor:
- platform: custom
lambda: |-
auto atrea = new AtreaBinarySensor();
App.register_component(atrea);
return {atrea->cp07_bypass, atrea->atrea_topi, atrea->atrea_chladi, atrea->atrea_narazove_vetrani, atrea->atrea_D1, atrea->atrea_D2, atrea->atrea_D3, atrea->atrea_D4, atrea->atrea_klapka_SR, atrea->atrea_bypass_SB, atrea->atrea_YV, atrea->atrea_K, atrea->atrea_OC1, atrea->esp_aktivni_ovladac, atrea->esp_topna_sezona, atrea->esp_bypass};
binary_sensors:
- name: "CP07 bypass"
- name: "Atrea topení"
- name: "Atrea chlazení"
- name: "Atrea nárazové větrání"
- name: "Atrea IO vstup D1"
- name: "Atrea IO vstup D2"
- name: "Atrea IO vstup D3"
- name: "Atrea IO vstup D4"
- name: "Atrea IO klapka sání SR"
- name: "Atrea IO bypass SB"
- name: "Atrea IO TČ topení YV"
- name: "Atrea IO kotel K"
- name: "Atrea IO TČ chlazení OC1"
- name: "ESP aktivní ovladač"
- name: "ESP topná sezóna"
- name: "ESP bypass"
select:
- platform: template
name: "ESP režim VZT"
id: esp_rezim_vzt
optimistic: true
restore_value: true
options:
- "Rovnotlaké větrání"
- "Cirkulační větrání"
- "Cirkulace závislá"
- "Cirkulace"
- "Přetlakové větrání"
initial_option: "Cirkulace závislá"
- platform: template
name: "ESP intenzita"
id: esp_intenzita
optimistic: true
restore_value: true
options:
- Vypnuto
- Střední
- Maximální
initial_option: "Střední"
switch:
- platform: template
name: "ESP topení"
id: esp_topeni
optimistic: true
turn_on_action:
- switch.turn_off: esp_chlazeni
- platform: template
name: "ESP chlazení"
id: esp_chlazeni
optimistic: true
turn_on_action:
- switch.turn_off: esp_topeni
climate:
- platform: thermostat
name: "Termostat domu"
id: termostat_domu
sensor: esp_teplota_termostatu
min_cooling_off_time: 30s
min_cooling_run_time: 30s
min_heating_off_time: 30s
min_heating_run_time: 30s
min_idle_time: 30s
visual:
min_temperature: 16
max_temperature: 28
temperature_step:
target_temperature: 0.5
current_temperature: 0.1
heat_deadband: 0.25
heat_overrun: 0.25
cool_deadband: 0.2
cool_overrun: 0.2
cool_action:
- switch.turn_on: esp_chlazeni
heat_action:
- switch.turn_on: esp_topeni
idle_action:
- switch.turn_off: esp_chlazeni
- switch.turn_off: esp_topeni
heat_mode:
then:
- switch.turn_off: esp_chlazeni
cool_mode:
then:
- switch.turn_off: esp_topeni
off_mode:
then:
- switch.turn_off: esp_chlazeni
- switch.turn_off: esp_topeni
default_preset: Doma
preset:
- name: Doma
default_target_temperature_low: 21.5 °C
default_target_temperature_high: 24 °C
- name: Pryč
default_target_temperature_low: 18 °C
default_target_temperature_high: 25 °C