nlrb / com.weather-sensors

Wireless weather sensor app voor Athom Homey
https://apps.athom.com/app/com.weather-sensors
MIT License
14 stars 27 forks source link

TFA Dostmann Drop rainsensor #75

Open mariobrosch opened 4 years ago

mariobrosch commented 4 years ago

Hi,

I have bought this one: https://www.amazon.nl/dp/B07DWYLPRC?ref_=pe_19967891_422970411_E_301_dt_1

But it is not picked up by homey using this app. Have activated both of the TFA protocols. Can you help me out in getting it working?

I you need more information, please let me know!

mariobrosch commented 4 years ago

@nlrb , hej Ramon, can you please have a look at this? I also want to help you, have some programming skills :).

nlrb commented 4 years ago

Hi @mariobrosch,

I don't have this sensor and don't know what protocol it uses. When searching for 'tfa 47.3005.01 protocol' I also don't get any hits.

What I normally do is capture the signal with a USB RTL SDR dongle and see if it is recognized by rtl_433. If not, you need to capture several different values and it will need to be reverse-engineered.

Grtz, -Ramón.

mariobrosch commented 4 years ago

oke, do you know a cheap dongle which i can use?

mariobrosch commented 4 years ago

and i think you are searching for the incorrect number, the number you are looking for is the base station, i stumble against this page: https://forum.fhem.de/index.php?topic=107998.40;wap2

here when you search for 47.3005.01 you see that this is the number for the base and the number for the rain gauge is 30.3233.01

maybe this also helps: https://github.com/merbanan/rtl_433/pull/1255

hope you can get it to work :)

nlrb commented 4 years ago

Nice, good find! Then you need to convert the code from https://github.com/merbanan/rtl_433/blob/master/src/devices/tfa_drop_30.3233.c to javascript :-).

Based on this info (if I interpreted it right quickly), the signal definition to start with in the app.json should be: { "sof": [ 250, 500, 250, 500, 500, 250, 500, 250 ], "words": [ [250, 500], [500, 250] ], "sensitivity": 0.2, "minimalLength": 60, "maximalLength": 60 }

If you don't receive any signal with this, start with an empty SOF and allow a longer message. As it always seems to end with '11', you could use and EOF for that as well.

mariobrosch commented 4 years ago

i can transform it to javascript i think, what about the import of the include of the decoder.h on line 114?

and if i transformed the code, how should i proceed and test it?