Page 1 of 1

Good idea to use a MQTT client libray in python plugin ?

Posted: Tuesday 26 June 2018 14:15
by Masure
Hi,

I'd like to create a plugin to manage a heatpump. The plugin will create and manage a bunch of virtual devices (power switch, desired temp, fan power level selector, ...).

The heatpump already communicates through MQTT.

Can I - and is it good to - use a MQTT client library inside a domoticz python plugin ?

Re: Good idea to use a MQTT client libray in python plugin ?

Posted: Tuesday 26 June 2018 14:22
by SweetPants
There is already MQTT support is the plugin framework. Take a look at: https://github.com/emontnemery/domoticz ... /plugin.py

Re: Good idea to use a MQTT client libray in python plugin ?

Posted: Tuesday 26 June 2018 17:22
by Masure
How could I miss that :roll: thank you !

From what I understand, there is not the limitation of the hardcoded "domoticz/in" "domoticz/out" topic used in the MQTT gateway. If so this is perfect for my usage.