Page 1 of 1

Integration with HomeBridge

Posted: Wed Aug 10, 2016 8:07 am
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

Re: Integration with HomeBridge

Posted: Thu Aug 11, 2016 10:18 am
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

Re: Integration with HomeBridge

Posted: Mon Aug 15, 2016 9:12 am
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

Re: Integration with HomeBridge

Posted: Mon Aug 15, 2016 5:42 pm
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