You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] KeyError accessing zone data for device #201
Describe the bug
My hive integration seems to be working ok but the battery status is always 100% for all devices - this only started a few days ago. I removed the integration and re-added it to ensure the authentication was ok - before adding I deleted all the HA 2FA accounts in the Hive app.
The only warning I see is this - would that explain the issue?
This error originated from a custom integration.
Logger: apyhiveapi.helper.hive_helper
Source: custom_components/hive/__init__.py:42
Integration: Hive
First occurred: 08:57:52 (77 occurrences)
Last logged: 08:57:52
getDeviceData - KeyError accessing zone data for device ********-33b1-47ee-ab50-5325********: 'zone'
getDeviceData - KeyError accessing zone data for device ********-fe42-4aba-a824-edc7********: 'zone'
getDeviceData - KeyError accessing zone data for device ********-d20d-4130-b0ae-f4eb********: 'zone'
getDeviceData - KeyError accessing zone data for device ********-5ebb-4629-9909-3bb6********: 'zone'
getDeviceData - KeyError accessing zone data for device ********-724b-4d0e-b1a5-98d8********: 'zone'
Screenshots
I also see this if I try to reload the integration
Desktop (please complete the following information):
Zone KeyError — Hive's API stopped returning the zone field in device props. Patched hive_helper.py in both apyhiveapi and pyhiveapi to use .get() with a continue instead of crashing.
Battery levels — Not a bug at all. The TRV001s genuinely report 100% to the Hive API until they're nearly dead. The TRV003s are reading correctly. The code was fine all along.
Activity
nsleigh commentedon May 12, 2026
Some feedback (with the help of AI).
Zone KeyError — Hive's API stopped returning the zone field in device props. Patched hive_helper.py in both apyhiveapi and pyhiveapi to use .get() with a continue instead of crashing.
Battery levels — Not a bug at all. The TRV001s genuinely report 100% to the Hive API until they're nearly dead. The TRV003s are reading correctly. The code was fine all along.
nsleigh commentedon Jul 11, 2026
I looks like this has been fixed but not released Pyhass/Pyhive#141
github-actions commentedon Sep 28, 2026
There has been no activity on this issue for 60 days. It will be closed in 30 days unless there is new activity.