[RELEASE] Homebridge Hubitat v2.0

So I'm a Carro fan owner (4 of them) and have them integrated into the Carro iOS app for remote control. I use Hubitat, Alexa (Carro fan is in Alexa but only white light works not yellow) , and Home Assistant. I would like to get either Home Assistant or Hubitat to be able to turn on the light of the fan when a presence sensor (mm wave) detects occupancy. I currently have the Linptech presence sensor in Home Assistant and created a "toggle" helper in HA to initiate an Alexa Routine when I press a remote button but I want the presence sensor to be able to turn the light on when I walk into the room and am there during the day, then when I leave the room and occupancy is no longer detected for a while it will shut off the light.

Are you still using the Carro fans or have you switched to another "smart" fan? If you still have them, how are you controlling them, which platform are you using, and what functionality are you able to control (lights yellow/white, fan speed, summer/winter rotation)?

I installed Homebridge. It's up and running. I created a new home in HomeKit and added the Homebridge. No problem there. I installed the HE Homebridge app, again no problem. I installed the Plugin in Homebridge. All well so far.

In Homebridge I click on accessories and can see all my HE stuff even tho I didn't select anything in the app. I selected one item in the app for testing. Still no difference.

Here's the question. To add it from Homebridge to my Homekit app it asks for a code. How can I get that code from the HE device?

What?

Did you configure the Homebridge plugin using the settings export from the HE app?

All you should have to do it add the devices within the HE integration app. Then at the bottom of that app make sure you click through done until you get back to Hubitat apps list.

In the Homebridge logs you should see some messages about updating devices.

Once Homebridge is setup you dont have to do anything in the actual Homebridge web UI, only the HE integration app.

Figured that out right after I posted the question. So my bad...
Thanks for responding.

1 Like

In the HE app I just have a few devices selected. And those devices are the only ones that end up in Home from Homebridge. However, in the devices tab of Homebridge all of my HE devices are listed. Is this normal?

In Accessories in Homebridge all your devices show? Thats not normal. I am thinking you possibly shared them all at some point and then removed them. It might be hanging onto the cached info in case you share it again. In Settings near the bottom there is a section where you can remove devices. I vaguely remember having to use this before but not sure why.

I'm pretty sure I didn't share them all at any time. I don't see anywhere in the app to select all, so I know I didn't manually select them all.

I don't see where to remove devices. I guess I can remove the ones I have selected and redo it??

EDIT: I restarted Homebridge, no change. Did a done in the HE Homebridge app, no change. Deleted a device in HE, no change. Added device back in in HE. Restarted Homebridge again and now it only shows the devices I have selected. So far anyway.

I had a 10 sec power outage this morning. Hub and router on ups so no issues there. One issue still remains. Homebridge to Home is not working. The device’s from HE show up in Homebridge but in home show not responding. I restarted everything. Deleted the bridge in home , readded it. Devices came back with still no response.

I realize this is a Homebridge issue but wondering if anyone has any suggestions of what else to try.

Did you restart your "Home Hub", Apple TV and Home Pod Minis?

1 Like

Everthing has been restarted, rebooted, etc.

By the way I figured out why all the devices showed up before. I unselected everything in the HE Homebridge app and then all the devices showed up in Homebridge just like before. Once I added some back in, then restarted Homebridge then only the ones selected show up. Still no response in Home tho.

Hmm, Homebridge has been always pretty solid for me. I know you said router did not get powered off, did HE or HB server change IPs at all? You can also test the comms from the plugin to HB on the HE side, click the Generate config section, there is a test button in there.

Also check in your home app on your mobile, Settings > Hubs & Bridges. Make sure it is seeing your Home Hub(s) and they are online. I assume you have at least one home hub device?

NO IP's have changed. I deleted all the devices from the HE app. Then restarted everything. I deleted the bridge from Home. Then added in just a couple devices. Then in Homebridge I turned off the child bridge. Then created a new child bridge. Added that to Home. Home adds it in just fine, sees the devices, etc. But they all say no response still.

I think my house is haunted. Never had a short power outage affect things the way this one has.....

I rebooted everything again. (didn't realize the wife was up when I rebooted the router, heard about that...). Anyway, same result.

As a side note. I have a few Matter devices initially paired in Home (different home then the one in Homebridge) then connected to HE. I found after the power outage I had to go into HE settings, disable matter then re-enable to get them to all start connecting to HE again. Everytime I reboot the router I have to do this.

Test Hubitat to Homebridge:

Test Homebridge accessories: in Homebridge UI go to Accessories tab and try one.

There have been a lot of recent Homebridge updates, make sure the app is up to date.

What kind of router do you have? Are you running anything more complex than a standard flat network?

Something has seriously gone wrong with either my network, or some device dragging it down, or something. There is all kinds of weird things happening. Having to go thru things one at a time to try and figure it out. Getting frustrating. Not to mention the WAF.

Found it, Finally!!!. Apparently one of the mesh devices went south. Even tho it said it was fine it apparently wasn't. I unplugged it and things started working again. Course I had to do a lot of re-configuring since I had un-configure a lot of stuff. Not how I intended to spend my Monday morning, that's for sure. Thanks for all the help.