Skip to content

Add support for pricing modules for tracking pricing#210

Closed
ngardiner wants to merge 2 commits intov1.2.1from
pricing_modules
Closed

Add support for pricing modules for tracking pricing#210
ngardiner wants to merge 2 commits intov1.2.1from
pricing_modules

Conversation

@ngardiner
Copy link
Copy Markdown
Owner

@ngardiner ngardiner commented Jan 24, 2021

Adds support for pricing modules which would provide pricing data to TWCManager for use in policy decisions.

  • Add Web API function for fetching the current pricing data
  • Add Web API visibility of current import / export
    • Add both current import and export price to the default dashboard
  • Add background polling of pricing data from one or more defined pricing modules
  • Add static pricing module, which allows configuring of pricing for environments without dynamic pricing queries
    • Significant additional tunability required
  • Modify policy to use pricing data
    • Add a maximum price value to the policy section of the configuration
    • Stop charging if price reaches defined maximum price
    • Stop charging if export price exceeds import price

Note that a small amount of cleanup is included in the PR, which isn't directly related to the power pricing support:

  • Reordered several functions in TWCMaster which weren't following convention of alphabetical order
  • Removed the status column from README.md for Status modules, which have all been supported since 1.0.1

@ngardiner ngardiner added the enhancement New feature or request label Jan 24, 2021
@ngardiner ngardiner marked this pull request as draft January 24, 2021 07:08
@ngardiner
Copy link
Copy Markdown
Owner Author

This PR is impacted by #331 - Just a heads up for now.

ngardiner added a commit that referenced this pull request Apr 13, 2026
…es modules

Forward-ports the pricing_modules branch (PRs #210 and #237) onto current main.
Introduces a pluggable Pricing module system with multi-module aggregation policy,
a /api/getPricing HTTP endpoint, background task queuing from Policy on each
enforcement cycle, and three initial modules: StaticPricing (config-based flat
rates), aWATTarPricing (Austrian spot market), and PVPCesPricing (Spanish PVPC
regulated tariff with cheapest-window scheduling support).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ngardiner
Copy link
Copy Markdown
Owner Author

Moved to #636

@ngardiner ngardiner closed this Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant