Skip to content
splattnerPublic

About

Open source platform for operating and billing (v)ZEV energy communities.

Topics

Resources

Contributing

Security policy

Stars

14 stars

Watchers

0 watching

Forks

Latest commit

 

History

1,194 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenZEV

Release Build Licence

Open-source billing software for Swiss ZEV and vZEV energy communities.

OpenZEV: overview, energy balance, billing and tariffs

A ZEV shares a single grid connection across multiple households, meaning someone has to calculate each household's share of solar and grid power. OpenZEV covers the whole billing process:

  1. Import meter load curves (CSV, Excel, SDAT-CH).
  2. Allocate every 15-minute interval across participants.
  3. Price consumption against versioned or dynamic tariffs.
  4. Invoice participants with PDF/A-3b statements and Swiss QR-bills.

I built OpenZEV to bill my own ZEV and published it under AGPL-3.0 in case it is useful for yours.

Features

  • Communities and roles: Per-ZEV access for managers, viewers, and participants, with dated participant-to-meter assignments for tenant changes.
  • Metering import: CSV, Excel, and SDAT-CH support with a pre-write preview and a data-quality view for gaps and duplicates.
  • Billing engine: 15-minute interval allocation, versioned tariffs (high/low bands, seasons), dynamic pricing, and grid-operator tariff imports.
  • Invoices and contracts: Full workflow (draft → approved → sent → paid) generating PDF/A-3b invoices with Swiss QR-bills, annual statements, and participation contracts.
  • Email delivery: Background email sending with per-invoice delivery history and automatic retries.
  • Feasibility calculator: Estimate savings, payback, and ROI before founding a community.
  • Administration and integrations: Multi-language UI (DE, FR, IT, EN), API keys, audit log, whole-ZEV export/import, backups, and an MCP server for AI assistants.

See the user guide for details, and the roadmap for what is shipped and planned.

Quick start

Try the demo

Requires Docker or Podman with Compose:

git clone https://github.com/splattner/openzev.git
cd openzev
scripts/start-demo-environment.sh

Open http://localhost:8080 and sign in with [email protected] / admin1234.

Warning

The demo environment runs with DEBUG=True and well-known credentials. Never use it for real billing data.

Run in production

Every release includes a ready-made docker-compose.yml for the published container images, and a Helm chart is available in charts/openzev for Kubernetes.

Follow the Getting Started guide to configure HTTPS, email delivery, your initial admin account, backups, and updates.

Documentation

Tech stack

  • Backend: Django, Django REST Framework, SimpleJWT.
  • Frontend: React, TypeScript, Vite, TanStack Query, i18next.
  • Async jobs: Celery worker and Beat with Valkey (Redis-compatible).
  • Database: PostgreSQL for production; SQLite for local development/tests (MariaDB is not supported due to metering correction and identity-lock workflows).
  • Deployment: Docker Compose or Kubernetes (Helm); GHCR images are signed and include an SBOM.

Disclaimer

  • Shipped as-is with no warranty.
  • Always verify your data and billing outputs before sending them to participants. I cannot take responsibility for incorrect imports, calculations, invoices, or workflows.
  • Built with generous AI assistance—including specs, ADRs, and user docs. Some design choices may look unconventional; the project is optimized for learning, experimentation, and running my own ZEV rather than enterprise-grade polish.

Contributing & security

  • Contributing: Issues and pull requests are welcome. See CONTRIBUTING.md for development setup, CI checks, and the spec-driven process for larger changes.
  • Security: Please report vulnerabilities privately as described in SECURITY.md.

Licence

AGPL-3.0

About

Open source platform for operating and billing (v)ZEV energy communities.

Topics

Resources

Contributing

Security policy

Stars

14 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages