-
Notifications
You must be signed in to change notification settings - Fork 1
/
th6.yaml
119 lines (93 loc) · 1.99 KB
/
th6.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
#------------------------------
#-- th6.yaml
#-- Petit code mini manilste pour mesurer la température et l'humidité
#-- Lit la tmpérature et l'humidité du capteur HTU21D
#-- location: cave vers interrupteur lumière
#-- zf210720.1023, zf221106.1252, zf240322.1151
#--
# sources:
# https://esphome.io/components/sensor/htu21d.html
esphome:
name: th6
esp8266:
board: d1_mini
# Configuration WIFI
wifi:
ssid: !secret wifi_ssid_apzuzu8
password: !secret wifi_pass_apzuzu8
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "th6 Fallback"
password: !secret ap_wifi_password
captive_portal:
# Enable logging
logger:
level: DEBUG
logs:
logger: INFO
adc: INFO
captive_portal: INFO
deep_sleep: INFO
htu21d: INFO
i2c: INFO
ota: INFO
restart: INFO
sensor: INFO
switch: INFO
switch.gpio: INFO
uptime.sensor: INFO
web_server: INFO
wifi_signal.sensor: INFO
mqtt: INFO
mqtt.component: INFO
mqtt.client: INFO
mqtt.switch: INFO
mqtt.sensor: INFO
# Enable Home Assistant API
api:
# password: !secret api_password
encryption:
key: !secret api_encryption_key
ota:
password: !secret ota_password
# WEB Server
web_server:
port: 80
# I2C conf
i2c:
sda: D2
scl: D1
# Définition des Switch's
switch:
- platform: gpio
name: "th6 LED"
inverted: True
id: led
pin: D4
- platform: restart
name: "th6 Restart"
# Définition des Sensors
sensor:
- platform: wifi_signal
name: "th6 Signal Wi-Fi"
update_interval: 60s
- platform: uptime
name: "th6 uptime"
update_interval: 60s
- platform: htu21d
temperature:
name: "th6 Température"
humidity:
name: "th6 Humidité"
update_interval: 2s
# Définition des Sensors text
text_sensor:
- platform: version
name: "th6 Version 1518"
- platform: wifi_info
ip_address:
name: th6 IP Address
id: wifi_ip
ssid:
name: th6 Connected SSID
id: wifi_ssid