Reading10 min
grid.comply() — DEWA, IEC 61850, GHG Scope 2
🛡️ Module 4: Carbon Attestation & Compliance
grid.comply() — DEWA, IEC 61850, GHG Scope 2
Compliance is not optional. Every energy facility must meet standards set by regulators, utilities, and industry bodies. The comply primitive automates this.
Supported Standards
| Standard | What It Covers |
|---|---|
| IEC 61850 | Substation communication and automation |
| ISO 50001 | Energy management systems |
| GHG Scope 2 | Greenhouse gas emissions from purchased electricity |
| NERC CIP | Critical infrastructure protection (US) |
Generating a Compliance Package
# Generate an IEC 61850 compliance package
curl -X POST -H "Authorization: $EAT_KEY" \
-H "Content-Type: application/json" \
-d '{"site_id": 1, "standard": "IEC61850"}' \
https://app.energyatit.com/api/v1/comply/generate# Generate an IEC 61850 compliance package
curl.exe --% -X POST -H "Authorization: $env:EAT_KEY" -H "Content-Type: application/json" -d "{"site_id": 1, "standard": "IEC61850"}" "https://app.energyatit.com/api/v1/comply/generate"GHG Scope 2 Reports
# Generate a dual-methodology Scope 2 report
curl -X POST -H "Authorization: $EAT_KEY" \
-H "Content-Type: application/json" \
-d '{
"facility_id": "FAC_UUID",
"period_start": "2026-01-01",
"period_end": "2026-02-28",
"methodology": "dual"
}' \
https://app.energyatit.com/api/v1/carbon/scope2# Generate a dual-methodology Scope 2 report
curl.exe --% -X POST -H "Authorization: $env:EAT_KEY" -H "Content-Type: application/json" -d "{"facility_id": "FAC_UUID", "period_start": "2026-01-01", "period_end": "2026-02-28", "methodology": "dual"}" "https://app.energyatit.com/api/v1/carbon/scope2"Location-Based vs Market-Based
- Location-based: Uses your grid's average carbon intensity. Simple and honest.
- Market-based: Uses your contractual instruments (PPAs, RECs). Shows what you've purchased.
- Dual: Reports both. The GHG Protocol recommends this.
What a Compliance Package Contains
- Checklist: Requirements with pass/fail status
- Evidence: Meter data, attestation records, hash chain verification
- Gaps: What is missing and how to fix it
- SCL XML: For IEC 61850, a Substation Configuration Language file
# List all compliance packages for a site
curl -H "Authorization: $EAT_KEY" \
https://app.energyatit.com/api/v1/comply/packages?site_id=1# List all compliance packages for a site
curl.exe -H "Authorization: $env:EAT_KEY" "https://app.energyatit.com/api/v1/comply/packages?site_id=1"Log in to track your progress and earn certifications.