feat(deye): DEYE Cloud inverter integration#3917
Open
mgazza wants to merge 4 commits into
Open
Conversation
Adds a "value" key to the component arg spec so callers can inject a pre-built object directly, bypassing config lookup. Used by SaaS to swap the StorageComponent backend for KeyDB without subclassing or monkey-patching. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Owner
|
I'll take a look once I manage to get a test key, but obviously this is incomplete as it has no controls linked to Predbat or sensors |
Collaborator
Author
|
Yep 100% needs finishing
…On Thu, 14 May 2026, 09:04 Trefor Southwell, ***@***.***> wrote:
*springfall2008* left a comment (springfall2008/batpred#3917)
<#3917 (comment)>
I'll take a look once I manage to get a test key, but obviously this is
incomplete as it has no controls linked to Predbat or sensors
—
Reply to this email directly, view it on GitHub
<#3917 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD3ZWQYKDO674AWCLN4F7B342V4ZLAVCNFSM6AAAAACY3IFNAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DINBYHA2TSMJXGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
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 DEYE Cloud inverter support to PredBat via the DEYE OpenAPI (EMEA:
eu1-developer.deyecloud.com).DeyeAPI(ComponentBase, OAuthMixin)indeye.py— fetches real-time device data (SoC, battery/grid/PV power) and applies Time-of-Use charge/discharge schedulescomponents.py— registersDeyeAPIinCOMPONENT_LISTwithkey,device_sn,automatic,token_expires_at,token_hashargsconfig.py— addsdeye_key,deye_device_sn,deye_automatic,deye_token_expires_at,deye_token_hashto CONFIG_ITEMScomponents.pyvalue-injection support (feat(components): support provider injection via value key in args) allows the SaaS platform to inject OAuth access tokens directly without a separate config keyKey design notes
handle_oauth_401()for token refreshPOST /v1.0/order/sys/tou/update; real-time data viaPOST /v1.0/device/latestTest plan
cd coverage && ./run_all -k deye(add test if needed)🤖 Generated with Claude Code