rtl_433_ESP icon indicating copy to clipboard operation
rtl_433_ESP copied to clipboard

Support for VEVOR Wireless Weather Station 7-in-1

Open cipriancu opened this issue 1 year ago • 1 comments

Current Situation

With Bruno's help, we managed to decode VEVOR Wireless Weather Station 7-in-1 with rtl_433 and RLT- SDR stick https://github.com/merbanan/rtl_433/issues/3020 but my goal is to integrate it with openmqttgateway installed on a LilyGO TTGO T3 V1.6.1 I installed lilygo-rtl_433-fsk version but my signal is not received/decoded

With RLT- SDR stick i get the data using the command: rtl_433 -s 1000k -Y classic -M level -f 868M -X "n=Vevor,m=FSK_PCM,s=90,l=90,r=1400,preamble=caca54aa"

what i need to do to integrate rtl_433 branch development in openmqttgateway?

Proposed Change

add support for VEVOR Wireless Weather Station 7-in-1

Additional Context

No response

cipriancu avatar Aug 14 '24 17:08 cipriancu

+1 looking to use this exact weather station with a Lilygo 433 so I understand there are something working settings for the device in rtl_433, how to get those in openmqtt for thé Lilygo device ? Any help would be greatly appreciated

toxic0berliner avatar Oct 03 '24 00:10 toxic0berliner

Hello,

I'm also interested in support for Vevor Wireless Weather Station. How can we using the LilyGo Lora32 decode FSK signal like cipriancu says above? Thanks in advance.

hash6iron avatar Nov 04 '24 17:11 hash6iron

I just refreshed the library to rtl_433 24.10. Was a fix for this included?

NorthernMan54 avatar Nov 30 '24 01:11 NorthernMan54

Seems it's not working for me, but maybe my board is broken I get no rtl_433 I've been re-building using gitpod and changing the platformio.ini file with thie rtl_433_ESP = https://github.com/NorthernMan54/rtl_433_ESP.git#v0.4.0 But no luck, I still get no RTL_433toMQTT topic at all in my mqtt broker... I do get the device pushing to mqtt for it's uptime and such... but still not very sure I managed a proper flash...

toxic0berliner avatar Dec 02 '24 06:12 toxic0berliner

Are you able to select the correct frequency and modulation ?

NorthernMan54 avatar Dec 02 '24 23:12 NorthernMan54

I selected 868.300 as the frequency which seems correct from the manufacturer 's sheet, but I se me no option for modulation, only active library which is RTL_433 only other choice is inactive. There were some settings in the platform.ini file which I didn't change, but now I think of it I think you want to make sure I uses the FSK version which I did. But I'd still like others to test as I haven't got other RF gear and haven't been able to pickup a single RF signal over mqtt with this device so far... So maybe it's defective, maybe I built the firmware wrong... I am also a pure noob so seeing rssi to 110 has no meaning to me, I know I tried several antenna I had lying around as well as the one sold with the lilygo device...

toxic0berliner avatar Dec 02 '24 23:12 toxic0berliner

Postive Results from the OMG build - https://github.com/1technophile/OpenMQTTGateway/pull/2125

NorthernMan54 avatar Dec 02 '24 23:12 NorthernMan54

I selected 868.300 as the frequency which seems correct from the manufacturer 's sheet

Could you try 868.35 just for verification?

DigiH avatar Dec 03 '24 00:12 DigiH

Thanks for the help, sadly doesn't seem to change

RFtoMQTT = {"active":3,"frequency":868.35,"rssithreshold":-106,"rssi":-113,"avgrssi":-115,"count":0,"rtl433_stack":19480,"ookthreshold":15} I believe count=0 says it didn't decipher a single message

toxic0berliner avatar Dec 03 '24 06:12 toxic0berliner

Unfortunately the link in the decoder file only links to the US region FCC page with the 915MHz references.

I assume you do have the European/other Region 868MHz one from you above posts.

Unfortunately with the LilyGo, the reception frequency window is not as wide as with an RLT- SDR stick, especially with 868MHZ FSK.

It took me months to find the right frequency for my own weather station, I tried 868.30, 868.40, and so forth, until someone else post about some other device from the same manufacturer stated that his works fine with the in between 868.35, and now it's working perfectly.

Does a verbose output with the RLT- SDR stick possibly give any further hints at the exact frequency?

If not, and if there is not any other issue with the vevor_7in1 for rtl_433_ESP, your best bet really is to test yourself through the frequency range in 0.05 steps.

I know it's tedious work, but if yourself, @cipriancu and @hash6iron split up the testing ranges between yourselves it shouldn't take too long to find the weed spot.

DigiH avatar Dec 03 '24 11:12 DigiH

Also, is your weather station Crosby for this testing, or outdoors in its usual place? The LilyGos also don't have the long range reception as an RLT- SDR stick. So not that it's just a case of having to move the LilyGo closer to the station.

DigiH avatar Dec 03 '24 12:12 DigiH

Sorry all. I won't be able to make any test till mid December. My wheather station is working on RTL-SDR + homeassistant and the lilygo is sitting in a drawer. In terms of frequency RTL SDR sees 2:one at 868.1 and the other at 868.4. My question for whenever I'll arrive home and do the tests. Do I have to compile openmqttgateway in plaform.io to use this new library or it is included in version 1.8.0 (my lilygo is flashed with 1.7.0)

cipriancu avatar Dec 03 '24 21:12 cipriancu

868.1 and the other at 868.4.

That's a good start!

@toxic0berliner @hash6iron any luck with these frequencies? Or possibly anything in between in 0.05 steps?

My question for whenever I'll arrive home and do the tests. Do I have to compile openmqttgateway in plaform.io to use this new library or it is included in version 1.8.0 (my lilygo is flashed with 1.7.0)

You will have to install a new build, but by the time you'll be back home I assume the new version of the rtl_433_ESP library has been merged into the development version of OpenMQTTGateway, so you can then just web install a development build without any need to compile anything yourself.

DigiH avatar Dec 03 '24 21:12 DigiH

