hacs-hubitat icon indicating copy to clipboard operation
hacs-hubitat copied to clipboard

integration is failing upon installation

Open octvrium opened this issue 1 year ago • 6 comments

Integration is providing the error: Failing to set up and following logs are being generated:

Logger: homeassistant.config_entries Source: custom_components/hubitat/hub.py:250 Integration: Hubitat (documentation, issues) First occurred: 1:49:31 PM (1 occurrences) Last logged: 1:49:31 PM

Error setting up entry Hubitat (4e51d77f) for hubitat Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 357, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/hubitat/init.py", line 37, in async_setup_entry if not await hub.async_setup(): File "/config/custom_components/hubitat/hub.py", line 250, in async_setup await self._hub.start() File "/usr/local/lib/python3.10/site-packages/hubitatmaker/hub.py", line 190, in start await self.load_devices() File "/usr/local/lib/python3.10/site-packages/hubitatmaker/hub.py", line 175, in load_devices await self._load_device(dev["id"], force_refresh) File "/usr/local/lib/python3.10/site-packages/hubitatmaker/hub.py", line 371, in _load_device json = await self._api_request(f"devices/{device_id}") File "/usr/local/lib/python3.10/site-packages/hubitatmaker/hub.py", line 420, in _api_request raise RequestError(resp) hubitatmaker.error.RequestError: GET http://

octvrium avatar Aug 10 '22 17:08 octvrium

It looks like the integration is having problems communicating with your hub.

The first step is to ensure that the correct values are being used when setting up the integration. The setup form looks like this:

Screen Shot 2022-08-10 at 2 10 24 PM

The hub address should be the IP of your hub, like 10.0.1.23.

The app ID should be a number, like 1 or 5.

The access token should be a 36 character string, like 1ab2345c-123a-1a23-a123-a1b23456789c.

You should be able to access a URL for one of your devices using these values, like:

http://10.0.1.23/apps/api/1/devices/55?access_token=1ab2345c-123a-1a23-a123-a1b23456789c
       \       /          |         \/
      hub address      app ID    device ID

Also note that this address must be accessible from your HA instance. That means your HA instance should be on the same network as your Hubitat hub, or you'll need to setup a route from HA to your Hubitat.

jason0x43 avatar Aug 10 '22 18:08 jason0x43

It’s really weird because they are wired to the same internet router and I’m connected to Hubitat hub through mi laptop that is connected to a mesh network that exits from the very same lan.

This is how my HA integration and HE make api looks like:

[image0.png][image2.jpeg][image3.jpeg][image4.jpeg]

From Hubitat side, is anything off that should needed to be changed?

Thanks,

On Aug 10, 2022, at 2:18 PM, Jason Cheatham @.***> wrote:



It looks like the integration is having problems communicating with your hub.

The first step is to ensure that the correct values are being used when setting up the integration. The setup form looks like this:

[Screen Shot 2022-08-10 at 2 10 24 PM]https://user-images.githubusercontent.com/1042866/183985890-4489a2bd-7e5e-4499-8876-cca2cd8433ef.png

The hub address should be the IP of your hub, like 10.0.1.23.

The app ID should be a number, like 1 or 5.

The access token should be a 36 character string, like 1ab2345c-123a-1a23-a123-a1b23456789c.

You should be able to access a URL for one of your devices using these values, like:

http://10.0.1.23/apps/api/1/devices/55?access_token=1ab2345c-123a-1a23-a123-a1b23456789c \ / | / hub address app ID device ID

Also note that this address must be accessible from your HA instance. That means your HA instance should be on the same network as your Hubitat hub, or you'll need to setup a route from HA to your Hubitat.

— Reply to this email directly, view it on GitHubhttps://github.com/jason0x43/hacs-hubitat/issues/178#issuecomment-1211085906, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AM65VQK6JTWVIQXI5L3WAOLVYPW7HANCNFSM56FMYUPQ. You are receiving this because you authored the thread.Message ID: @.***>

octvrium avatar Aug 10 '22 20:08 octvrium

This is how my HA integration and HE make api looks like:

[image0.png][image2.jpeg][image3.jpeg][image4.jpeg]

It looks like the images didn't attach.

jason0x43 avatar Aug 10 '22 20:08 jason0x43

Here are the images.

D872D1C7-2A7A-4420-8FC5-3B3D684ED4DB 71E91D23-5002-4E6E-911D-D1F1CB21A519 4F9190B4-C6E2-4587-A0A5-5F80E6C1908C C32BD1BC-1150-4C47-BEBE-D1398F828433

octvrium avatar Aug 10 '22 21:08 octvrium

Hmmm...all of that looks fine. Could you verify that the access token is correct (no extra spaces or anything)?

jason0x43 avatar Aug 21 '22 14:08 jason0x43

I checked and seems fine. Also fresh installed HA (that workers in the past) and didn’t work either.

On Aug 21, 2022, at 10:01 AM, Jason Cheatham @.***> wrote:



Hmmm...all of that looks fine. Could you verify that the access token is correct (no extra spaces or anything)?

— Reply to this email directly, view it on GitHubhttps://github.com/jason0x43/hacs-hubitat/issues/178#issuecomment-1221552134, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AM65VQPXZJVRQOFIR7RHYTDV2IZDPANCNFSM56FMYUPQ. You are receiving this because you authored the thread.Message ID: @.***>

octvrium avatar Aug 21 '22 14:08 octvrium

It's been a while -- did you ever make any progress here?

jason0x43 avatar Apr 09 '23 13:04 jason0x43

I’m closing this since there hasn’t been an update in a while. Feel free to re-open if there’s still an issue.

jason0x43 avatar Apr 15 '23 13:04 jason0x43