Repository: Dasher; RTL433 to MQTT Bridge; Ink printer ink reporting

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?

Working now

1 Like

Nice!
Thanks for updating with your successā€¦

Thanks for your great job! :+1:

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.

32

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:

53

1 Like

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

1 Like

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 :frowning:

@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

1 Like

Thanks. Itā€™s installed.

Do I need something special to send the signals to my RF devices?

I have this:

switch

  • platform: rpi_rf
    gpio: 17
    switches:
    estores_sala_baixo:
    pulselength: 711
    protocol: 5
    code_on: 8388608
    code_off: 133742

But I think I shouldnā€™t use a switch, because I just want to send the signal I donā€™t need to have the button ON.

You could use a script or a scene if you want only 1 button

Installation/Build of Dasher killed my hass docker instanceā€¦ Had to restart it via console but after that dasher was installed to hass! Created my config via SSH and launched docker, works great. Thanks Amazon for the free Buttons!

1 Like

Glad you got it working OK.
Thanks for the feedback.

RTL is only a receiver since it uses hardware that was originally designed to receive TV signals.
It can listen for 433mhz sensors but there is no capability to transmit.
You need to look for another solution if you need to control 433 devices.

Hi,

i am not able to install it, if I press install dasher, nothing happens, thats not true, it looks like its trying to install but then no luck.

Its clean current hassio install on a ubuntu server 16.04 instance.
All other add ons (appdeamon, samba, Mosquitto broker, Check Home Assistant configuration and Homebridge) are working fine.

Any ideas ?

Regards
Crey

Weird. Whats in the hassio logs? (from hassio advanced menu)

Hi,

this is what I get:

17-12-14 22:12:56 INFO (SyncWorker_2) [hassio.dock.addon] Start build f3248fb7/amd64-addon-dasher:0.2
17-12-14 22:12:56 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 410, in start
    resp = yield from self._request_handler(request)
  File "/usr/lib/python3.6/site-packages/aiohttp/web.py", line 325, in _handle
    resp = yield from handler(request)
  File "/usr/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 93, in impl
    return (yield from handler(request))
  File "/usr/lib/python3.6/site-packages/hassio/api/util.py", line 33, in wrap_api
    answer = await method(api, *args, **kwargs)
  File "/usr/lib/python3.6/site-packages/hassio/addons/addon.py", line 500, in install
    if not await self.docker.install(self.last_version):
  File "/usr/lib/python3.6/site-packages/hassio/dock/util.py", line 18, in wrap_api
    return await method(api, *args, **kwargs)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.6/site-packages/hassio/dock/addon.py", line 248, in _install
    return self._build(tag)
  File "/usr/lib/python3.6/site-packages/hassio/dock/addon.py", line 261, in _build
    image = self.docker.images.build(**build_env.get_docker_args(tag))
  File "/usr/lib/python3.6/site-packages/docker/models/images.py", line 179, in build
    raise BuildError(chunk['error'])
docker.errors.BuildError: Please provide a source image with `from` prior to commit

I am using a generic ubuntuserver as you can see here:

17-12-14 22:12:33 INFO (MainThread) [hassio.host_control] Receive from HostControl: { "type": "generic", "version": "0.3", "last_version": "0.3", "hostname": "vmubunutuserver01", "features": ["shutdown", "reboot", "update"], "os": "GNU/Linux" }.