Add indevolt binary sensor platform#169375
Merged
abmantis merged 18 commits intohome-assistant:devfrom Apr 29, 2026
Merged
Conversation
…nsor-platform # Conflicts: # homeassistant/components/indevolt/__init__.py # homeassistant/components/indevolt/const.py # homeassistant/components/indevolt/strings.json
…sensor-platform # Conflicts: # homeassistant/components/indevolt/const.py
8 tasks
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a binary_sensor platform to the Indevolt integration to expose diagnostic statuses (P1 meter connection and device/battery heating states), alongside the required dependency bump and test coverage.
Changes:
- Add
binary_sensorplatform with entities for meter connectivity and heating states (Gen1 + Gen2 battery packs, filtered by pack SN presence). - Extend polled Indevolt API keys to include meter connection + heating state keys.
- Add snapshot-based and functional tests for the new binary sensors; bump
indevolt-apito 1.6.4 and add translations.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
homeassistant/components/indevolt/binary_sensor.py |
New platform implementation + battery-pack filtering based on SN availability. |
homeassistant/components/indevolt/__init__.py |
Register Platform.BINARY_SENSOR for config entry forwarding. |
homeassistant/components/indevolt/const.py |
Add new keys to SENSOR_KEYS so coordinator polls required values. |
homeassistant/components/indevolt/strings.json |
Add translation entries for new binary sensor entities. |
homeassistant/components/indevolt/manifest.json |
Bump integration requirement to indevolt-api==1.6.4. |
requirements_all.txt |
Bump pinned indevolt-api to 1.6.4. |
requirements_test_all.txt |
Bump pinned indevolt-api to 1.6.4 for tests. |
tests/components/indevolt/test_binary_sensor.py |
New tests covering registry/state snapshots, meter-connected states, availability, and pack filtering. |
tests/components/indevolt/snapshots/test_binary_sensor.ambr |
New snapshots for binary sensor entities and their initial states. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
abmantis
requested changes
Apr 28, 2026
Member
abmantis
left a comment
There was a problem hiding this comment.
Please keep the PR as draft if it depends on other open PRs. Thanks!
Contributor
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
abmantis
requested changes
Apr 28, 2026
21 tasks
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Proposed change
Adds the binary sensor platform including initial sensors for the (P1) meter connection status and the heating status of the device. Leverages the indevolt-api library 1.6.4 which requires a separate merge: #169377.
Type of change
Additional information
Checklist
ruff format homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all.To help with the load of incoming pull requests: