Please help
Maybe use the IP address of your hassio server instead of hassio.local?
ok I’ll try thanks
No problem!
I’ve just updated my repo to include an add-on that uses rtl_433 to provide a 433MHz RF to MQTT bridge.
This allows use of a cheap USB DVB-T tuner (based on RTL chipset) to be re-purposed as a software defined radio… in this case specifically to sniff and decode 433MHz signals.
Currently 93 protocols are supported.
Addon details here:
rtl_433 details, including supported protocol list here:
Note that the addon requires a subdirectory to be created in your hassio config dir that will include the script that executes rtl_433. This is to provide flexibility for the numerous features that rtl_433 provides, and any other flexibility that script provides - e.g.
e.g.
- alternative frequencies/frequency hopping
- using multiple protocols
- parsing/transforming JSON before publishing to topic etc
This addon currently builds locally.
Feedback welcome.
I’m getting this error when trying to start it,
starting version 3.2.2
/rtl2mqtt.sh: line 1: syntax error: unexpected newline
Btw, Thanks for making this addon as well as Dasher! Very useful
Did you copy the rtl2mqtt.sh into hassio config dir per the readme step 3?
Copy rtl2mqtt.sh to your hass.io config dir in a subdir called rtl4332mqtt. i.e. …/config/rtl4332mqtt/rtl2mqtt.sh This allows you to edit the start script if you need to make any changes
The reason for this is that rtl_433 is flexible and I saw lots of ways people are using it.
e.g. maybe you want to use a different freq (e.g. Honeywell @ 345mhz) or you want to hop frequencies, or you want to use two protocols etc.
So I decided to keep the script outside of the docker container so people can modify it as needed.
To grab the script easily you can copy it from here:
https://raw.githubusercontent.com/james-fry/hassio-addons/master/rtl4332mqtt/rtl2mqtt.sh
Never mind, the link to the file worked. sorry bout that.
starting version 3.2.2
Starting RTL_433 with parameters:
MQTT Host =
MQTT User =
MQTT Password =
MQTT Topic = homeassistant/sensor/currentcost
RTL_433 Protocol = 44
Registering protocol [1] “CurrentCost Current Sensor”
Registered 1 out of 93 device decoding protocols
No supported devices found.
This is where is gets a bit harder to debug…
Are you running hassio on resinos - ie from the Raspberry Pi image?
If so case I’m not sure how/if I can help debug as I am running hassio on ubuntu.
Its possible that resinos does not have the necessary RTL DVB drivers/kernel modules.
If you are running on a standard linux you can check that a device was found with lsusb
.
You should see “Realtek Semiconductor Corp. RTL2838 DVB-T”
e.g.:
james@hassio:~$ lsusb
Bus 001 Device 007: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
With hassio resinos/image you can check this with the terminal addon from here:
In the terminal run lsusb
:
➜ / lsusb
Bus 001 Device 007: ID 0bda:2838
Bus 002 Device 002: ID 0e0f:0003
Bus 002 Device 003: ID 0e0f:0002
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0001
It’s the device ID 0bda:2838 that you’re looking for…
https://www.linuxtv.org/wiki/index.php/RealTek_RTL2832U
Not sure how far this gets us with debugging, but it’s a start.
Could be that the USB device ID will still be shown even if the kernel mod/drivers are not loaded. I don’t know I’m afraid.
If you are running rpi image maybe there are some others on in the community here that can help further?
Nice!
Thanks for updating with your success…
Thanks for your great job!
To share my setup: i had a RTL-capable usb tuner (https://www.amazon.it/gp/product/B013Q94CT6) and got from AliExpress a cheap 433MHz temperature and humidity sensor.
The configuration was quick and easy
{
"mqtt_host": "192.168.2.33",
"mqtt_user": "homeassistant",
"mqtt_password": "xxxxxxxx",
"mqtt_topic": "homeassistant/sensor/temperature",
"protocol": 3
}
This is the received payload (got from mqtt-spy):
{"time" : "2017-11-05 15:24:28", "model" : "Prologue sensor", "id" : 5,
"rid" : 198, "channel" : 1, "battery" : "OK", "button" : 0,
"temperature_C" : 21.500, "humidity" : 62}
This is the sensor configuration:
- platform: mqtt
name: sensore_433_temperatura
state_topic: "homeassistant/sensor/temperature"
unit_of_measurement: "°C"
value_template: '{{ value_json.temperature_C }}'
- platform: mqtt
name: sensore_433_umidita
state_topic: "homeassistant/sensor/temperature"
unit_of_measurement: "%"
value_template: '{{ value_json.humidity }}'
The final result:
Glad it’s working for you! Thanks for the feedback
Dasher isn’t auto starting despite being told to do so.
I have it configured properly and it starts/works fine when I hit start. Just not auto starting for some reason.
Hello folks,
I was reading this topic and also several other around the internet and I must say, I’m confuse.
I have a RPI with HASSIO and now I would like to integrate some RF modules (https://www.ebay.co.uk/itm/New-1-5PCS-315-433-Mhz-RF-Transmitter-Receiver-Wireless-Module-Arduino-ARMMCU/272472455163?hash=item3f709fb7fb:m:m7aadyB7z1lfOEfQW2zc6DA) to work with my shutter motor.
My problem is, how do I know that modules are visible into the HASSIO?
How do I scan the codes in use?
OK, I’m going just start with these questions :).
Thank you in advance!
BR,
jponte
Hi there @jponte, I made a simple addon that scan the codes using those cheap receivers and writes them in a MQTT sensor:
Thank you for your reply… probably is a silly question, but how do I install your addon? I’m trying via browser adding the link to your addon and then I’m saving that link (https://home-assistant.io/hassio/installing_third_party_addons/), but then nothing appears to me
@jponte, you have just to add this URL:
https://github.com/pantomax/hassio-addons
in the hassio add-ons, save and then you should see a new list of addons