Hive - API - Error 403

Is anyone else having issues making changes to their Hive kit through HA? I am able to read Hive device data through the integration, but every time I try to make any kind of change (set temperature, set a device to off etc), I see in the logs that an error 403 is thrown back.

I’ve removed the integration and rebooted HA. I’ve removed all trusted devices from the Hive app then tried to re-install the integration. All devices come back okay but again, if I try to make any change, an error 403 is thrown back.

Specific error in the logs (this is an extract of, as the error log is much longer than this):

2025-02-14 15:57:54.168 | ERROR | apyhiveapi.api.hive_async_api:request:87 - Something has gone wrong calling https://beekeeper.hivehome.com/1.0/nodes/trvcontrol/1[REMOVED-FOR-PRIVACY]6 - HTTP status is - 403

5 Likes

It looks like other people are having the same issue - or at least one person is…

https://community.hivehome.com/s/question/0D5Tb00000T38qgKAB/has-the-hive-api-changedhope-assistant-can-nolonger-set-the-temperaturethe-connection-is-ok-as-it-can-read-the-properties-it-just-can-not-update-them

1 Like

Yes, same here

2025-02-14 16:04:14.415 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [xxxxxxxxxxxxxxx] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<7 lines>...
    )
    ^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2794, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2837, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1007, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
        hass, entity, func, data, call.context
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 955, in async_service_temperature_set
    await entity.async_set_temperature(**kwargs)
  File "/usr/src/homeassistant/homeassistant/components/hive/__init__.py", line 94, in wrapper
    await func(self, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/hive/climate.py", line 121, in async_set_temperature
    await self.hive.heating.setTargetTemperature(self.device, new_temperature)
  File "/usr/local/lib/python3.13/site-packages/apyhiveapi/heating.py", line 273, in setTargetTemperature
    resp = await self.session.api.setState(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        data["type"], device["hiveID"], target=new_temp
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/apyhiveapi/api/hive_async_api.py", line 288, in setState
    resp = await self.request("post", url, data=jsc)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/apyhiveapi/api/hive_async_api.py", line 92, in request
    raise HiveApiError
apyhiveapi.helper.hive_exceptions.HiveApiError
1 Like

Yes, getting it since today running a script to boost the heat:

Executed: 14 February 2025 at 17:06:07
Error: HiveApiError
Result:
params:
  domain: hive
  service: boost_heating_on
  service_data:
    entity_id: climate.heating
    temperature: '22'
    time_period: '00:30:00'
  target: {}
running_script: false

I tried removing and re-adding the integration but doesn’t work.

I cannot access that community link. It does multiple redirects until it goes to a 403

I wonder if its related.

1 Like

Same here for the last 5 hours or so.

1 Like

Does this link work instead?

https://community.hivehome.com/s/question/0D5Tb00000T38qgKAB/has-the-hive-api-changedhope-assistant-can-nolonger-set-the-temperaturethe-connection-is-ok-as-it-can-read-the-properties-it-just-can-not-update-them

2 Likes

That community link doesn’t work for me either. I get the same “forbidden” message. I tried in different browsers.

I can access the hive portal to manage my devices but the community is blocked for me. Maybe specific to my account (I shouldn’t be banned, never use it) or maybe IP related (using 5g so I am behind a cgnat shared IP).

Update: tried a few VPN IPs and same issue so probably rules out IP blocked.

Strange, links work ok for me, I had to log in though

1 Like

Same issue here. Was in the process of trying to solve the issues reported with the Hive integration here:

In the process I’ve had to restore my whole system, after the restore I have this new issue. Was working normally a few hours aho

1 Like

I’ve managed to work around this by adding hive to google home; then I’m issuing Google assistant commands using Google assistant SDK to control the thermostat. Fortunately only had add this action to 2 scripts and disable the direct control action.

1 Like

Yep same. And I happened to be doing an HA upgrade at the time so assumed it was that. Restore from backup then wouldn’t work, did a CLI downgrade, still didn’t work, and then discovered that the last backup I have which actually works is nearly two months old and I’ve made lots of changes since then :weary:
But most frustratingly my house is now all over the place in terms of temperature. Looks like it’s still down nearly 24 hours later.

I can’t open the hive community link either. Anyone see it can share any insights?

1 Like

It’s been fixed. :slightly_smiling_face::slightly_smiling_face::slightly_smiling_face::slightly_smiling_face:
And the integration has been updated, so everything is now working again :sunglasses:

1 Like

Yes. Actually just posted an entry in 3rd Party Integrations. Can read, but not set changes to Hive devices.

@Heating-On everything is working for me Simon.

It’s back working for me too. I updated Home Assistant and then after restart I got the update to Hive Custom Component. Updating that fixed it for me and I can now turn on the heating.

1 Like

I’m still experiencing this issue. I don’t see any updates, has the update not been published yet?

This is the custom component (using HACS) I’m using that got updated which fixes the issue for me:

It only showed to update after I updated Home Assistant to the latest (might be coincidence or the restarted polled for fresh updates in HACS).

1 Like

I still have the issue using the native Hive integration

Same for me with the native integration. Oddly enough, it seemed to be working briefly earlier and is now back to the same error.