managed to get to a computer and ive changed the conf file in HA to get the frequencies: {"time" : "2024-12-03 21:57:43.702091", "protocol" : 263, "model" : "Vevor-7in1", "id" : 63735, "channel" : 0, "battery_ok" : 1, "temperature_C" : 4.500, "humidity" : 88, "wind_avg_km_h" : 0.000, "wind_max_km_h" : 0.000, "wind_dir_deg" : 103, "rain_mm" : 0.000, "uv" : 0, "light_lux" : 0, "mic" : "CHECKSUM", "mod" : "FSK", "freq1" : 868.381, "freq2" : 868.309, "rssi" : -3.314, "snr" : 23.389, "noise" : -26.704} {"time" : "2024-12-03 21:58:16.574055", "protocol" : 263, "model" : "Vevor-7in1", "id" : 63735, "channel" : 0, "battery_ok" : 1, "temperature_C" : 4.500, "humidity" : 88, "wind_avg_km_h" : 0.000, "wind_max_km_h" : 0.000, "wind_dir_deg" : 96, "rain_mm" : 0.000, "uv" : 0, "light_lux" : 0, "mic" : "CHECKSUM", "mod" : "FSK", "freq1" : 868.381, "freq2" : 868.311, "rssi" : -3.390, "snr" : 21.431, "noise" : -24.820} {"time" : "2024-12-03 21:58:45.157493", "protocol" : 263, "model" : "Vevor-7in1", "id" : 63735, "channel" : 0, "battery_ok" : 1, "temperature_C" : 4.500, "humidity" : 88, "wind_avg_km_h" : 0.000, "wind_max_km_h" : 0.000, "wind_dir_deg" : 96, "rain_mm" : 0.000, "uv" : 0, "light_lux" : 0, "mic" : "CHECKSUM", "mod" : "FSK", "freq1" : 868.381, "freq2" : 868.298, "rssi" : -3.452, "snr" : 21.703, "noise" : -25.154} {"time" : "2024-12-03 21:59:18.030029", "protocol" : 263, "model" : "Vevor-7in1", "id" : 63735, "channel" : 0, "battery_ok" : 1, "temperature_C" : 4.500, "humidity" : 88, "wind_avg_km_h" : 0.000, "wind_max_km_h" : 0.000, "wind_dir_deg" : 90, "rain_mm" : 0.000, "uv" : 0, "light_lux" : 0, "mic" : "CHECKSUM", "mod" : "FSK", "freq1" : 868.380, "freq2" : 868.296, "rssi" : -3.490, "snr" : 20.525, "noise" : -24.015} {"time" : "2024-12-03 21:59:46.613813", "protocol" : 263, "model" : "Vevor-7in1", "id" : 63735, "channel" : 0, "battery_ok" : 1, "temperature_C" : 4.500, "humidity" : 88, "wind_avg_km_h" : 0.000, "wind_max_km_h" : 0.000, "wind_dir_deg" : 90, "rain_mm" : 0.000, "uv" : 0, "light_lux" : 0, "mic" : "CHECKSUM", "mod" : "FSK", "freq1" : 868.380, "freq2" : 868.301, "rssi" : -3.579, "snr" : 22.655, "noise" : -26.234} {"time" : "2024-12-03 22:00:19.486996", "protocol" : 263, "model" : "Vevor-7in1", "id" : 63735, "channel" : 0, "battery_ok" : 1, "temperature_C" : 4.500, "humidity" : 88, "wind_avg_km_h" : 0.000, "wind_max_km_h" : 0.000, "wind_dir_deg" : 90, "rain_mm" : 0.000, "uv" : 0, "light_lux" : 0, "mic" : "CHECKSUM", "mod" : "FSK", "freq1" : 868.381, "freq2" : 868.302, "rssi" : -3.552, "snr" : 19.784, "noise" : -23.336} {"time" : "2024-12-03 22:00:48.070795", "protocol" : 263, "model" : "Vevor-7in1", "id" : 63735, "channel" : 0, "battery_ok" : 1, "temperature_C" : 4.400, "humidity" : 88, "wind_avg_km_h" : 0.000, "wind_max_km_h" : 0.000, "wind_dir_deg" : 90, "rain_mm" : 0.000, "uv" : 0, "light_lux" : 0, "mic" : "CHECKSUM", "mod" : "FSK", "freq1" : 868.381, "freq2" : 868.294, "rssi" : -3.555, "snr" : 19.558, "noise" : -23.113} {"time" : "2024-12-03 22:01:20.944513", "protocol" : 263, "model" : "Vevor-7in1", "id" : 63735, "channel" : 0, "battery_ok" : 1, "temperature_C" : 4.500, "humidity" : 88, "wind_avg_km_h" : 0.000, "wind_max_km_h" : 0.000, "wind_dir_deg" : 90, "rain_mm" : 0.000, "uv" : 0, "light_lux" : 0, "mic" : "CHECKSUM", "mod" : "FSK", "freq1" : 868.381, "freq2" : 868.302, "rssi" : -3.567, "snr" : 23.015, "noise" : -26.581} {"time" : "2024-12-03 22:01:49.528426", "protocol" : 263, "model" : "Vevor-7in1", "id" : 63735, "channel" : 0, "battery_ok" : 1, "temperature_C" : 4.400, "humidity" : 88, "wind_avg_km_h" : 0.000, "wind_max_km_h" : 0.000, "wind_dir_deg" : 90, "rain_mm" : 0.000, "uv" : 0, "light_lux" : 0, "mic" : "CHECKSUM", "mod" : "FSK", "freq1" : 868.381, "freq2" : 868.292, "rssi" : -3.433, "snr" : 17.956, "noise" : -21.389} {"time" : "2024-12-03 22:02:22.400706", "protocol" : 263, "model" : "Vevor-7in1", "id" : 63735, "channel" : 0, "battery_ok" : 1, "temperature_C" : 4.400, "humidity" : 88, "wind_avg_km_h" : 0.000, "wind_max_km_h" : 0.000, "wind_dir_deg" : 90, "rain_mm" : 0.000, "uv" : 0, "light_lux" : 0, "mic" : "CHECKSUM", "mod" : "FSK", "freq1" : 868.381, "freq2" : 868.310, "rssi" : -3.572, "snr" : 26.019, "noise" : -29.591} {"time" : "2024-12-03 22:02:50.984290", "protocol" : 263, "model" : "Vevor-7in1", "id" : 63735, "channel" : 0, "battery_ok" : 1, "temperature_C" : 4.400, "humidity" : 88, "wind_avg_km_h" : 0.000, "wind_max_km_h" : 0.000, "wind_dir_deg" : 90, "rain_mm" : 0.000, "uv" : 0, "light_lux" : 0, "mic" : "CHECKSUM", "mod" : "FSK", "freq1" : 868.381, "freq2" : 868.286, "rssi" : -3.428, "snr" : 23.945, "noise" : -27.373} {"time" : "2024-12-03 22:03:23.856898", "protocol" : 263, "model" : "Vevor-7in1", "id" : 63735, "channel" : 0, "battery_ok" : 1, "temperature_C" : 4.400, "humidity" : 88, "wind_avg_km_h" : 0.000, "wind_max_km_h" : 0.000, "wind_dir_deg" : 90, "rain_mm" : 0.000, "uv" : 0, "light_lux" : 0, "mic" : "CHECKSUM", "mod" : "FSK", "freq1" : 868.381, "freq2" : 868.305, "rssi" : -3.672, "snr" : 17.904, "noise" : -21.575} {"time" : "2024-12-03 22:03:52.440607", "protocol" : 263, "model" : "Vevor-7in1", "id" : 63735, "channel" : 0, "battery_ok" : 1, "temperature_C" : 4.400, "humidity" : 88, "wind_avg_km_h" : 0.000, "wind_max_km_h" : 0.000, "wind_dir_deg" : 90, "rain_mm" : 0.000, "uv" : 0, "light_lux" : 0, "mic" : "CHECKSUM", "mod" : "FSK", "freq1" : 868.381, "freq2" : 868.309, "rssi" : -3.581, "snr" : 21.842, "noise" : -25.423} {"time" : "2024-12-03 22:04:25.313259", "protocol" : 263, "model" : "Vevor-7in1", "id" : 63735, "channel" : 0, "battery_ok" : 1, "temperature_C" : 4.400, "humidity" : 88, "wind_avg_km_h" : 0.000, "wind_max_km_h" : 0.000, "wind_dir_deg" : 90, "rain_mm" : 0.000, "uv" : 0, "light_lux" : 0, "mic" : "CHECKSUM", "mod" : "FSK", "freq1" : 868.379, "freq2" : 868.313, "rssi" : -3.651, "snr" : 19.355, "noise" : -23.006} {"time" : "2024-12-03 22:04:53.897028", "protocol" : 263, "model" : "Vevor-7in1", "id" : 63735, "channel" : 0, "battery_ok" : 1, "temperature_C" : 4.400, "humidity" : 88, "wind_avg_km_h" : 0.000, "wind_max_km_h" : 0.000, "wind_dir_deg" : 90, "rain_mm" : 0.000, "uv" : 0, "light_lux" : 0, "mic" : "CHECKSUM", "mod" : "FSK", "freq1" : 868.381, "freq2" : 868.313, "rssi" : -3.644, "snr" : 19.635, "noise" : -23.279} {"time" : "2024-12-03 22:05:26.769575", "protocol" : 263, "model" : "Vevor-7in1", "id" : 63735, "channel" : 0, "battery_ok" : 1, "temperature_C" : 4.400, "humidity" : 88, "wind_avg_km_h" : 0.000, "wind_max_km_h" : 0.000, "wind_dir_deg" : 90, "rain_mm" : 0.000, "uv" : 0, "light_lux" : 0, "mic" : "CHECKSUM", "mod" : "FSK", "freq1" : 868.381, "freq2" : 868.301, "rssi" : -3.681, "snr" : 20.754, "noise" : -24.436} {"time" : "2024-12-03 22:06:28.225558", "protocol" : 263, "model" : "Vevor-7in1", "id" : 63735, "channel" : 0, "battery_ok" : 1, "temperature_C" : 4.400, "humidity" : 88, "wind_avg_km_h" : 0.000, "wind_max_km_h" : 0.000, "wind_dir_deg" : 89, "rain_mm" : 0.000, "uv" : 0, "light_lux" : 0, "mic" : "CHECKSUM", "mod" : "FSK", "freq1" : 868.381, "freq2" : 868.311, "rssi" : -3.625, "snr" : 20.526, "noise" : -24.151} {"time" : "2024-12-03 22:06:49.075418", "enabled" : 1, "since" : "2024-12-03T21:56:49", "frames" : {"count" : 3764, "fsk" : 17, "events" : 17}, "stats" : [{"device" : 263, "name" : "Vevor Wireless Weather Station 7-in-1", "events" : 17, "ok" : 17, "messages" : 17}]} {"time" : "2024-12-03 22:06:56.809287", "protocol" : 263, "model" : "Vevor-7in1", "id" : 63735, "channel" : 0, "battery_ok" : 1, "temperature_C" : 4.400, "humidity" : 88, "wind_avg_km_h" : 0.000, "wind_max_km_h" : 0.000, "wind_dir_deg" : 80, "rain_mm" : 0.000, "uv" : 0, "light_lux" : 0, "mic" : "CHECKSUM", "mod" : "FSK", "freq1" : 868.381, "freq2" : 868.298, "rssi" : -3.639, "snr" : 17.974, "noise" : -21.613}

