hkknx-public icon indicating copy to clipboard operation
hkknx-public copied to clipboard

[Scripts] Support for MQTT

Open nanosonde opened this issue 3 years ago • 1 comments

Concerning external packages: Can I also use this package? There is already the support for HTTP, but MQTT would also be nice.

nanosonde avatar Jun 17 '21 09:06 nanosonde

I second that. Maybe even on a more integrated approach. A switch (or any other action) could be a call to http oder mqtt instead of writing to a group address.

bernd70 avatar Dec 21 '21 14:12 bernd70

Access to MQTT via a client implementation sounds like a great idea. This way you can send KNX values to MQTT and vice versa.

Would you also need to run an MQTT broker in hkknx?

brutella avatar Apr 05 '23 13:04 brutella

Opps, this is an old thread... :-)

Right now I do not use Homekit a lot. Actually I only use three actions: "Turn on/off Espresso Machine", "Activate Sun Protection in Office" and "Open/Close Garage Door".

But regarding the question: I dont think HKKNX needs a MQTT broker.. When using MQTT there is typically a MQTT instance like mosquitto running somewhere.

And if hkknx could both publish and subscribe it caould act as a gateway between Homekit and any other instance supporting MQTT.

bernd70 avatar Apr 05 '23 22:04 bernd70

The mqtt package is now available in 2.7.0-b1. Read more here → https://hochgatterer.me/de/hkknx/docs/scripts/mqtt/ (German only for now)

brutella avatar May 17 '23 14:05 brutella