Integration with HomeBridge

Functionality and usage of the OpenNethome Server
Post Reply
perjarle
Posts: 32
Joined: Wed Aug 03, 2016 8:08 am

Integration with HomeBridge

Post by perjarle »

Hello
I'm new to this forum, and have just installed OpenNetHome to my RPi.

I wonder if there is a way to integrate OpenNetHome with HomeBridge?
This would enable voice-controll with iOS Siri

/PJ
krambriw
Posts: 86
Joined: Sun Jan 04, 2015 8:48 am

Re: Integration with HomeBridge

Post by krambriw »

Well, with MQTT support in ONH you have a solution

https://github.com/ilcato/homebridge-mqttswitch

Read more....
https://github.com/nfarina/homebridge/issues/453
perjarle
Posts: 32
Joined: Wed Aug 03, 2016 8:08 am

Re: Integration with HomeBridge

Post by perjarle »

Thank you for your reply krambriw :)

Could you explain more how this can be a solution?

A small example would be appreciated

/PJ
krambriw
Posts: 86
Joined: Sun Jan 04, 2015 8:48 am

Re: Integration with HomeBridge

Post by krambriw »

MQTT is a standard messaging system with standardized api/protocol using a broker. You can subscribe and publish messages to the broker and if you are a client subscribing you will receive new messages by notification.

This means that if both softwares, in this case HomeBridge and ONH supports MQTT, it means the systems can be linked together and exchange messages with each other. That is what I tried to explain.

There are many more things to say about MQTT but it would take much more time so there I suggest you self-study the topic further. A good link you have here: http://www.hivemq.com/blog/mqtt-essentials/

Regarding the MQTT support in ONH, there is a separate thread in this forum that I recommend: viewtopic.php?f=5&t=101

Regarding examples, that could eventually become real later when ONH has MQTT support fully implemented (in current version ONH can subscribe and receive messages).

For the HomeBridge, I guess you have better know-how, I do not use HomeBridge myself, I just saw that there is a HomeBridge-mqttswitch. Actually you could start already to experiment, setting up the HomeBridge-mqttswitch and connect to a broker/topic on the net, then in ONH subscribe to the same and you should be able to see messages from HomeBridge arriving in ONH


Best regards, Walter
Post Reply