Remove state attributes from the active binary sensors#388
Open
rhammen wants to merge 1 commit into
Open
Conversation
The charger and installation "active" binary sensors dumped the full Zaptec object state as extra_state_attributes, refreshed on every poll. Because that attribute set changes on nearly every poll and can exceed Home Assistant's 16 KB limit, it caused recorder "State attributes ... exceed maximum size" warnings (custom-components#382) and is the leading suspect for the companion-app black screen (custom-components#386). Almost all of these values are already exposed as dedicated entities, and the attributes have seen no real troubleshooting use (custom-components#297). Also surface the charger's Zaptec device id as the device serial number in the device registry, matching what the Zaptec app shows. This is an additive, non-breaking change. BREAKING CHANGE: The active charger and installation binary sensors no longer expose the Zaptec object fields as state attributes. Automations, templates or dashboards that read those attributes must use the dedicated entities instead. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes the
extra_state_attributesdump from the charger and installationactivebinary sensors.Why
exceed maximum size of 16384 byteswarnings (Database performance warning #382) and the likely cause of the companion-app black screen (HA Companion app goes on black after a few hours when the Zaptec charging station is enabled. #386).Also (non-breaking): the charger's Zaptec
DeviceIdis now surfaced as the device Serial number in the device registry, matching the Zaptec app.Part of #297. Follow-up PR will add sensors for the few values that don't have an entity yet.
🤖 Generated with Claude Code