Conversation
Author
|
Please let's hold this PR for a moment. It seems I have overseen an edge case where the notification is not triggered correctly. Will convert PR back to draft and verify next days to correct and resubmit. |
agarthand
marked this pull request as draft
September 10, 2026 19:47
This blueprint detects the end of a charging session based on total charging current and executes specified actions. It includes configurable thresholds and durations for starting and finishing charging detection.
Added a section on Charging Completion Automation Blueprint, detailing its functionality and import instructions.
agarthand
force-pushed
the
blueprint-charging-complete
branch
from
September 10, 2026 20:18
896ba5c to
85906bf
Compare
Author
|
After further investigation, I discovered that the reported issue originated from my own notification script. I have re-tested the PR and can confirm that it behaves as expected. The PR is working correctly from my side and is ready for review and merge. |
agarthand
marked this pull request as ready for review
September 13, 2026 08:32
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.
Summary
Adds an optional Home Assistant automation blueprint that runs configurable
actions when an ISDT charging session has ended.
The blueprint provides a reusable basis for notifications, text-to-speech
announcements, visual indicators, or any other Home Assistant action that
should run after charging has completed.
Motivation
The ISDT Air BLE integration exposes all information required to detect an
active charging session and its completion, but users currently need to build
their own automation for this common use case.
This blueprint provides a reusable and configurable automation for detecting
the end of a charging session and running user-defined completion actions.
Detection method
The blueprint uses the charger's
Total Charging Currentsensor instead of theindividual slot status sensors.
A charging session is detected when the total charging current remains above a
configurable start threshold for a defined duration. The session is considered
finished when the total charging current remains below a configurable finish
threshold for a defined duration.
Using the total charging current keeps the detection independent of the number
of occupied slots and avoids relying on individual slot status sensors, which
may temporarily report
unknownorunavailableduring Bluetooth reconnects.Configuration
The blueprint provides configurable values for:
The included default values are:
0.05 Afor 15 seconds0.01 Afor 1 minuteAll default values can be overridden when creating an automation from the
blueprint.
The completion action is intentionally not predefined. Users can configure any
Home Assistant action, for example:
Changes
blueprints/automation/charging_complete.yamlthe HACS integration
manually removed batteries or an aborted charging session
Limitations
The blueprint detects that a previously active charging session no longer
draws relevant charging current.
It cannot distinguish between:
The configurable start and finish durations help prevent brief current changes
from being interpreted as complete charging sessions.
Testing
Tested with an ISDT C4 Air.
Verified:
charging session
unknownandunavailablesensor states do not satisfy the numeric finishcondition
below the finish threshold for the configured duration
completed
Repository structure
The proposed blueprint location is:
blueprints/automation/charging_complete.yamlI am happy to move the blueprint to a different location if another repository
structure is preferred.