I have tried using RTL_433 with a popular (and cheap
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.cCode: 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);Code: Select all
Rtl433.cppCode: Select all
if (FindField(data, "uv"))
{
uvi = (float)atof(data["uv"].c_str());
haveUV = true;
}On my side, I have fixed it by adjusting the rtl_433 source on my device (I know, it's bad
Have a good day,
QQ.