-
Notifications
You must be signed in to change notification settings - Fork 1
/
a_master_mini_d1.yaml
96 lines (75 loc) · 1.72 KB
/
a_master_mini_d1.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
#------------------------------
#-- a_master_mini_d1.yaml
#-- Petit code générique minimaliste pour des projets à base d'esp mini d1
#-- blablabla
#-- location: xxx
#-- zf230820.1423
#--
# sources:
# ...
esphome:
name: a_master_mini_d1
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: "a_master_mini_d1 Fallback"
password: !secret ap_wifi_password
captive_portal:
# Enable logging
logger:
level: VERBOSE
# Enable Home Assistant API
api:
encryption:
key: !secret api_encryption_key
ota:
password: !secret ota_password
# WEB Server
web_server:
port: 80
# Définition des Switch's
switch:
- platform: gpio
name: "a_master_mini_d1 LED"
inverted: True
id: led
pin: D4
- platform: restart
name: "a_master_mini_d1 Restart"
# Définition des Sensors
sensor:
- platform: wifi_signal
name: "a_master_mini_d1 Signal Wi-Fi"
update_interval: 60s
- platform: uptime
name: "a_master_mini_d1 uptime"
update_interval: 60s
# Définition des Sensors text
text_sensor:
- platform: version
name: "a_master_mini_d1 Version 1150"
- platform: wifi_info
ip_address:
name: a_master_mini_d1 IP Address
id: wifi_ip
ssid:
name: a_master_mini_d1 Connected SSID
id: wifi_ssid
# Définition des inputs numbers
number:
- platform: template
name: "a_master_mini_d1 consigne alarme low"
restore_value: true
optimistic: true
mode: box
min_value: 0.0
max_value: 0.8
step: 0.01
initial_value: 0.4
unit_of_measurement: "V"
id: a_master_mini_d1_consigne_alarme_low