Hello,
with rtl_433 i get this data:
pi2 = {“time” : “2024-07-02 11:15:01”, “model” : “Oregon-THN132N”, “id” : 83, “channel” : 1, “battery_ok” : 1, “temperature_C” : 22.400}
how can i get this mqtt/json data in homeassistant?
mqtt
sensor
- name: Temperatuur-433
state_topic: rtl_433/pi2
unique_id: temperature_C
value_template: “{{ value_json.temperature_C | float }}”
unit_of_measurement: " °C"
device_class: temperature
here is an example of an mqtt.yaml entry I have for data pulled from rtl_433 (in this case the temp of a freezer with an rtl_433 sensor inside). I personally find entering them manually in my mqtt is easier, the mqtt auto discovery will pull in a bunch of unwanted entities.