Skip to content

v0.1.53-beta.8

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 02 Dec 23:03
· 15 commits to main since this release

This is a prerelease for testing. Do not run it in production. The stable v0.1.53 follows after its test cycle.

Breaking changes

Since v0.1.52, including the changes listed in v0.1.53-beta.2:

  • GET /v1/sites/:id/load-management/history changed from a plain JSON array to the standard paginated reply { data, total } with page and limit (limit at most 100, default 10). API clients that read the array directly must read data and page through it. (beta.2)

  • The station charging profile routes moved to the Smart Charging permissions: GET /v1/stations/:id/charging-profiles needs smartCharging:read, and .../refresh, /composite, /clear and /push need smartCharging:write. An API key, role or user that held only stations:read or stations:write loses these routes until it gains the Smart Charging permission. (beta.2)

  • A SetChargingProfile to an offline station is no longer queued: the route answers 409 STATION_OFFLINE. Scripts that pushed profiles to offline stations must check the station or handle the 409. (beta.2)

  • Korean is no longer a supported language. Users and drivers whose language was Korean see English, and the v0.1.53 Helm chart and CDK refuse ko as the driver, station message or AI language. Pick another language for those accounts and deployments.

  • Minimum power applies to DC chargers only. The upgrade clears the stored Min Power of every station without a DC connector, and PATCH /v1/sites/:id/stations/:stationId/load-min-power answers 400 LOAD_MIN_POWER_DC_ONLY for such a station. A value the DC minimums of all stations under a circuit, panel, transformer or unit box together exceed now answers 400 LOAD_MIN_POWER_EXCEEDS_CAPACITY. AC sessions rely on their 6 A floor. Review the Min Power of your DC stations after the upgrade (Load Management).

  • A TxDefaultProfile at stack level 1 or above is refused on a load-managed station with 400 CHARGING_PROFILE_LOAD_MANAGED (station push, template push and the generic SetChargingProfile routes), because it would win over load management's own limits. Stack level 0 stays allowed. Move such profiles to stack level 0 or take the station out of load management.

  • The fallback from per-EVSE limits to one station limit after three refusals is gone: a refused EVSE limit now backs off (30 seconds, doubling up to 5 minutes) and is sent again. GET /v1/sites/:id/load-management and the PATCH .../load-balancing-mode reply no longer return evseLimitsRefusedAt, the station items no longer return heldUntilSessionsEnd, and the metric load_management_stations_evse_refused with its Grafana panel and alert is removed. Remove them from integrations and dashboards that read them.

  • The Plug and Charge provider test (POST /v1/pnc/settings/test-provider) answers an incomplete local provider with 400 PNC_PROVIDER_INCOMPLETE instead of VALIDATION_ERROR. Clients that branched on the old code must read the new one.

  • The allocation log reason idle_allowance is renamed idle. The upgrade renames stored rows. Integrations that read the reason of an idle station's limit must read idle.

  • Fleet spending limits (monthly_spend_limit_cents and the member limit) are written only with payments:read besides fleets:write. A role or API key without it gets 403 on those fields.

  • Fleet RFID cards are no longer published to roaming partners. A card held by a fleet member is pushed once as invalid to each partner that received it.

  • A driver started by the member app or portal is held to the fleet card's charge scope: a station outside it answers 403 FLEET_CHARGE_SCOPE_NOT_ALLOWED.

  • Changing a site's country now needs loadManagement:write besides the site write permission when the site has a panel, transformer or unit box budget and the change moves its Continuous Load (%) default (for example from the US to Germany). Without it, PATCH /v1/sites/:id answers 403 INSUFFICIENT_PERMISSIONS and changes nothing. Give that permission to the roles and API keys that edit site countries. (beta.6)

Upgrade notes

  • Migration 0492_release_0_1_53.sql gains new idempotent statements in this beta (Continuous Load (%), sessions lost at boot). A database that applied an earlier v0.1.53 beta applies only what is new. No manual step.
  • Load management works by one rule set: idle charging points and idle stations hold 0 A; when the cars' 6 A minimums do not fit, the lowest-priority, newest session waits at 0 A with its session open, resumes oldest first, and stays paused at least 15 minutes unless another session ends; a car that keeps drawing after its pause is in force has its session ended. Beta.4 ended sessions instead of pausing them.
  • Preconditioning windows of a depot plan go only to stations balanced per EVSE (a TxProfile per session).
  • A DC station whose minimum, or any power, the circuit cannot carry is paused at 0 W until room frees.
  • Continuous Load (%) replaces the fixed 80 percent rule. Panels, circuits and unit box budgets now count a continuous load at the site country's default: 100 percent in IEC countries such as Germany (IEC 60364), 80 percent in the US, Canada and every other or unknown country (NEC, CEC). The upgrade recomputes the stored panel and circuit capacities of sites in an IEC country, so their usable capacity rises by a quarter (a 115 A circuit counts 115 A instead of 92 A). Review those sites and set a lower Continuous Load (%) where heat or grouped breakers call for it (Capacity and Continuous Load).
  • The unit box budget field ratedContinuous of the earlier v0.1.53 betas is replaced by continuousLoadPercent (50 to 100, empty for the country default) on PUT and GET .../units/:unitId/load-budget. The upgrade moves a box ticked Rated for Continuous Load to 100 percent.
  • A session a station drops when it reboots now ends on its own: when a booted station reports the connector Available and sends nothing for that session within 2 minutes, the session ends as PowerLoss at its last meter reading and is billed and receipted. A later stop from the station still wins (Sessions Lost When a Station Reboots).
  • Migration 0492_release_0_1_53.sql gains the tariff load priority statements in this beta: tariffs.load_priority (1 to 10, existing tariffs get 5) and the snapshots charging_sessions.tariff_load_priority and session_tariff_segments.load_priority (empty on existing rows). With every tariff at 5, load management allocates as before. No manual step.
  • Migration 0492_release_0_1_53.sql gains the site_simulation_runs table in this beta (one automatic simulation run per site). No manual step.
  • Unchanged from earlier betas: upgrade every pod to v0.1.53 before v0.1.54, which drops the nullable load_allocation_log.allocations column.

Changes since v0.1.53-beta.7

Load management

  • The site Load Management tab now holds the settings above five tabs: Electrical Infrastructure (opens first), Station Live View, Energy Storage and Solar, Allocation Chart and Allocations. Each tab has its own link (Page Tabs).
  • Station Live View shows each station with a charging session: its allocation, the strategy, and each session's tariff and driver. Sessions need sessions:read, the tariff pricing:read and the driver drivers:read (Station Live View).
  • Automatic Simulation: on a site with simulator stations, users with stations:write and loadManagement:write start a run from Station Live View. The run keeps a number of simulated cars charging on the site's simulator stations for 15 minutes to 24 hours, and real stations are never used. A start is refused while the payment provider can take real payments, and saving payment settings that can take real payments stops every running run. The simulated cars use the same RFID card pool as chaos mode, which holds real drivers' cards, so use it on test installations only (Automatic Simulation).
  • A per-EVSE TxProfile the station refuses is no longer sent again before its backoff ends (the known issue of beta.7).
  • A station whose new meter reading is missing keeps counting at its last reading, never at nothing.
  • A car that keeps drawing more than 0.69 kW above a limit its station accepted is counted at what it held before, and an unavoidable overload is recorded with the operator alert, never counted at the lower limit.

Fleets

  • The fleet manager invoice email links to the invoice again: the View Invoice link was written as text. The upgrade fixes stored templates that still hold the broken link. Reported by @Tobias9876 in #74.