1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Implement pulse_meter as an improvement on pulse_counter and pulse_width for meters (#1434)

This commit is contained in:
Steve Baxter
2021-03-19 08:16:27 +00:00
committed by GitHub
parent f63f9168ff
commit a77784a6da
7 changed files with 196 additions and 1 deletions

View File

@@ -626,6 +626,13 @@ sensor:
falling_edge: DECREMENT
internal_filter: 13us
update_interval: 15s
- platform: pulse_meter
name: 'Pulse Meter'
pin: GPIO12
internal_filter: 100ms
timeout: 2 min
total:
name: 'Pulse Meter Total'
- platform: rotary_encoder
name: 'Rotary Encoder'
id: rotary_encoder1