Skip to content

Instantly share code, notes, and snippets.

@jeanfbrito
Created April 30, 2020 13:53
Show Gist options
  • Save jeanfbrito/3cd6d755918f78ede231fd6365abaf8f to your computer and use it in GitHub Desktop.
Save jeanfbrito/3cd6d755918f78ede231fd6365abaf8f to your computer and use it in GitHub Desktop.
My watertank ESPHome configuration
esphome:
name: watertank
platform: ESP8266
board: nodemcuv2
wifi:
ssid: "greenhouse"
password: "senhasupersecreta"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Watertank Fallback Hotspot"
password: "DXFtuAJqkl9L"
reboot_timeout: 10min
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
password: "cb6wist3"
ota:
password: "cb6wist3"
web_server:
port: 80
dallas:
- pin: D7
update_interval: 60s
sensor:
- platform: ultrasonic
trigger_pin: D1
echo_pin: D2
name: "Water Tank Level"
update_interval: 10s
- platform: dallas
address: 0x8001145EABC47028
name: "Water Tank Temperature"
binary_sensor:
- platform: gpio
pin:
number: D6
mode: INPUT_PULLUP
inverted: True
name: "Water Tank High Level"
filters:
- delayed_on: 1s
- platform: gpio
pin:
number: D5
mode: INPUT_PULLUP
name: "Water Tank Low Level"
filters:
- delayed_on: 1s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment