-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsump-pump.yaml
38 lines (35 loc) · 877 Bytes
/
sump-pump.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
substitutions:
name: sump-pump
packages:
esphome.esp_web_tools_example: github://esphome/example-configs/esp-web-tools/esp32.yaml@v1
esphome:
name_add_mac_suffix: false
includes:
- sump.h
sensor:
- platform: custom
lambda: |-
auto my_sensor = new ProximitySensor(id(uart_bus));
App.register_component(my_sensor);
return {my_sensor};
sensors:
name: "Sump Pump Proximity Sensor"
unit_of_measurement: mm
id: sump_pump_proximity
accuracy_decimals: 0
uart:
id: uart_bus
tx_pin: GPIO17
rx_pin: GPIO16
baud_rate: 9600
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
domain: .proximity
#power_save_mode: none
fast_connect: true
manual_ip:
static_ip: !secret sump_pump_ip
gateway: !secret wifi_gateway
dns1: !secret wifi_dns
subnet: !secret wifi_subnet