Advertisement
ptr727

Untitled

Aug 26th, 2023
1,486
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.64 KB | None | 0 0
  1. sensor:
  2.   - platform: pulse_counter
  3.     pin:
  4.       number: GPIO32
  5.       mode:
  6.         input: true
  7.         pullup: true
  8.     update_interval: 60s
  9.     use_pcnt: false
  10.     count_mode:
  11.       rising_edge: DISABLE
  12.       falling_edge: INCREMENT
  13.     internal_filter: 100ms
  14.     unit_of_measurement: 'gal/min'
  15.     name: ${device_name}_water_meter
  16.     icon: 'mdi:water'
  17.     filters:
  18.       - multiply: 10
  19.     total:
  20.       name: ${device_name}_water_meter_total
  21.       icon: 'mdi:water'
  22.       device_class: 'water'
  23.       state_class: 'total_increasing'
  24.       id: water_total
  25.       unit_of_measurement: 'gal'
  26.       filters:
  27.         - multiply: 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement