-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclock_common.yaml
82 lines (69 loc) · 1.31 KB
/
clock_common.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
esphome:
name: ${node_name}
platform: ESP8266
board: d1_mini
build_path: build/${node_name}
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
domain: .home
# Enable logging
logger:
logs:
sensor: INFO
adc: INFO
api:
reboot_timeout: 0s
ota:
safe_mode: true
password: !secret ota_password
time:
- platform: sntp
id: homeassistant_time
# servers: 0.ua.pool.ntp.org
servers: 192.168.88.1
timezone: Europe/Kiev
#uart:
# rx_pin: GPIO3
# tx_pin: GPIO1
# baud_rate: 9600
i2c:
scan: true
scl: GPIO4
sda: GPIO5
dallas:
- pin: D6
sensor:
- platform: adc
pin: A0
name: "Brightness"
internal: true
id: brightness_sensor
update_interval: 0.2s
filters:
calibrate_linear:
- 0.0 -> 7
- 1.0 -> 0
#
# - platform: mhz19
# co2:
# name: "CO2 value ppm"
# temperature:
# name: "MH-Z19 temperature"
# update_interval: 60s
# automatic_baseline_calibration: false
- platform: htu21d
temperature:
name: "Temperature"
humidity:
name: "Humidity"
update_interval: 60s
display:
platform: tm1637
id: display_7seg
clk_pin: D5
dio_pin: D6
update_interval: 0.2s
lambda: |-
it.strftime("%H.%M", id(homeassistant_time).now());
it.set_intensity(round(id(brightness_sensor).state));