I have a setup working with piping data from rtl_433 to Home Assistant via MQTT.
It is quite easy to get the output from rtl_433 to MQTT. As shown in the
github page, the following command works in Linux:
rtl_433 -F json -U | mosquitto_pub -t home/rtl_433 -l
Getting MQTT data into Home Assistant is a bit more complicated - especially since HA, cannot easily filter messages from individual sensors based on content.
But add the following line to configuration.yaml:
mqtt:
broker: <IP address of MQTT broker>
Then I e.g. add the following to sensors.yaml:
- platform: mqtt
name: "Living Room Temp"
state_topic: "home/rtl_433"
filter_template: "{{ value_json['model'] == 'Fine Offset Electronics, WH2 Temperature/Humidity sensor' and value_json['id'] == 31 }}"
value_template: "{{ value_json['temperature_C'] }}"
unit_of_measurement: "°C"
force_update: true
However beware that the "filter_template" statement is not part of standard Home Assistant, but something I implemented in a fork here: https://github.com/vestom/home-assistant.github.io/tree/mqtt_filter_template
OpenHAB is apparently much more flexible wrt. MQTT messages, and I might change to that myself in the future...