51 lines
815 B
YAML
51 lines
815 B
YAML
|
esphome:
|
||
|
name: chlorine-pump
|
||
|
project:
|
||
|
name: nbsgamesat.chlorine-pump
|
||
|
version: "0.2"
|
||
|
|
||
|
esp8266:
|
||
|
board: nodemcuv2
|
||
|
|
||
|
# Enable logging
|
||
|
logger:
|
||
|
|
||
|
ota:
|
||
|
password: !secret cp_password
|
||
|
|
||
|
external_components:
|
||
|
- source:
|
||
|
type: local
|
||
|
path: external_components/
|
||
|
components: [ analog_orp ]
|
||
|
|
||
|
api:
|
||
|
encryption:
|
||
|
key: !secret cp_key
|
||
|
|
||
|
wifi:
|
||
|
ssid: !secret wifi_ssid
|
||
|
password: !secret wifi_password
|
||
|
fast_connect: true
|
||
|
|
||
|
output:
|
||
|
- platform: gpio
|
||
|
pin: D3
|
||
|
id: pump_switch
|
||
|
|
||
|
binary_sensor:
|
||
|
- platform: gpio
|
||
|
id: pool_pump
|
||
|
pin: D2
|
||
|
|
||
|
sensor:
|
||
|
- platform: analog_orp
|
||
|
name: Chlorine
|
||
|
id: chlorine_sensor
|
||
|
pin: A0
|
||
|
zero_point: 640
|
||
|
inverted: true
|
||
|
update_interval: 2s
|
||
|
# GPIO A0 to acd
|
||
|
|
||
|
# Here is space for any display implementation that could possibliy be. Have fun OK
|