forked from dashdrum/esphome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworkshop.yaml
60 lines (47 loc) · 1.07 KB
/
workshop.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
substitutions:
device_name: workshop
upper_device_name: Workshop
ip_address: 192.168.37.210
esphome:
name: $device_name
platform: ESP8266
board: d1_mini
wifi: !include include/wifi_iot_manual.yaml
captive_portal:
# Enable logging
logger:
level: DEBUG
# Enable Home Assistant API
# api:
ota:
web_server:
port: 80
mqtt: !include include/mqtt_deep_sleep.yaml
sensor:
- platform: dht
pin:
number: D2
model: DHT22
temperature:
name: $upper_device_name Temperature
device_class: temperature
humidity:
name: $upper_device_name Humidity
update_interval: 60s
- platform: adc
pin: A0
filters:
- multiply: 100
unit_of_measurement: "%"
name: $upper_device_name Battery
device_class: battery
update_interval: 60s
expire_after: 60min
state_topic: $device_name/battery/state
- platform: wifi_signal
name: $upper_device_name WiFi Signal
update_interval: 60s
button:
- platform: restart
name: $upper_device_name Restart
deep_sleep: !include include/deep_sleep_30.yaml