-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
utility-waterheater.yaml
40 lines (35 loc) · 951 Bytes
/
utility-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
substitutions:
device_name: "utility-waterheater"
friendly_name: "Utility - Water Heater"
comment: "${friendly_name} (Sonoff Basic R2 Dry Contact Mod)"
default_update_interval: 60s
<<: !include boards/esp01_1m.yaml
<<: !include components/api.yaml
<<: !include components/captive_portal.yaml
<<: !include components/logger.yaml
<<: !include components/ota/esphome.yaml
<<: !include components/safe_mode.yaml
<<: !include components/web_server.yaml
<<: !include components/wifi.yaml
binary_sensor:
- <<: !include components/binary_sensor/status.yaml
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
id: button_id
internal: True
on_press:
- switch.toggle: switch_id
sensor:
- <<: !include components/sensor/wifi_signal.yaml
status_led:
pin:
number: GPIO13
inverted: yes
switch:
- platform: gpio
pin: GPIO12
id: switch_id
name: ${device_name}_switch