Multiple devices in Home Assistant

683 views
Skip to first unread message

MkoMarac

unread,
Aug 2, 2018, 6:06:23 AM8/2/18
to rtl_433
I have searched this topic, and haven't found how to use multiple devices in HA

is this even possible?

this is setup from Home Assistant


{
  "mqtt_host": "myMQTThost",
  "mqtt_user": "myUsername",
  "mqtt_password": "myPassword",
  "mqtt_topic": "mytopic",
  "protocol": 16,
  "frequency": 319500000,
  "gain": 60,
  "frequency_offset": 350
}


I am using rtl_433 to import weather station data into Home Assistant and would like to get Vaillant data from heater unit and water tank. 
How to collect all of data and import them through MQTT into Home Assistant?


is it possible to send commands (or maybe MQTT payloads)?  the goal is to control Vaillant wireless thermostat and Velux sky windows with Home Assistant?

thanks



Christian Zuckschwerdt

unread,
Aug 2, 2018, 6:35:04 AM8/2/18
to rtl_433
For MQTT you currently need a script to pipe the output to mosquitto_pub, or use a bridge like described here http://triq.net/articles/rtl-433-networking

rtl_433 has no "sending" capability.

I don't know how that setup given in your question controls rtl_433, but there is no "gain" on rtl-sdr and a frequency_offset is not useful at all.

MkoMarac

unread,
Aug 2, 2018, 6:48:20 AM8/2/18
to rtl_433
this is working settings copied from Home Assistant setup. and this works
if rtl_433 has no sending capability, is there option to set this up to listens two frequencies, and how?

thanks for support

Pat Rooney

unread,
Aug 5, 2018, 3:48:47 PM8/5/18
to rtl_433
You can use the -R option to specify more than one device to listen for.

Tommy Vestermark

unread,
Aug 7, 2018, 10:36:43 AM8/7/18
to rtl_433
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...

MkoMarac

unread,
Aug 7, 2018, 3:16:39 PM8/7/18
to rtl_433
Where to put this option in this syntax?:
{
  "mqtt_host": "myMQTThost",
  "mqtt_user": "myUsername",
  "mqtt_password": "myPassword",
  "mqtt_topic": "mytopic",
  "protocol": 16,
  "frequency": 319500000,
  "gain": 60,
  "frequency_offset": 350
}

these are settings in Home Assistant to tune rtl 433 compatible tuner to listen weather station.
and where can I insert this -R option?
Reply all
Reply to author
Forward
0 new messages