rtl_433
rtl_433 copied to clipboard
Handling a new device that is almost the same as an existing one
I recently purchased this device from AliExpress. It's not identified with a Make or Model, but seems to be the same as this ORIA WA50 on Amazon.
The sensors are decoded with protocol 47 and recognized as "Conrad-S3318P".
In fact, there are a few differences between my sensors and what is decoded:
- my sensors only report temperature, not humidity (humidity is reported as 0)
- my sensors do not have a button
- the base and sensors do not support a channel selection; sensor 1 reports channel "2" and sensor 2 reports channel "3"
I will probably just live with this, but I was wondering how such a situation could be handled if I wanted to add a custom decoder for these sensors.
Salut @jpmv27 : You can add a data condition at the result , since humidity = 0% it's not human or into the desert or no humidity sensor ? Here
"humidity", "Humidity", DATA_COND, humidity != 0, DATA_FORMAT, "%u %%", DATA_INT, humidity,
You may have to open the temperature sensor to get a reference on the PCB for this kind of no name / rebrand sensor.
Enrich the comment section and append your reference into the name here, up to you.
Merci @ProfBoc75
Thank you for the hint. This is very clever. I am starting to discover the flexibility of the software.
A couple of questions.
- What is the relationship between the fields in data_make and those in output_fields? Does it matter that humidity will still be listed in output_fields even though it is conditional in data_make?
- I presume there is conversion happening somewhere, since the temperature is received from the sensor in degrees F but is output in degrees C. Correct?
The output_fields is just a hint to the CSV output, it defines the possible columns.
There is a conversion option -C si (native, customary) or convert si in a conf file.
@jpmv27 I am going to consider this resolved by the mentioned merge, unless you would like to explain what needs doing still, relative to up-to-date master. Adding feedback tag with 7-day timer.
Yes, resolved. Thanks