Folks,
i am sniffering with a RTL433 different devices and sending them via MQTT but all on the same topic RTL_433/JSON.
I am trying to create two sensor for two different humidities.
One:
{“time” : “2019-12-23 00:54:52”, “model” : “Prologue sensor”, “id” : 5, “rid” : 67, “channel” : 1, “battery” : “OK”, “button” : 0, “temperature_C” : 12.900, “humidity” : 23}
what makes the sender unique is the “model” : “Fine Offset Electronics WH1080/WH3080 Weather Station” and “model” : “Prologue sensor”.
well to be specific I do get values from three different sensors from the “model” : “Prologue sensor” where the differentiation will be the “channel” : 1
I noticed both of the examples you posted contain an id key. The Prologue sensor’s id is 5 and the Weather Station’s id is 101. Can the id be used to uniquely identify these two devices?
If you’re comfortable with using id then you can use a solution I posted to a similar question:
It uses the approach of separating the multiplexed payload into separate topics, one per unique sensor. This allows you to easily define multiple sensors (without using complex templates in each sensor).