BIDIRECTIONAL
was added to identify batteries that use the single-unit model. This allows OpenElectricity to distinguish between legacy units and new bidirectional units.
In the generation pipeline, which processes incoming real-time power data from AEMO, is intercepted in memory and transformed. This enables quick and efficient data processing before persisting the results to the main database.
The splitting logic is implemented as follows:
BHBG1
for generation (battery_discharging
fueltech type).BHBL1
for load (battery_charging
fueltech type).BHBG1
→ Generation unit (positive values).BHBL1
→ Load unit (negative values).Timestamp | Generation (MW) |
---|---|
10:00 AM | -10 |
10:05 AM | 15 |
10:00 AM
→ 10 MW
(absolute value of -10 MW
).10:05 AM
→ 0 MW
(no charging when generation is positive).10:00 AM
→ 0 MW
(no discharging when generation is negative).10:05 AM
→ 15 MW
.Timestamp | BHBL1 (MW) | BHBG1 (MW) |
---|---|---|
10:00 AM | 10 | 0 |
10:05 AM | 0 | 15 |
capacity_storage
field from facility data, this can be used to calculate the state of charge as a percentage of the total storage capacity.