Skip to content

[BUG] KeyError accessing zone data for device #201

Closed as not planned
Closed as not planned

Description

@nsleigh

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

Image

Desktop (please complete the following information):

  • OS: iOS, Windows, MacOS
  • Browser: Chrome or iOS App
  • Version: various

Activity

  1. added
    bug
    on May 10, 2026
  2. nsleigh commented on May 12, 2026

    @nsleigh
    ContributorAuthor

    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.

  3. nsleigh commented on Jul 11, 2026

    @nsleigh
    ContributorAuthor

    I looks like this has been fixed but not released Pyhass/Pyhive#141

  4. github-actions commented on Sep 28, 2026

    @github-actions

    There has been no activity on this issue for 60 days. It will be closed in 30 days unless there is new activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugno-issue-activity

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions