I’ve built an anemometer and have configured a Gust (max speed) sensor but think there must be a better way than I’ve done this - but I can’t figure out how!
- platform: pulse_counter
pin:
number: GPIO23
mode: INPUT
unit_of_measurement: 'mph'
name: "Wind Speed"
icon: 'mdi:weather-windy'
accuracy_decimals: 1
count_mode:
rising_edge: DISABLE
falling_edge: INCREMENT
update_interval: 5s
filters:
- multiply: 0.003125
- platform: pulse_counter
pin:
number: GPIO23
mode: INPUT
unit_of_measurement: 'mph'
name: "Wind Gust (Hourly)"
icon: 'mdi:weather-windy'
accuracy_decimals: 1
count_mode:
rising_edge: DISABLE
falling_edge: INCREMENT
update_interval: 15s
filters:
- multiply: 0.003125
- max:
window_size: 720
Is there a better way to do this? What would you suggest?
Thanks.