ESPhome pulse counter

ESPhome pulse counter

time:
  - platform: homeassistant
    on_time:
      - seconds: 0
        minutes: 0
        hours: 0
        then:
          - sensor.integration.reset:  total_turns

sensor:
  - platform: pulse_counter
    pin: 12
    id: turns

  - platform: integration
    name: "Daily Turns"
    sensor: turns
    time_unit: min

Leave a Reply

Your email address will not be published.