-
Notifications
You must be signed in to change notification settings - Fork 0
/
immersion-monitor.yaml
58 lines (47 loc) · 937 Bytes
/
immersion-monitor.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
esphome:
name: immersion-monitor
esp8266:
board: esp8285
# Enable logging
logger:
baud_rate: 0
# Enable Home Assistant API
api:
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: "Immersion-Monitor"
password: !secret fallback_password
captive_portal:
uart:
rx_pin: RX
baud_rate: 4800
sensor:
- platform: cse7766
current:
name: "Immersion Current"
voltage:
name: "Immersion Voltage"
power:
name: "Immersion Power"
energy:
name: "Immersion Energy"
update_interval: 5s
binary_sensor:
- platform: gpio
id: bttn
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
on_press:
- switch.toggle: relay
switch:
- platform: gpio
name: "Immersion Monitor"
pin: GPIO12
id: relay