-
Notifications
You must be signed in to change notification settings - Fork 0
/
waterheater.yaml
62 lines (51 loc) · 1.4 KB
/
waterheater.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
substitutions:
name: waterheater
io_username: !secret adafruit_io_username
esphome:
name: ${name}
esp8266:
board: d1_mini
# Enable logging
logger:
level: VERBOSE
api:
password: !secret local_api_password
# Disable automatic reboot every 15 minutes if there is no native API connection;
# comment out next line if using with Home Assistant and the native ESPHome API.
reboot_timeout: 0s
ota:
password: !secret ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: '${name} Fallback Hotspot'
password: !secret hotspot_password
captive_portal:
mqtt:
broker: 'io.adafruit.com'
username: ${io_username}
password: !secret adafruit_io_key
discovery: false
topic_prefix: '${io_username}/feeds'
birth_message:
topic: '${io_username}/feeds/${name}-status'
payload: Online
will_message:
topic: '${io_username}/feeds/${name}-status'
payload: Offline-will
shutdown_message:
topic: '${io_username}/feeds/${name}-status'
payload: Offline-clean
log_topic:
dallas:
pin: D5
update_interval: 30s
sensor:
- platform: dallas
name: Hot water
# With multiple sensors connected to the same pin, better to use address instead of index:
# https://esphome.io/components/sensor/dallas.html
index: 0
state_topic: ${io_username}/feeds/hot_water