forked from barrenechea/esphome-config-files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
atlas-sensor.yaml
77 lines (66 loc) · 1.38 KB
/
atlas-sensor.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
substitutions:
devicename: "Atlas Sensor"
esphome:
name: atlas-sensor
esp8266:
board: huzzah
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "${devicename} Fallback Hotspot"
password: "ih92bjvtYt6r"
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: !secret api_encryption_key
ota:
password: !secret ota_password
switch:
- platform: restart
name: "${devicename} Restart"
- platform: gpio
internal: True
pin: GPIO14
name: "${devicename} pH On"
inverted: no
- platform: gpio
internal: True
pin: GPIO15
name: "${devicename} RTD Temp On"
inverted: yes
- platform: gpio
internal: True
pin: GPIO12
name: "${devicename} EC On"
inverted: no
i2c:
sda: GPIO04
scl: GPIO05
scan: True
sensor:
- platform: ezo
id: ph_ezo
name: "${devicename} pH"
address: 99
accuracy_decimals: 2
unit_of_measurement: "pH"
update_interval: 10s
- platform: ezo
id: ec_ezo
name: "${devicename} EC"
address: 100
accuracy_decimals: 0
unit_of_measurement: "PPM"
update_interval: 10s
- platform: ezo
id: rtd_ezo
name: "${devicename} RTD Temp"
address: 102
accuracy_decimals: 2
unit_of_measurement: "°C"
update_interval: 60s