Add script to read power from DDSU666 Monophase - #278
Open
Wind06 wants to merge 4 commits into
Open
Conversation
Changelog & Improvements Summary Project: Optimized GetPowerFromDDSU666.sh for HoymilesZeroExport + OpenDTU Original Script: Basic Modbus reading with mbpoll from DDSU666 Simple sign inversion Basic spike filtering MQTT publishing No low production protection Major Improvements: Retry Mechanism: Added multiple attempts on mbpoll reads for better reliability. Intelligent Spike Filtering: Uses previous valid reading with weighted averaging to smooth noisy values. Production-Aware Logic: Automatically detects solar production level by querying OpenDTU API. Low Production Mode (Morning / Evening / Cloudy days): Softer filtering on negative spikes Floor protection (-65W) Strongly reduces brutal limit drops Configuration: User must set their own OPENDTU_URL (IP address of their OpenDTU instance). Main Benefits: Much more stable behavior during sunrise, sunset, and variable/cloudy weather. Significantly fewer sudden inverter power limit crashes. Better balance between zero-export and maximizing self-consumption. Daily grid export reduced from ~1.7 kWh to ~100-250 Wh.
Contributor
Author
|
Hi, I added this script based on my current setup. |
Updated script to optimize power reading for variable weather conditions and added configuration for OpenDTU IP address.
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.
Changelog & Improvements Summary
Project: Optimized GetPowerFromDDSU666.sh for HoymilesZeroExport + OpenDTU Original Script:
Basic Modbus reading with mbpoll from DDSU666
Simple sign inversion
Basic spike filtering
MQTT publishing
No low production protection
Major Improvements:
Retry Mechanism: Added multiple attempts on mbpoll reads for better reliability. Intelligent Spike Filtering: Uses previous valid reading with weighted averaging to smooth noisy values. Production-Aware Logic: Automatically detects solar production level by querying OpenDTU API. Low Production Mode (Morning / Evening / Cloudy days): Softer filtering on negative spikes
Floor protection (-65W)
Strongly reduces brutal limit drops
Configuration: User must set their own OPENDTU_URL (IP address of their OpenDTU instance).
Main Benefits:
Much more stable behavior during sunrise, sunset, and variable/cloudy weather. Significantly fewer sudden inverter power limit crashes. Better balance between zero-export and maximizing self-consumption. Daily grid export reduced from ~1.7 kWh to ~100-250 Wh.