Skip to content

Instantly share code, notes, and snippets.

@CODeRUS
Created July 7, 2020 14:01
Show Gist options
  • Select an option

  • Save CODeRUS/23c24f6ee3a2ab4353a231a5eee0bff9 to your computer and use it in GitHub Desktop.

Select an option

Save CODeRUS/23c24f6ee3a2ab4353a231a5eee0bff9 to your computer and use it in GitHub Desktop.

Revisions

  1. CODeRUS created this gist Jul 7, 2020.
    51 changes: 51 additions & 0 deletions water_consumption_kitchen.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,51 @@
    esphome:
    name: water_consumption_kitchen
    platform: ESP8266
    board: nodemcuv2
    platformio_options:
    platform: "[email protected]"

    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"