rtl_433
rtl_433 copied to clipboard
Add support for un-name aliexpress rain sensor
Hello all,
I have invested at least 20 hours trying to get this "random" rain sensor working which I ordered online. It is sending on 433 MHz and I can see data in rtl_433 in my Home Assistant, but I have no idea how to make it work as a "sensor" in Home Assistant. https://de.aliexpress.com/item/4000761757290.html?spm=a2g0o.productlist.main.113.40a11a4ai4ApmT&algo_pvid=7268c84f-3ff7-4f75-b2ec-817f087b593c&algo_exp_id=7268c84f-3ff7-4f75-b2ec-817f087b593c-56&pdp_npi=4%40dis%21EUR%219.10%217.74%21%21%219.67%21%21%4021038edc16926521674732478eb75c%2110000007566136247%21sea%21DE%212572487528%21&curPageLogUid=4xN4NsvgHRqx
This is what I get when touching the sensor to trigger it: Detected OOK package 2023-08-21 23:10:49 Analyzing pulses... Total count: 454, width: 607.34 ms (151834 S) Pulse width distribution: [ 0] count: 13, width: 5448 us [5144;6996] (1362 S) [ 1] count: 61, width: 1512 us [1432;1828] ( 378 S) [ 2] count: 323, width: 644 us [568;784] ( 161 S) [ 3] count: 18, width: 3436 us [3092;4068] ( 859 S) [ 4] count: 37, width: 2360 us [2252;2708] ( 590 S) [ 5] count: 1, width: 980 us [980;980] ( 245 S) [ 6] count: 1, width: 0 us [0;0] ( 0 S) Gap width distribution: [ 0] count: 289, width: 156 us [128;192] ( 39 S) [ 1] count: 54, width: 112 us [92;128] ( 28 S) [ 2] count: 72, width: 208 us [196;268] ( 52 S) [ 3] count: 11, width: 60 us [56;68] ( 15 S) [ 4] count: 4, width: 44 us [44;48] ( 11 S) [ 5] count: 10, width: 1572 us [1428;1748] ( 393 S) [ 6] count: 2, width: 276 us [260;292] ( 69 S) [ 7] count: 10, width: 80 us [76;84] ( 20 S) [ 8] count: 1, width: 376 us [376;376] ( 94 S) Pulse period distribution: [ 0] count: 14, width: 5692 us [5516;7160] (1423 S) [ 1] count: 60, width: 1644 us [1632;1684] ( 411 S) [ 2] count: 321, width: 800 us [792;844] ( 200 S) [ 3] count: 23, width: 3660 us [3276;4164] ( 915 S) [ 4] count: 35, width: 2476 us [2444;2524] ( 619 S) Pulse timing distribution: [ 0] count: 13, width: 5448 us [5144;6996] (1362 S) [ 1] count: 71, width: 1520 us [1428;1828] ( 380 S) [ 2] count: 323, width: 644 us [568;784] ( 161 S) [ 3] count: 18, width: 3436 us [3092;4068] ( 859 S) [ 4] count: 37, width: 2360 us [2252;2708] ( 590 S) [ 5] count: 1, width: 980 us [980;980] ( 245 S) [ 6] count: 1, width: 0 us [0;0] ( 0 S) [ 7] count: 289, width: 156 us [128;192] ( 39 S) [ 8] count: 54, width: 112 us [92;128] ( 28 S) [ 9] count: 72, width: 208 us [196;268] ( 52 S) [10] count: 11, width: 60 us [56;68] ( 15 S) [11] count: 4, width: 44 us [44;48] ( 11 S) [12] count: 2, width: 276 us [260;292] ( 69 S) [13] count: 10, width: 80 us [76;84] ( 20 S) [14] count: 1, width: 376 us [376;376] ( 94 S) Level estimates [high, low]: 14925, 1636 RSSI: -0.4 dB SNR: 9.6 dB Noise: -10.0 dB Frequency offsets [F1, F2]: 626, 0 (+2.4 kHz, +0.0 kHz) Guessing modulation: No clue... Detected OOK package 2023-08-21 23:10:50 Analyzing pulses... Total count: 85, width: 112.41 ms (28102 S) Pulse width distribution: [ 0] count: 59, width: 632 us [588;700] ( 158 S) [ 1] count: 13, width: 1468 us [1428;1532] ( 367 S) [ 2] count: 6, width: 2332 us [2304;2388] ( 583 S) [ 3] count: 4, width: 3164 us [3128;3204] ( 791 S) [ 4] count: 3, width: 4628 us [4316;5188] (1157 S) Gap width distribution: [ 0] count: 71, width: 172 us [140;216] ( 43 S) [ 1] count: 10, width: 116 us [100;132] ( 29 S) [ 2] count: 1, width: 1424 us [1424;1424] ( 356 S) [ 3] count: 1, width: 336 us [336;336] ( 84 S) [ 4] count: 1, width: 88 us [88;88] ( 22 S) Pulse period distribution: [ 0] count: 59, width: 800 us [796;804] ( 200 S) [ 1] count: 13, width: 1640 us [1636;1648] ( 410 S) [ 2] count: 6, width: 2476 us [2476;2484] ( 619 S) [ 3] count: 4, width: 3320 us [3316;3332] ( 830 S) [ 4] count: 2, width: 5668 us [5524;5812] (1417 S) Pulse timing distribution: [ 0] count: 59, width: 632 us [588;700] ( 158 S) [ 1] count: 14, width: 1464 us [1424;1532] ( 366 S) [ 2] count: 6, width: 2332 us [2304;2388] ( 583 S) [ 3] count: 4, width: 3164 us [3128;3204] ( 791 S) [ 4] count: 3, width: 4628 us [4316;5188] (1157 S) [ 5] count: 71, width: 172 us [140;216] ( 43 S) [ 6] count: 10, width: 116 us [100;132] ( 29 S) [ 7] count: 1, width: 336 us [336;336] ( 84 S) [ 8] count: 1, width: 88 us [88;88] ( 22 S) [ 9] count: 1, width: 51884 us [51884;51884] (12971 S) Level estimates [high, low]: 15043, 1660 RSSI: -0.4 dB SNR: 9.6 dB Noise: -9.9 dB Frequency offsets [F1, F2]: 338, 0 (+1.3 kHz, +0.0 kHz) Guessing modulation: No clue...
It sucks that I have absolutely no clue or any other idea what to do, but maybe someone is able to help me.
Thanks!
it seems to be, a decoder is not available yet. with which options did you start rtl_433?
Best Regards
maybe christian @zuckschwerdt can tell you which flex decoder parameters you need for rtl 433. and afterwards, we assume that you received encoded datas you can go forward to analyze the data. BR
Thanks for your response! I tried with "generic motion sensor" which is decoder 87, but I also did not know if I need to create a custom flex decoder... but it seems that the analyzer does not find enough information about the modulation for that.
but motion sensor decoder 87 means IMHO a movement of a person or animal in front of the sensor. not in the sense of movement of a drive.
have had a look at the inet address from your first post. i think it is a rain or water sensor with the information it is wet or dry. and depending on this, a drive (which can also be bought from the giant mail order company from Asia) can open or close a roof window.
Aside from the dominat ~650 µs pulses there are many other lengths, so it could be PCM and not just simple PWM. We need samples to look at. Grab some and upload as zip here. https://triq.org/rtl_433/ANALYZE.html
Again, Thank you for taking time to look into this, I really appreciate it!
Some additional background: I bought this sensor standalone but it is usually paired with a motor to open/close windows. It even has a pairing button at the bottom, but I have not use for that. I was hoping that the signal the sensor sends on contact with water can be used by my Home Assistant somehow.
During my numerous tests in the past days the sensor was logged as "Motion Sensor" sometimes, which made me think I should use protocol 87 for this. However, I do not know how to replicate this currently.
I also use rtl_433 to receive data from my weather station on 868M.
Aside from the dominat ~650 µs pulses there are many other lengths, so it could be PCM and not just simple PWM. We need samples to look at. Grab some and upload as zip here. https://triq.org/rtl_433/ANALYZE.html
I will try to capture the samples and will provide them.
rtl_433 tells me that many files were written, but I cannot find any file on my Home Assistant system (proxmox). I will keep looking
i get the feeling you are not familar with rtl_433. i assume you use a linux box. open a terminal -> create a new folder named "rain_sensor" for example. go into that direcetory and start rtl_433 as described in document https://triq.org/rtl_433/ANALYZE.html under "grab a sample". after a while quit rtl_433 with ctrl-c. there should be some .. .cu8 files in this directory -> put the files into a zip and upload the zip file here.
I retitled this. Currently this issue doesn't really have information that could be used to solve what's requested.
Is there a path forward? So far there isn't decoding information that needs to be captured.
@msw90 - Any luck creating .cu8 files from this sensor? Would you be able to zip and attach them to this issue?
This isn't making any progress and there isn't really useful information in the PR for the next person. Feel free to ask for reopening if actually active.