Docs on Domoticz MQTT Connection
Posted: Tuesday 02 July 2024 9:39
I'm trying to implement a Python plugin for a custom hardware talking MQTT.
And I'm having a hard time figuring out how to talk to MQTT server via domoticz MQTT connection.
The API seems to be quite low-level, with JSON describing MQTT package. And there's seem to be no documentation describing what keys I use to describe a packet, which makes it very hard to implement communication with MQTT server.
Also, I had an idea to use something like paho-mqtt to communicate with server, but Domoticz MQTT connection has it's own lifecycle and callbacks, where other MQTT clients wouldn't fit.
So, my questions are:
- is there a doc (or at least some good examples) on "protocol" used by Domoticz MQTT connection to communicate with MQTT server?
- is there a way to integrate MQTT client lib (e.g. paho-mqtt) into Domoticz plugin?
And I'm having a hard time figuring out how to talk to MQTT server via domoticz MQTT connection.
The API seems to be quite low-level, with JSON describing MQTT package. And there's seem to be no documentation describing what keys I use to describe a packet, which makes it very hard to implement communication with MQTT server.
Also, I had an idea to use something like paho-mqtt to communicate with server, but Domoticz MQTT connection has it's own lifecycle and callbacks, where other MQTT clients wouldn't fit.
So, my questions are:
- is there a doc (or at least some good examples) on "protocol" used by Domoticz MQTT connection to communicate with MQTT server?
- is there a way to integrate MQTT client lib (e.g. paho-mqtt) into Domoticz plugin?