-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathatlas-sensor.yaml
57 lines (52 loc) · 1.09 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
substitutions:
id: atlas-sensor
device_name: Atlas Sensor
esphome:
name: $id
friendly_name: $device_name
<<: !include common/board/huzzah-esp8266.yaml
<<: !include common/common-hotspot.yaml
switch:
- platform: restart
name: "$device_name Restart"
- platform: gpio
internal: True
pin: GPIO14
name: "$device_name pH On"
inverted: no
- platform: gpio
internal: True
pin: GPIO15
name: "$device_name RTD Temp On"
inverted: yes
- platform: gpio
internal: True
pin: GPIO12
name: "$device_name EC On"
inverted: no
i2c:
sda: GPIO04
scl: GPIO05
scan: True
sensor:
- platform: ezo
id: ph_ezo
name: "$device_name pH"
address: 99
accuracy_decimals: 2
unit_of_measurement: "pH"
update_interval: 10s
- platform: ezo
id: ec_ezo
name: "$device_name EC"
address: 100
accuracy_decimals: 0
unit_of_measurement: "PPM"
update_interval: 10s
- platform: ezo
id: rtd_ezo
name: "$device_name RTD Temp"
address: 102
accuracy_decimals: 2
unit_of_measurement: "°C"
update_interval: 60s