Skip to content

Instantly share code, notes, and snippets.

@CODeRUS
Created July 7, 2020 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CODeRUS/23c24f6ee3a2ab4353a231a5eee0bff9 to your computer and use it in GitHub Desktop.
Save CODeRUS/23c24f6ee3a2ab4353a231a5eee0bff9 to your computer and use it in GitHub Desktop.
ESPHome water consumption kitchen
esphome:
name: water_consumption_kitchen
platform: ESP8266
board: nodemcuv2
platformio_options:
platform: "espressif8266@2.5.3"
wifi:
ssid: !secret ap_name
password: !secret ap_password
fast_connect: true
logger:
api:
password: !secret api_password
ota:
password: !secret ota_password
binary_sensor:
- platform: status
name: "water_consumption_kitchen_status"
- platform: gpio
name: "water_consumption_kitchen_cold"
pin:
number: D5
mode: INPUT_PULLUP
filters:
- delayed_on: 100ms
- delayed_off: 100ms
- platform: gpio
name: "water_consumption_kitchen_hot"
pin:
number: D6
mode: INPUT_PULLUP
filters:
- delayed_on: 100ms
- delayed_off: 100ms
- platform: gpio
name: "water_consumption_kitchen_clean"
pin:
number: D7
mode: INPUT_PULLUP
filters:
- delayed_on: 100ms
- delayed_off: 100ms
sensor:
- platform: uptime
name: "water_consumption_kitchen_uptime"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment