Create Pro 4PM Load Shedding (Single Device, 16 A)#207
Open
stumbaumr wants to merge 2 commits into
Open
Conversation
Outlets turned off from the device display/app now stay off (including across restarts) instead of being auto-restored, since the script only restores switches it shed itself. Turning an outlet back on manually clears its shed flag so it re-enters the load-shedding rotation. Co-Authored-By: Claude Sonnet 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.
Hi,
added a script to do load shedding just only on the Shelly Pro 4PM.
Monitors the combined current of all four switch channels on a
Shelly Pro 4PM and sheds loads in reverse-priority order (switch 3 first,
switch 0 last) to stay below 16 A. Shed switches are restored
highest-priority first once current drops below the re-enable threshold.