Repository navigation
v0.1.52-beta.5
Pre-release
Pre-release
·
62 commits
to main
since this release
This is a prerelease for testing. Do not run it in production. The stable v0.1.52 follows after its test cycle.
Breaking changes
- An EVSE edit (
PATCHof an EVSE) and the site and station CSV import now refuse a NACS, GB/T or Tesla connector without a maximum power (400VALIDATION_ERROR, fieldmaxPowerKw). These connector types carry AC or DC, and the maximum power decides which tariff kind prices them. Before, such a write was accepted. Affected: operators, API scripts and CSV files that edit or import these connectors without a maximum power. Action: sendmaxPowerKwfor each NACS, GB/T or Tesla connector, and add the Max Power column to import files. Connectors that stations report over OCPP are not refused, and stored connectors are not changed (Pricing, Charging Type, Stations, Connector Types).
No API route, field, error code, permission, setting key, environment variable, Helm or CDK value was removed or renamed. The new tariff fields (chargingType, siteScope, siteIds) are optional with defaults that keep every existing tariff as before (Both, All Sites).
Upgrade notes
- Unchanged from v0.1.52-beta.1: migration
0490_release_0_1_52.sqlreplaces the per-station unique indexesidx_driver_favorite_stations_uniqueandidx_station_watches_uniquewith unique indexes on driver, station and unit. During a rolling upgrade, an API pod of v0.1.51 or earlier that still runs after the migration answers 500 when a driver turns on Notify Me When Free (its insert names the dropped index inON CONFLICT). Favorites keep working. The error ends once every API pod runs v0.1.52. To avoid it, upgrade the API pods right after the migration job, or scale the API to the new release before drivers use station watches. - Migration
0490_release_0_1_52.sqlchanged again since v0.1.52-beta.4: it adds the tariff charging type and site availability (every existing tariff becomes Both, All Sites). It is rerun-safe: installs on an earlier v0.1.52 beta apply it again and end with the same schema.
Changes since v0.1.52-beta.4
Features
- Tariffs have a charging type: AC, DC or Both. An AC tariff prices only AC sessions and a DC tariff only DC sessions, so one pricing group can hold different AC and DC prices next to its Both default. A mixed EVSE is priced at the kind of the connector in use (Pricing, Charging Type). Suggested by @Tobias9876 in #64.
- Tariffs of driver and fleet pricing groups can be limited to selected sites (Pricing, Site Availability). Suggested by @Tobias9876 in #64.
- The portal, guest checkout, station screens and reservations show the AC and DC prices that apply, and OCPI publishes a group's AC and DC tariffs per charging kind (Pricing, AC and DC Prices for Drivers).
- The CSMS tariff form and list show the charging type and sites, say No restrictions for an AC, DC or site tariff that is not the default, and show an AC or DC hint under Max Power for NACS, GB/T and Tesla connectors (Pricing, Overlap Validation).
Thanks
Thanks to @Tobias9876 for the AC and DC tariffs and Site Availability proposal in #64.