PMS
Overview
What PMS V3 is and how it is organized.
PMS V3 is the power management system of JFK-Enterprise PowerMaster. It is the only power management engine shipped — the earlier V2 engine (device model + fixed logics) has been removed from the application; its database tables remain but are no longer used.
Building blocks
- Devices & adapters — register your PV inverter, battery/ESS, grid meter, loads and wallboxes. Each device talks to its hardware through an adapter (Victron, Huawei, Shelly, go-e, Home Assistant, Modbus TCP, or a simulator for testing).
- Sensors — read-only values that sit outside the energy balance (temperatures, states, any Home Assistant entity or Modbus register).
- Policy — the rules that decide how the battery/ESS behaves: reserve state of charge, PV charge limit, optional discharge, and switchable loads.
- Flow — a live diagram of how power currently moves between grid, PV, battery and loads.
- Graphs & metrics — historical charts and KPIs (self-sufficiency, self-consumption, command success rate) to see what the policy actually did.
- Emergency stop — a global, audited switch that blocks every device command until cleared.
How it works
PMS V3 polls each enabled device on its own interval, evaluates the active policy against the current readings, and — depending on the device's control mode (read only, dry run, or live) — sends commands to the hardware. Every policy evaluation and every command is recorded, so decisions can always be traced back to the readings that caused them.
Setup
Run the setup command once after installation (see Installation) to create the scheduled device-poll and policy tasks:
python manage.py setup_pms
Devices, adapters and policy are then configured from the dashboard under Devices, Sensors and Policy.
