Wind sensor

Can you advise me, for simple Wind sensor project, with esphome.

I see one project with tx20/tx23 hardware, but it is not available for buy.

This is the first project that I will do…

Thank you

There are countless anemometer sensors and complete weather station assemblies on the market. I see this one used a lot and you can buy it’s components separately. It comes with different brand names including SparkFun.

s-l400

It is affordable but it is also all plastic. Not sure how long it will survive UV light. If you want to invest more you might prefer a metal version.

Many anemometer sensors simply create pulses with a frequency that corresponds to the wind speed. There are many examples in this forum how to use them with ESPHome.

1 Like

I buy simple anemometer .

Now i use this code to esphome
But have problem that, when no wind, the sensor keep last value, and never go to zero.

Reading documents, assume that timeout option give zero result if no rotation, but sensor in ha never go to zero.

This is code


sensor:

  • platform: pulse_meter
    pin:
    number: GPIO14 #d5
    mode: INPUT_PULLUP
    name: ‘windspeed meter’
    icon: ‘mdi:weather-windy’
    id: wind_meter
    unit_of_measurement: ‘m/s’
    accuracy_decimals: 0
    timeout: 5s
    filters:
    • multiply: 0.124327986
    • sliding_window_moving_average: # Helps prevent too many datapoints
      window_size: 3
      send_every: 3’