]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
feat(simulator): add AC/DC conversion efficiency template support (#2063)
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 4 Aug 2026 20:04:07 +0000 (22:04 +0200)
committerGitHub <noreply@github.com>
Tue, 4 Aug 2026 20:04:07 +0000 (22:04 +0200)
commitbd100667af56f495e8458ead117bb7521ba434a6
tree6e2dd7317c5c8abcf0d4290ab19ca37db727c389
parentdcb52ff24a3dea3c1ea514cb84f41d7354af395d
feat(simulator): add AC/DC conversion efficiency template support (#2063)

Add optional template tunable conversionEfficiency (float, (0, 1], default 1) reducing available charging power on DC stations only (currentOutType === DC). Applied at runtime in getConnectorMaximumAvailablePower to both power-derived bounds; amperage and charging-profile limits unchanged; no reduced value persisted. Absent field keeps existing behavior.

Closes #443
README.md
src/charging-station/ChargingStation.ts
src/charging-station/TemplateSchema.ts
src/types/ChargingStationTemplate.ts
tests/charging-station/ChargingStation-ConversionEfficiency.test.ts [new file with mode: 0644]
tests/charging-station/TemplateSchema.test.ts