anthonywebb / homebridge-cbus

CBus plugin for homebridge
MIT License
35 stars 20 forks source link

Can/could the cbus plugin control HomeBridge accessories? #126

Open BradJJ2000 opened 2 years ago

BradJJ2000 commented 2 years ago

I have a HomeBridge plugin to control my marantz receivers (Denon TV plugin). It works great for HomeKit control of my receivers.

I want to be able to push a button on a cbus wall switch and turn on the receiver as well. I added some logic in my cbus logic controller to send the command to the Marantz Receiver via the Marantz's telnet interface but the HomeBridge plugin gets in the way so its completely unreliable.

But then I thought of the Google HomeBridge plugin and how I can control HomeBridge accessories via my Google Home devices, so technically there must be an ability for the cbus plugin to also expose HomeBridge accessories to CBUS.

Any thoughts on this? It would be an awesome feature, using CBUS to control any accessory HomeBridge supports.

For any HomeBridge guru's reading, another option would be for my cbus logic controller to interface into some HomeBridge API to control accessories but I can't see that one exists.

Any help would be appreciated.

JasonY00 commented 2 years ago

Hi Brad,

I'm not sure if you can achieve what you want inside homebridge, however, have a look at using a MQTT plugin for homebridge and Node Red. An MQTT broker and Node Red can be installed on the same pi that homebridge is running on. Node Red has logical operations and data massaging making your homebridge data available for all sorts of external devices. It has dedicated homebridge support. This may be an external way to monitor c-bus inputs to homebridge and use them to control other homebridge plugins.

I was investigating this to display c-bus data on another pi based MagicMirror display using MQTT and control C-Bus via the MagicMirror using the google assistant plugin.

Cheers

Jason

SeanHama commented 2 years ago

Im currently using Node-red with this plugin and it works really nicely..

On Wed, Oct 13, 2021 at 10:03 AM JasonY00 @.***> wrote:

Hi Brad,

I'm not sure if you can achieve what you want inside homebridge, however, have a look at using a MQTT plugin for homebridge and Node Red. An MQTT broker and Node Red can be installed on the same pi that homebridge is running on. Node Red has logical operations and data massaging making your homebridge data available for all sorts of external devices. It has dedicated homebridge support. This may be an external way to monitor c-bus inputs to homebridge and use them to control other homebridge plugins.

I was investigating this to display c-bus data on another pi based MagicMirror display using MQTT and control C-Bus via the MagicMirror using the google assistant plugin.

Cheers

Jason

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/anthonywebb/homebridge-cbus/issues/126#issuecomment-941721657, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANYPXQTHN2V42LZOMO6HTW3UGS5CZANCNFSM5F3VHT2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

BradJJ2000 commented 2 years ago

Hi Jason,

I'm running HomeBridge on QNAP in docker. Do you know if this solution needs NodeRed and MQTT in the HomeBridge container or if they can access the data they need from a separate container?

I was wanting to avoid adding more components, but its an option so thanks for the input. I'll look into it further.

Ahhh, Magic Mirror. Another Home Automation project in my backlog :)

JasonY00 commented 2 years ago

To be honest, I run my homebridge (2 instances), MQTT and Node Red on a Win10 machine. I also have a pi that runs another homebridge instance for testing code, so I can't help you with docker. (I do have two 6 disk QNAPS here as well but don't use them for this purpose.)

The reason I looked into the MQTT/NodeRed was to get CBus data and temperatures etc. to display on the mirror and control cbus from the mirror with Google via the homebridge-gsh plugin.

SeanHama above may be able to help with your docker question...

Perhaps we can hook up later re: MagicMirror....

Cheers Jason