Simulated Charge Station
Simulated EV charging station with profile-based charging behavior.
Configuration
json
{
"Name": "sim-charger",
"DeviceClass": "SimulatedChargeStation",
"AssetType": "ChargeStation"
}No additional configuration required - charging behavior is driven by the profile provider.
Default Behavior
Uses CommuterEvProfile which simulates a typical commuter pattern:
| Property | Value |
|---|---|
| Charging hours | 6 PM - 10 PM local time |
| Charge power | 7.4 kW (typical Level 2) |
| Pattern | Plug in after work, charge overnight |
Charging Profile
The charging station queries IEvChargingProfileProvider to determine:
- Whether a vehicle is connected
- Current charging power
- Session state
Custom Profiles
Override charging behavior by implementing IEvChargingProfileProvider:
csharp
public interface IEvChargingProfileProvider
{
bool IsVehicleConnected(DateTime utcTime);
double GetChargingPower(DateTime utcTime);
}Example scenarios:
- Fleet charging: Multiple vehicles with scheduled charging windows
- Workplace charging: Daytime charging during business hours
- Fast charging: High-power DC charging sessions
Register via DI:
csharp
services.AddSingleton<IEvChargingProfileProvider, FleetChargingProfile>();Integration with Site Orchestration
The SiteOrchestrator includes EV charging in the energy balance:
text
Grid = Load - Solar + EV_Charging ± BatteryWhen the charger is active, it appears as additional load on the site.