Skip to content

Commit 1b2a96b

Browse files
committed
using status instead of individual bool values for states of the charger
1 parent 7cc820f commit 1b2a96b

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

docs/developer/data-models.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ Grid meter data with import/export and phase-level measurements:
303303
EV charger data with charge/discharge metrics and phase-level measurements. This DER type represents the charger's capability as a flexible load/source (uni- or bi-directional), with optional vehicle-specific attributes.
304304

305305
**Example:**
306-
307306
```json
308307
{
309308
"type": "charger",
@@ -321,8 +320,7 @@ EV charger data with charge/discharge metrics and phase-level measurements. This
321320
"L3_A": 9.444,
322321
"L3_W": 2150,
323322
"offered_A": 10.0,
324-
"connected": true,
325-
"charging": true,
323+
"status": "charging",
326324
"vehicle_id": "my_tesla_model3",
327325
"vehicle_capacity_Wh": 75000,
328326
"vehicle_SoC_fract": 0.65,
@@ -350,8 +348,7 @@ EV charger data with charge/discharge metrics and phase-level measurements. This
350348
| `L3_A` | A | float | L3 Phase Current |
351349
| `L3_W` | W | float | L3 Phase Power (computed as V * A) |
352350
| `offered_A` | A | float | Current offered by charger (from OCPP) |
353-
| `connected` | - | boolean | Is a vehicle connected? |
354-
| `charging` | - | boolean | Is active charging/discharging occurring? |
351+
| `status` | - | string | Charger status: "charging", "available", "preparing", "error" |
355352
| `vehicle_id` | - | string, optional | User-supplied or detected vehicle reference (null if unknown) |
356353
| `vehicle_capacity_Wh`| Wh | integer, optional | Vehicle battery capacity (null if unknown) |
357354
| `vehicle_SoC_fract` | fraction | float, optional | State of Charge (0.0-1.0, null if unknown) |
@@ -362,6 +359,13 @@ EV charger data with charge/discharge metrics and phase-level measurements. This
362359
| `session_import_Wh` | Wh | integer | Session Energy Imported (reset on connect/disconnect) |
363360
| `session_export_Wh` | Wh | integer | Session Energy Exported (reset on connect/disconnect) |
364361

362+
**Status Values:**
363+
364+
- `"charging"` - Vehicle is connected and actively charging/discharging
365+
- `"available"` - Charger is ready and no vehicle connected
366+
- `"preparing"` - Vehicle connected, preparing to charge (authentication, cable check, etc.)
367+
- `"error"` - Charger or charging session has encountered an error
368+
365369

366370
### Thoughts on UX and Defaults for Launch
367371

0 commit comments

Comments
 (0)