xoseperez / espurna

Home automation firmware for ESP8266-based devices
http://tinkerman.cat
GNU General Public License v3.0
2.99k stars 636 forks source link

Support for wind sensor #1108

Open jsponz opened 6 years ago

jsponz commented 6 years ago

I would like to add this wind sensor:

https://www.eltako.com/fileadmin/downloads/en/_datasheets/Datasheet_WS.pdf

to control my blinds.

Any help?

xoseperez commented 6 years ago

Those wind sensors have one or several magnets that spin with the vanes and a hall effect IC to detect the magnet passing by. You can then calculate the average wind speed over a certain time (5 seconds) counting pulses.

The EventSensor could be an easy starting point. It can even be enhanced to perform basic filters (from counts to km/h) but you will probably want to know max gust speed. It's just a matter of math and data presentation.