cipriancu avatar Dec 03 '24 22:12 cipriancu

Humm, the difference between Freq1 and Freq2 is approx 0.080 Mhz

Am wondering if changing this to 80 may make a difference if it doesn't work once the frequency is dialled in - https://github.com/NorthernMan54/rtl_433_ESP/blob/91bd22a80d398de49fcc0af0375d187cdfb455dc/src/rtl_433_ESP.cpp#L226

NorthernMan54 avatar Dec 03 '24 22:12 NorthernMan54

I tried from 868.1 to 868.45 in .05 increments, nothing yet. Since I'm a bit worried I built something wrong, I would like to attempt to re-flash the openMQTT dev using the web tools but I don't see any option for dev on the page https://docs.openmqttgateway.com/upload/web-install.html#using-openmqttgateway I also tried 915.000 on the offchance I had an US version shipped to me in France by mistake, doesn't seem to be the case.

Sorry for the noob-level help needed. I'm considering adding my own option in the html dropdown if I can findout the path for the dev builds 🤣 I'm fairly goot at web, shell, but real new to ESP32 & especially RF 😉

Meanwhile I have put the lilygo device on a battery pack and it's sitting outside just next to the weatherstation, can't be any closer. I am going over the same range with .005 increments now and fiving it more time inbetween.

Maybe if you have one piece of advice : I plugged in a big antenna I bought a while ago that was for WIFI I expect 2.4GhZ on the liligo device thnking bigger is better, would you advise I switch back to the little antenna provided with the lilygo instead ?

toxic0berliner avatar Dec 04 '24 08:12 toxic0berliner

silly me, just found the url in the github actions : https://docs.openmqttgateway.com/dev/ installing now...

toxic0berliner avatar Dec 04 '24 08:12 toxic0berliner

but hey, I believe it's not using your latest build : in platformio.ini I see this : rtl_433_ESP = https://github.com/NorthernMan54/rtl_433_ESP.git#v0.3.3

toxic0berliner avatar Dec 04 '24 08:12 toxic0berliner

Northernman is likely asleep in his part of the world right now, so I've done the following • Created a branch with the 0.4.0 release and added his suggested change above • Started a OpenMQTTGateway development build

@toxic0berliner @hash6iron @cipriancu You can now web upload the development test build with SHA:81eb8b at the top of the dev upload page.

It will be available until it gets overwritten by the default development nightly build just after midnight UTC tonight.

Let's see what it brings.

DigiH avatar Dec 04 '24 10:12 DigiH

oups, sorry, I didn't anticipate this last message to be time-sensitive and for sure now I look at it it's alredy gone, sorry for that and thanks for the efforts DigiH I will be watching this topic more closely and have the device on my desk in case you pull the same strings again, else I will be patiently waiting for the MR to be merged, after all it's more my fault I'm not comfortable building&flashing ESP devices 😁

