Page 1 of 1

RTL_433

Posted: Wednesday 27 August 2025 7:51
by qqlapraline
Hello everyone,

I have tried using RTL_433 with a popular (and cheap :)) OEM weather station: Sainlogic FT0300.
RTL_433 is retrieving all the necessary sensors data (Temp, Humidity, Wind speed and direction, rain, UV and Light) with the latest version of the tool.
Unfortunately, Domoticz is not able to retrieve the UV value.
It seems that the code is not consistent.

Here is how RTL_433 is sending back information in

Code: Select all

cotech_36_7959.c

Code: Select all

    data = data_make(
            "model",            "",                 DATA_STRING, "Cotech-367959",
            //"subtype",          "Type code",        DATA_INT, subtype,
            "id",               "ID",               DATA_INT,    id,
            "battery_ok",       "Battery",          DATA_INT,    !batt_low,
            "temperature_F",    "Temperature",      DATA_FORMAT, "%.1f F", DATA_DOUBLE, temp_c,
            "humidity",         "Humidity",         DATA_FORMAT, "%u %%", DATA_INT, humidity,
            "rain_mm",          "Rain",             DATA_FORMAT, "%.1f mm", DATA_DOUBLE, rain * 0.1f,
            "wind_dir_deg",     "Wind direction",   DATA_INT,    wind_dir,
            "wind_avg_m_s",     "Wind",             DATA_FORMAT, "%.1f m/s", DATA_DOUBLE, wind * 0.1f,
            "wind_max_m_s",     "Gust",             DATA_FORMAT, "%.1f m/s", DATA_DOUBLE, gust * 0.1f,
            "light_lux",        "Light Intensity",  DATA_COND, light_is_valid, DATA_FORMAT, "%u lux", DATA_INT, light_lux,
            "uvi",              "UV Index",         DATA_COND, light_is_valid, DATA_FORMAT, "%.1f", DATA_DOUBLE, uvi * 0.1f,
            "mic",              "Integrity",        DATA_STRING, "CRC",
            NULL);
And here is how Domoticz is parsing it in

Code: Select all

Rtl433.cpp

Code: Select all

	if (FindField(data, "uv"))
	{
		uvi = (float)atof(data["uv"].c_str());
		haveUV = true;
	}
Obviously, when it refers to UV Index, these two guys are not talking the same language :)
On my side, I have fixed it by adjusting the rtl_433 source on my device (I know, it's bad :)). But the best way is probably to adjust it on Domoticz side.

Have a good day,

QQ.

Re: RTL_433

Posted: Wednesday 27 August 2025 17:01
by waltervl
The best way is that you create a Pull Request on the Domoticz source code repository so everyone can enjoy the UV index value... :D
https://github.com/domoticz/domoticz?ta ... ixing-bugs

Re: RTL_433

Posted: Monday 01 September 2025 0:13
by FlyingDomotic
I'm using UV index for a while, but sending only integer value from 0 to 9 (or 10, I don't remind highest value)

Re: RTL_433

Posted: Monday 09 February 2026 9:46
by IanDury
Reported as issue https://github.com/domoticz/domoticz/issues/6534 and has been fixed.