espHome-NBS-files/chlorPump.yaml

57 lines
985 B
YAML
Raw Normal View History

2024-05-10 10:37:19 +00:00
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
2024-05-11 08:54:14 +00:00
update_interval: 1s
average:
mesurements: 5
send_state_every: 10
on_completely_new_value:
- lambda: |-
ESP_LOGD("WHAT", "Just a test %.1f", value);
2024-05-10 10:37:19 +00:00
# GPIO A0 to acd
# Here is space for any display implementation that could possibliy be. Have fun OK