Repository navigation
Grid voltage alert: report the voltage that tripped it - #77
Merged
Merged
Conversation
The alert held grid_condition_safe unsafe for 20 s and only then read the voltage. grid_safe's 300 s delayed_off keeps it unsafe long after a short spike, so by then the grid was usually back: on the night of 1-2 Nov five 250-253 V spikes paged as "Low 248 V, outside 185-250 V", and a 9-second dropout to 2 V paged as "Low 226 V". - Trigger on the trip itself and read trip_volts first: grid_safe has a 5 s delayed_on, so that reading is the one out of range. - The 20 s hold moves into the actions, then grid_safe must still be unsafe. If grid_down is still on 20 s after the hold the Grid Outage alert has fired and the run stops; a shorter dropout pages as Low. - Title from trip_volts (High >= 250, Low <= 185, else Out of Range); message "Mains went to 252 V, outside 185-250 V (248 V now)". - Grid Voltage Normal is unchanged: last_triggered is the trip time, still inside the spell. - check_automations.py section 2b follows the new shape. Co-Authored-By: Claude Opus 5.5 <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.
Why
⚠️ Alert: Grid Voltage Out of Rangewaited 20 s aftergrid_condition_safetripped and only then read the voltage.grid_safe's 300 sdelayed_offkeeps it unsafe long after a short spike, so the reading was usually back in range. On the night of 1–2 Nov:What changed
trip_voltsfirst.grid_safehas a 5 sdelayed_on, so that reading is the one that was out of range.grid_safemust still be unsafe. Ifgrid_downis still on 20 s after the hold, the Grid Outage alert has already fired and the run stops. A shorter dropout pages as Low.trip_volts: High at 250 V or more, Low at 185 V or less, otherwise Out of Range.✅ Grid Voltage Normalis unchanged. Its condition still holds becauselast_triggeredis the trip time, which is inside the spell.Testing
check_automations.pysection 2b covers the trigger, the order of the steps, each title and the message. All checks pass.ha core checkpassed, and the reloaded config has the new actions.🤖 Generated with Claude Code