57 lines
985 B
YAML
57 lines
985 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: 1s
|
|
average:
|
|
mesurements: 5
|
|
send_state_every: 10
|
|
on_completely_new_value:
|
|
- lambda: |-
|
|
ESP_LOGD("WHAT", "Just a test %.1f", value);
|
|
# GPIO A0 to acd
|
|
|
|
# Here is space for any display implementation that could possibliy be. Have fun OK |