-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for wind sensor (Eltako WS) #50
Comments
Already possible with the pulse counter sensor: https://esphomelib.com/esphomeyaml/components/sensor/pulse_counter.html (which will even be backported to the ESP8266 in 1.7.0) The only thing that would need to be done is a conversion from the pulse count to the wind speed. In the code I see this formula that should work: A formula could for example be: sensor:
- platform: pulse_counter
pin: GPIOx
# ...
filters:
- lambda: >-
return 1.761 / (1 + x) + 3.013 * x; |
Cool, I currently only have ESP8266 boards, but I have ordered a ESP32 and will definitely try the pulse counter. Thanks! |
Yes, definitely. I myself am using a similar wind sensor and a single turn can create many hundred pulses without any filtering. |
While trying to build a weather station with several sensors,
I found this one to be a worthy addition: https://www.amazon.de/Eltako-Windsensor-WS/dp/B0018LBFG8
There is also a ready .ino file in this repo: https://github.com/sbiermann/esp8266-anemometer/blob/master/esp8266-anemometer.ino
Would this be possible to add to esphomelib/esphomeyaml?
The text was updated successfully, but these errors were encountered: