Homey itself doesn’t use MQTT at all, so the broker is “only” useful if you need to run an MQTT broker for devices that use it (like the Sonoff Tasmota devices) and don’t have an always-on computer to run that broker on.
Which does give me a new app idea: an app that broadcasts all realtime data from Homey over MQTT, like capability changes, new/deleted devices, and whatever else.
I’v got Homey working as a client, Node Red as a client and an Docker image as MQTT broker.
I use it to send data (like sensors temp data) via MQTT to a SQL database which is then plotted to a nice graph using Grafana.
Also build my custom dashboard for use on a tablet in Node Red dashboard.
Node red can also act like a broker.
Install the MQTT Musquito client on Homey and use the same topics to send and receive data to and from Homey.
I used this client: https://apps.athom.com/app/nl.scanno.mqtt
You could run node-red on a docker image on your NAS (if you have one). It is also possible to install a MQTT broker in node-red. For an example of an MQTT broker installation in node-red take a look here
Hi Marlon, that is what I am running already, Mosquitto, Node-Red with Influx database and Grafana are already running in docker on my NAS. What I am looking for is an easy way to get all messages with mqtt instead that I have to create many extra flows to get the info. So connection which transfer all messages to mqtt.
I see your point. I don’t know if what you want is possible with mqtt and node-red.
Maybe worth checking out is the Prometheus exporter app for Homey (Beta). I haven’t used it yet, though. (Still on my todo list) As an added bonus, Grafana supports querying Prometheus. Take a look a the info here