I’ve been trying to edit the gpio-adapter code into an adapter that reads mqtt messages sent by the rtl_433 tool. So rtl_433 will publish JSON messages onto an mqtt topic, and my addon will subscribe to that topic.
But I seem to be doing something wrong. I pushed my WIP code to https://github.com/jgrgt/rtl-433-adapter It’s quite crappy at the moment due to me trying all kinds of things to get it to work.
Also, right now I ‘test’ by coding straight on my raspberry pi and restarting the gateway after every edit. This is flawed in multiple ways (not a lot of useful logging, no debugging possible) so I’m looking for a better way?
Another question: how do I reset my gateway’s things (including logs) to ‘empty’? Right now I need to disable the addon, re-enable it and remove the thing using sqlite3…
Any help is appreciated.