-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
61 lines (50 loc) · 1007 Bytes
/
config.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
substitutions:
name: co2sensor
frc: enabled
esphome:
name: $name
esp8266:
board: d1_mini
logger:
ota:
- platform: esphome
password: !secret ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
web_server:
ota: false
local: true
prometheus:
i2c:
sensor:
- platform: scd4x
co2:
name: CO2
temperature:
name: Temperature
humidity:
name: Humidity
measurement_mode: low_power_periodic
id: my_scd4x
button:
- platform: template
name: FRC
on_press:
- if:
condition:
lambda: 'return strcmp("$frc", "enabled") == 0;'
then:
- scd4x.perform_forced_calibration:
value: !lambda 'return id(frc_reference).state;'
id: my_scd4x
else:
- logger.log: 'FRC is disabled.'
number:
- platform: template
name: FRC Reference
min_value: 400
max_value: 800
step: 1
optimistic: true
id: frc_reference