NatLabRockies / NatLabRockies/SAM

Add warnings (or errors) for buy all-sell all and BTM batteries

Open
#1,993 0 comments 0 reactions 1 assignee View on GitHub

@brtietz is already working on this.

Since Apr 1, 2026.

battery enhancement utility rate
Dominant language
C++
Stars
486
Forks
219
Avg merge
10h 10m
Merged PRs (30d)
2

Description

Describe the bug

The buy all-sell all utility rate option is designed to simulate two meters: e.g. a facility purchases energy to meet it's load on one meter, and sells renewable energy on a 2nd meter. This does not make sense for behind the meter batteries, where the purpose of the battery is to offset the load. Currently the battery buys energy on the load meter and discharges on the production meter (without going to the load), and it's hard to imagine a real battery being wired in this way. For example, this never reduces demand charges.

Expected behavior

Add appropriate warnings or errors (ssc and maybe the GUI) for this situation such that users know they might want to consider a different utility rate option, such as net billing.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.