Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Mqtt sensor from two differenct devices

$
0
0

@Juergen wrote:

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}

second:
{“time” : “2019-12-23 00:55:24”, “model” : “Fine Offset Electronics WH1080/WH3080 Weather Station”, “msg_type” : 0, “id” : 101, “temperature_C” : 5.600, “humidity” : 76, “direction_deg” : 90, “speed” : 7.344, “gust” : 8.568, “rain” : 404.700, “battery” : “OK”, “mic” : “CRC”}

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

When I run in config.yaml

   - platform: mqtt
    name: "Wetterstation Humidity"
    state_topic: "RTL_433/JSON"
    unit_of_measurement: '%'
    value_template: "{{ value_json.humidity }}"
    availability_topic: "RTL_433/JSON"

How can I ensure to get it from the weather station as there are many humidity values on the same topic?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles