-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathexample_mod_orp.yaml
55 lines (49 loc) · 1.03 KB
/
example_mod_orp.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
substitutions:
friendly_name: Microfire Mod-ORP
device_name: microfire-mod-orp
esphome:
name: $device_name
esp32:
board: esp32dev
framework:
type: arduino
logger:
api:
ota:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: $device_name
password: !secret wifi_failover
captive_portal:
# import the mod-orp component
external_components:
- source:
type: git
url: https://github.com/u-fire/ESPHomeComponents/
# https://esphome.io/components/i2c.html
i2c:
sda: 21
scl: 22
sensor:
- platform: mod_orp
id: orp
name: ORP
button:
- platform: template
id: orp_calibrate_low
name: ORP Calibrate Single 400 mV
icon: mdi:format-vertical-align-center
on_press:
lambda: |-
id(orp).calibrateSingle(400);
- platform: template
id: orp_calibrate_reset
name: ORP Calibrate Reset
icon: mdi:restore
on_press:
lambda: |-
id(orp).calibrateReset();
- platform: factory_reset
name: Restart with Factory Default Settings