Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sensor:
- - platform: pulse_counter
- pin:
- number: GPIO32
- mode:
- input: true
- pullup: true
- update_interval: 60s
- use_pcnt: false
- count_mode:
- rising_edge: DISABLE
- falling_edge: INCREMENT
- internal_filter: 100ms
- unit_of_measurement: 'gal/min'
- name: ${device_name}_water_meter
- icon: 'mdi:water'
- filters:
- - multiply: 10
- total:
- name: ${device_name}_water_meter_total
- icon: 'mdi:water'
- device_class: 'water'
- state_class: 'total_increasing'
- id: water_total
- unit_of_measurement: 'gal'
- filters:
- - multiply: 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement