Repository navigation
Add Dynamic Power Pricing (DPP) Support - #138
bullitt186 wants to merge 4 commits into
Conversation
…ng dynamic power pricing settings
|
Thanks for implementing DPP support! I independently verified the battery target SoC RSCP tags on an E3DC S10E Compact using pye3dc 0.10.0 with temporary tag mappings:
Changing the target SoC from 90% to 89% and back to 90% worked, with RSCP readback and confirmation in the E3DC app. This validates the underlying tags, but not yet the implementation in this PR. I also opened draft PR #152, which overlaps with your SoC methods but adds focused unit tests and stricter input validation. Rather than duplicate the DPP API, I'd be happy to contribute those tests and validation improvements here. One detail worth checking is the price-limit unit conversion ("price_raw / 100.0"), which I haven't verified on hardware. Would you prefer a follow-up PR with tests after this merges? |
Adds support for E3/DC's Dynamic Power Pricing feature, enabling battery charging optimization based on dynamic electricity prices.
Changes
get_dpp_data()- Read current DPP status and configuration (enabled, price limit, target SOC, active months)set_dpp_battery_charging()- Configure DPP settings with optional parameters (enabled, price_limit, soc_target, months_active)examples/dpp_example.pyExample
Testing
Validated with black, flake8, pyright and tested on E3/DC S10X hardware.
Note: I tried to also integrate the Wallbox DPP control, but couldn't get it to work (didn't reflect the actually configured values on my S10X), so i left it out completely except for the RSCP tags.