toxic0berliner avatar Dec 05 '24 08:12 toxic0berliner

It wasn't so much about 0.4.0 being merged, as you seemed to have done that already fine with your gitpod firmware build, but more to also include the above change from @NorthernMan54.

I have started the test build again, and it will be available with the same SHA in about 90 minutes, again only until just after midnight ;)

DigiH avatar Dec 05 '24 09:12 DigiH

got it ! flashed and configures, it's running, so far not much more luck but I'll try to monitor and maybe sweep across the frequency range again:

{"active":3,"frequency":868.381,"rssithreshold":-106,"rssi":-114,"avgrssi":-115,"count":0,"rtl433_stack":19480,"ookthreshold":15}

Thanks a lot !

toxic0berliner avatar Dec 05 '24 11:12 toxic0berliner

Hi all got home and started to work firstly i checked again the frequency with HDSDR image and the 2 frequencies are 868.307 and 868.376

next, i flashed [SHA:1b50c8 TEST ONLY] with lilygo-rtl_433-fsk, i set different frequencies around both values 868.307, 868.31, 868.376, 868.38, 868.37,868.35 ( in this time I had the RTL-SDR turned on to check if I receive something) and on lilygo no success

cipriancu avatar Dec 09 '24 10:12 cipriancu

Hin @cipriancu

next, i flashed [SHA:1b50c8 TEST ONLY]

That was the nightly development build again, with rtl_433_ESP 0.4.0, but without state = radio.setFrequencyDeviation(40) as from @NorthernMan54's suggestion above.

Let me start that build again, and in about 90 minutes you should be able to install the SHA:81eb8b build.

DigiH avatar Dec 09 '24 10:12 DigiH

in the meantime i flashed a via Platform IO https://github.com/1technophile/OpenMQTTGateway/tree/rtl_433_esp-v0.4.0 i set the frequency at 868.35 and it seems to work ,

N: [ OMG->MQTT ] topic: home/OMG_lilygo_rtl_433_ESP_FSK/RTL_433toMQTT/Vevor-7in1/0/63735 msg: {"model":"Vevor-7in1","id":63735,"channel":0,"battery_ok":1,"temperature_C":24.8,"humidity":49,"wind_avg_km_h":0,"wind_max_km_h":0,"wind_dir_deg":185,"rain_mm":0.466,"uv":0,"light_lux":11,"mic":"CHECKSUM","protocol":"Vevor Wireless Weather Station 7-in-1","rssi":-33,"duration":83996}

but it doesn't seems to capture all packets at every 20 seconds, i need to test a bit more

cipriancu avatar Dec 09 '24 11:12 cipriancu

but it doesn't seems to capture all packets at every 20 seconds, i need to test a bit more

See how it goes when the SHA:81eb8b build is ready, with the wider frequency deviation.

@toxic0berliner don't you have an 868MHZ LilyGo board then, that you didn't get any reception at all with the 0.4.0 build?

DigiH avatar Dec 09 '24 11:12 DigiH

I have 81eb8b I have been swiping the frequencies, so far no luck trying again around 868.35

toxic0berliner avatar Dec 09 '24 11:12 toxic0berliner

I have 81eb8b I have been swiping the frequencies, so far no luck trying again around 868.35

I meant your actual LilyGo board, which version is the board hardware? What does it say on the back, under

LilyGo®
…

DigiH avatar Dec 09 '24 11:12 DigiH

Wow, something new: {"active":3,"frequency":868.35,"rssithreshold":-106,"rssi":-112,"avgrssi":-115,"count":1819,"rtl433_stack":5048,"ookthreshold":15} The count is not 0 😯 Still, I don't see any new device in my mqtt integration it seems and the console doesn't log anything having submitted new info to mqtt between the count=0 and this 1819. It seems stuck a 1819 now... Maybe you've found my issue though: P_20241209_130923

toxic0berliner avatar Dec 09 '24 12:12 toxic0berliner

I believed my device to be 433 back then. Maybe you could confirm I would have better luck with this one: https://lilygo.cc/products/lora3?variant=42476923682997

toxic0berliner avatar Dec 09 '24 12:12 toxic0berliner