Did an update kill HAbridge connectivity? [YES]

I just noticed it a few days ago, but I no longer can control devices that are connected to my HABridge. So today, I made a snapshot, deleted the Philips Hue Integration, re-added it. Now when I click on connect, I get “Unexpected Error”. HABridge has not been updated in months, so I am at a loss as to what to look for next.

HABridge still has my Home Assistant RPi4 configured in the “Bridge Control” section, so nothing there has changed. Any ideas or suggestions would be greatly appreciated, as this breaks a lot of things for me.

From the homeassistant.log:

2021-05-19 13:29:00 ERROR (MainThread) [homeassistant.components.hue] Unknown error connecting with Hue bridge at 192.168.x.x
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/hue/config_flow.py", line 152, in async_step_link
    await authenticate_bridge(self.hass, bridge)
  File "/usr/src/homeassistant/homeassistant/components/hue/bridge.py", line 249, in authenticate_bridge
    await bridge.create_user(f"home-assistant#{device_name}")
  File "/usr/local/lib/python3.8/site-packages/aiohue/bridge.py", line 44, in create_user
    result = await self.request("post", "", {"devicetype": device_type}, auth=False)
  File "/usr/local/lib/python3.8/site-packages/aiohue/bridge.py", line 78, in request
    res.raise_for_status()
  File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 1000, in raise_for_status
    raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('https://192.168.x.x/api/')

I just restored my snapshot from 2021.5.4 to 2021.4.6 and it fixed it. My HABridge is connected and fully functional again. It would seem that something between these two versions has broken HABridge connectivity.

I just noticed HABridge v5.4 was released this past March. I have NOT upgraded to this version and am still on v5.3. Perhaps updating HABridge will fix this incompatibility with the latest Home Assistant? I will try tomorrow when I have more time.

I upgraded HABridge to the latest v5.4. I also updated Home Assistant to core-2021.5.5. It would appear to be halfway working. HABridge can see all the HomeAssistant devices. However, HA cannot see any of the HABridge devices. Getting a different but similar error as posted above.

Unknown error connecting with Hue bridge at 192.168.x.x

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/hue/bridge.py", line 85, in async_setup
    await authenticate_bridge(hass, bridge)
  File "/usr/src/homeassistant/homeassistant/components/hue/bridge.py", line 252, in authenticate_bridge
    await bridge.initialize()
  File "/usr/local/lib/python3.8/site-packages/aiohue/bridge.py", line 49, in initialize
    result = await self.request("get", "")
  File "/usr/local/lib/python3.8/site-packages/aiohue/bridge.py", line 78, in request
    res.raise_for_status()
  File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 1000, in raise_for_status
    raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('https://192.168.x.x/api/a6422314a62e423fb77462767b008fc1/')

Odd thing is, I cannot even find these python scripts. They do not exist at the paths shown in the log. I have again reverted to 2021.4.6 and all is working again.

Curious, am I the only one having this problem or am I just the only one using HABridge to import devices?

I have tried finding setup guides for HABridge in case I have done something wrong in my configurations, but everything I can find is ~3 years old (this theory doesn’t allow for the fact that it works perfectly in 2021.4.6 and not in 2021.5.5). Much has changed since then.

I don’t need to import many devices from HABridge, only my X10 devices which amount to about four total, including the most excellent still (at nearly 17 yrs old) PR511 motion detector driveway lights.

Any help with this would be greatly appreciated.