This is a Prometheus exporter for the Kostal Plenticore series of inverters.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Matthias Bach 1a02b2c8fb
Release 0.5.0
6 months ago
kostal_plenticore_exporter Release 0.5.0 6 months ago
tests Release 0.5.0 6 months ago
.flake8 Initialise repository 2 years ago
.pre-commit-config.yaml Check code with mypy 2 years ago
CHANGELOG.rst Release 0.5.0 6 months ago
COPYING.txt Relicense as AGPL-3-or-later 2 years ago
README.rst Export the battery and inverter status value 6 months ago
doc8.ini Initialise repository 2 years ago
pyproject.toml Switch packaging to flit 1 year ago


Kostal Plenticore Prometheus Exporter

This is a Prometheus exporter for the Kostal Plenticore series of inverters. It exports the metrics exposed by the inverter in Prometheus format. This way it can be ingested into Prometheus and used for Grafana dashboards or to trigger notifications in case of failure events.


Run the kostal-plenticore-exporter passing it the IP address of the inverter and the password of the operator user. As command line arguments can be seen by other users on the system, the password should be passed via environment variable:

PASSWORD="my super secret" kostal-plenticore-exporter

The metrics will be default be exposed at http://localhost:9876/. See kostal-plenticore-exporter --help for all arguments available.

Alternatively, you can also invoke the Python module: python3 -m kostal_plenticore_exporter --help.

Status Metrics

Some metrics export state as a numeric value. These decoded meanings of these values are given in the interface description document available on the Kostal product page.

For the kostal_plenticore_inverter_status metric these values are:

  • 0: Off
  • 1: Init
  • 2: IsoMeas
  • 3: GridCheck
  • 4: StartUp
  • 5: -
  • 6: FeedIn
  • 7: Throttled
  • 8: ExtSwitchOff
  • 9: Update
  • 10: Standby
  • 11: GridSync
  • 12: GridPreCheck
  • 13: GridSwitchOff
  • 14: Overheating
  • 15: Shutdown
  • 16: ImproperDcVoltage
  • 17: ESB
  • 18: Unknown

For the kostal_plenticore_battery_status metric, which is called energy manager status in the document, these values are:

  • 0: Idle
  • 1: n/a
  • 2: Emergency Battery Charge
  • 4: n/a
  • 8: Winter Mode Step 1
  • 10: Winter Mode Step 2


This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see