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

Python and python framework

Moderator: leecollings

Post Reply
Masure
Posts: 35
Joined: Sunday 22 April 2018 11:23
Target OS: Windows
Domoticz version:
Contact:

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

Post 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 ?
SweetPants

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

Post by SweetPants »

There is already MQTT support is the plugin framework. Take a look at: https://github.com/emontnemery/domoticz ... /plugin.py
Masure
Posts: 35
Joined: Sunday 22 April 2018 11:23
Target OS: Windows
Domoticz version:
Contact:

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

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest