What is the best approach to read several weather sensors which publish their payload on a single MQTT topic?
The broker is not part of HA, but a Raspberry Pi in my home network (192.168.1.145:1883).
What I would like is to see the temperature & humidity values for each one of the sensors separately.
I have basically 3 different brands of sensors, which are identified with the “model” attribute:
“model” : “Ambient Weather F007TH Thermo-Hygrometer”
“model” : “Bresser 3CH sensor”
“model” : “Prologue sensor”
While all have a “channel” attribute, some share the same channel.
Each “Bresser 3CH sensor” has its unique “id” number.
Each “Prologue sensor” has its unique “rid” number.
Each “Ambient Weather F007TH Thermo-Hygrometer” has its unique “device” number.
All share the same format for both “temperature_C” and “humidity” values within their payloads.
I managed to listen to the topic “rtl433” with the MQTT integration. Here is a snippet of the different payloads from the multiple sensors.
Message 84 received on rtl433 at 8:16 PM:
{"time" : "2023-10-06 18:16:37", "model" : "Ambient Weather F007TH Thermo-Hygrometer", "device" : 220, "channel" : 3, "battery" : "Low", "temperature_C" : 15.889, "humidity" : 74, "mic" : "CRC"}
QoS: 0 - Retain: false
Message 83 received on rtl433 at 8:16 PM:
{"time" : "2023-10-06 18:16:31", "model" : "Prologue sensor", "id" : 5, "rid" : 206, "channel" : 2, "battery" : "OK", "button" : 0, "temperature_C" : 17.100, "humidity" : 75}
QoS: 0 - Retain: false
Message 82 received on rtl433 at 8:16 PM:
{"time" : "2023-10-06 18:16:30", "model" : "Prologue sensor", "id" : 5, "rid" : 122, "channel" : 3, "battery" : "OK", "button" : 0, "temperature_C" : 22.800, "humidity" : 55}
QoS: 0 - Retain: false
Message 81 received on rtl433 at 8:16 PM:
{"time" : "2023-10-06 18:16:27", "model" : "Prologue sensor", "id" : 5, "rid" : 164, "channel" : 1, "battery" : "OK", "button" : 0, "temperature_C" : 21.500, "humidity" : 64}
QoS: 0 - Retain: false
Message 80 received on rtl433 at 8:16 PM:
{"time" : "2023-10-06 18:16:16", "model" : "Ambient Weather F007TH Thermo-Hygrometer", "device" : 214, "channel" : 2, "battery" : "Low", "temperature_C" : 15.389, "humidity" : 72, "mic" : "CRC"}
QoS: 0 - Retain: false
Message 79 received on rtl433 at 8:16 PM:
{"time" : "2023-10-06 18:16:15", "model" : "Bresser 3CH sensor", "id" : 228, "channel" : 2, "battery" : "OK", "temperature_C" : 15.167, "humidity" : 67, "mic" : "CHECKSUM"}
QoS: 0 - Retain: false
Message 78 received on rtl433 at 8:16 PM:
{"time" : "2023-10-06 18:16:05", "model" : "Bresser 3CH sensor", "id" : 76, "channel" : 1, "battery" : "LOW", "temperature_C" : 16.722, "humidity" : 72, "mic" : "CHECKSUM"}
QoS: 0 - Retain: false
Message 77 received on rtl433 at 8:16 PM:
{"time" : "2023-10-06 18:16:03", "model" : "Bresser 3CH sensor", "id" : 123, "channel" : 1, "battery" : "LOW", "temperature_C" : 16.111, "humidity" : 70, "mic" : "CHECKSUM"}
QoS: 0 - Retain: false
Message 76 received on rtl433 at 8:16 PM:
{"time" : "2023-10-06 18:16:02", "model" : "Ambient Weather F007TH Thermo-Hygrometer", "device" : 132, "channel" : 1, "battery" : "OK", "temperature_C" : 19.778, "humidity" : 69, "mic" : "CRC"}
QoS: 0 - Retain: false
Message 75 received on rtl433 at 8:16 PM:
{"time":"2022-09-28 11:59:10","model":"Ambient Weather F007TH Thermo-Hygrometer","device":220,"channel":3,"battery":"OK","temperature_C":12.611,"humidity":73,"mic":"CRC"}
QoS: 0 - Retain: true
Message 74 received on prologue at 8:15 PM:
{"model":"Prologue sensor","id":"5","rid":206,"channel":"2","battery":"OK","button":0,"temperature_C":17.1,"humidity":75}
QoS: 0 - Retain: false
Message 73 received on prologue at 8:15 PM:
{"model":"Prologue sensor","id":"5","rid":122,"channel":"3","battery":"OK","button":0,"temperature_C":22.9,"humidity":55}
QoS: 0 - Retain: false
Message 72 received on prologue at 8:15 PM:
{"model":"Prologue sensor","id":"5","rid":164,"channel":"1","battery":"OK","button":0,"temperature_C":21.6,"humidity":64}
QoS: 0 - Retain: false
Message 71 received on prologue at 8:14 PM:
{"model":"Prologue sensor","id":"5","rid":206,"channel":"2","battery":"OK","button":0,"temperature_C":17.1,"humidity":75}
QoS: 0 - Retain: false
Message 70 received on prologue at 8:14 PM:
{"model":"Prologue sensor","id":"5","rid":122,"channel":"3","battery":"OK","button":0,"temperature_C":23,"humidity":55}
QoS: 0 - Retain: false
Message 69 received on prologue at 8:14 PM:
{"model":"Prologue sensor","id":"5","rid":164,"channel":"1","battery":"OK","button":0,"temperature_C":21.6,"humidity":64}
QoS: 0 - Retain: false
Message 68 received on prologue at 8:14 PM:
{"model":"Prologue sensor","id":"5","rid":122,"channel":"3","battery":"OK","button":0,"temperature_C":23.1,"humidity":55}
QoS: 0 - Retain: false
Message 67 received on prologue at 8:14 PM:
{"model":"Prologue sensor","id":"5","rid":164,"channel":"1","battery":"OK","button":0,"temperature_C":21.6,"humidity":64}
QoS: 0 - Retain: false
Message 66 received on prologue at 8:13 PM:
{"model":"Prologue sensor","id":"5","rid":206,"channel":"2","battery":"OK","button":0,"temperature_C":17.1,"humidity":75}
QoS: 0 - Retain: false
Message 65 received on prologue at 8:13 PM:
{"model":"Prologue sensor","id":"5","rid":122,"channel":"3","battery":"OK","button":0,"temperature_C":23.2,"humidity":55}
QoS: 0 - Retain: false
Message 64 received on prologue at 8:13 PM:
{"model":"Prologue sensor","id":"5","rid":164,"channel":"1","battery":"OK","button":0,"temperature_C":21.7,"humidity":64}
QoS: 0 - Retain: false
Message 63 received on prologue at 8:13 PM:
{"model":"Prologue sensor","id":"5","rid":206,"channel":"2","battery":"OK","button":0,"temperature_C":17.1,"humidity":75}
QoS: 0 - Retain: false
Message 62 received on prologue at 8:13 PM:
{"model":"Prologue sensor","id":"5","rid":122,"channel":"3","battery":"OK","button":0,"temperature_C":23.2,"humidity":55}
QoS: 0 - Retain: false
Message 61 received on prologue at 8:12 PM:
{"model":"Prologue sensor","id":"5","rid":164,"channel":"1","battery":"OK","button":0,"temperature_C":21.7,"humidity":64}
QoS: 0 - Retain: false
Message 60 received on prologue at 8:12 PM:
{"model":"Prologue sensor","id":"5","rid":206,"channel":"2","battery":"OK","button":0,"temperature_C":17.1,"humidity":75}
QoS: 0 - Retain: false
I am new to HA, and all the guides I have seen do not quite apply to my case.