homebridge-mqttthing icon indicating copy to clipboard operation
homebridge-mqttthing copied to clipboard

No MQTT dispatch handler for WILDCARD topic

Open HolgerAusB opened this issue 3 years ago • 6 comments

I have two raspberrys working on different corners of my house. One of them is the mosquitto server/dispatcher. Both have a rtl_433 receiver to catch signals of 433 MHz weather-station-sensors and two doorbells. Because of the doorbells with self-havesting energy and low signal, I need the two pi-receivers.

As I want to know, which of my receivers cought a signal, the topc contains pi1 or pi2 in the topic, everything else is identical:

rtl/pi1/55/77/Acurite-606TX/temperature_C
rtl/pi2/55/77/Acurite-606TX/temperature_C

while 55 is the protocol-preset of rtl_433, and 77 the id of the transmitter.

Normally one can subscribe to both topics with topic rtl/+/55/77/Acurite-606TX/temperature_C with the + as wildcard

mqttthing does successfully subscribe that wildcard-topic but can't handle the message which contains pi1 or pi2 instead of +.

Homebridge-Log:
Warning: No MQTT dispatch handler for topic [rtl/pi2/55/84/Acurite-606TX/battery_ok]
Warning: No MQTT dispatch handler for topic [rtl/pi2/55/84/Acurite-606TX/temperature_C]

HolgerAusB avatar Nov 20 '21 13:11 HolgerAusB

One solution would be to use something like nodered to subscribe to the wildcard topic and then republish the message on a fixed topic. It would be a very simple flow and nodered is very powerful to support future workflows you might need.

rbswift avatar Nov 26 '21 05:11 rbswift

Thank You @rbswift but I will not install a large extra software/server just for fixing a problem of mqttthing. David has applied the "feature request" tag, so I will wait in humility and gratitude.

Meanwhile I took out the server-name out of the topic-path.

HolgerAusB avatar Dec 06 '21 15:12 HolgerAusB

rbswift's suggestion is a good one, but I understand it would be good if this can be implemented within mqttthing to save the additional infrastructure. However, to set your expectations I am only finding time to work on mqttthing occasionally at the moment - so it won't get added immediately...

arachnetech avatar Dec 06 '21 16:12 arachnetech

Yes, I thought so. That's why I wrote '...wait in humility and gratitude'. It is not urgent for me, so I can wait - for as long as it may take.

BTW: Thank you for your work. The plugin was a great help to get my two 433Mhz doorbells working (as motion sensors).

HolgerAusB avatar Dec 06 '21 18:12 HolgerAusB

Ditto, i use tasmota full topics with deviceid, having a topic token would be sweet. I assumed this was automatic already.

tablatronix avatar Jan 02 '22 01:01 tablatronix

Same need here, it seems like mqtthing cannot handle the + wildcard. Any update on this Dave? Thank you very much for your work, this is a great plugin!

halk1982 avatar Mar 11 '23 13:03 halk1982