Zero Energy Building - μ λ‘μλμ§ λΉλ©
{
"production": {
"solar": {
"capacity_kw": 100,
"daily_production_kwh": 450,
"efficiency": 0.85,
"panels": 250,
"orientation": "south",
"tilt_angle": 30
},
"wind": {
"capacity_kw": 50,
"daily_production_kwh": 180,
"turbines": 2,
"average_wind_speed_ms": 5.5
},
"geothermal": {
"capacity_kw": 30,
"daily_production_kwh": 200,
"depth_m": 100,
"temperature_c": 15
},
"ess": {
"capacity_kwh": 500,
"current_charge": 350,
"charge_rate_kw": 50,
"discharge_rate_kw": 40
}
},
"timestamp": "2025-12-25T10:00:00Z"
}
{
"consumption": {
"hvac": {
"heating_kwh": 150,
"cooling_kwh": 100,
"ventilation_kwh": 50,
"total_kwh": 300
},
"lighting": {
"interior_kwh": 80,
"exterior_kwh": 20,
"total_kwh": 100
},
"equipment": {
"elevators_kwh": 40,
"pumps_kwh": 30,
"appliances_kwh": 50,
"total_kwh": 120
},
"total_daily_kwh": 520
},
"timestamp": "2025-12-25T10:00:00Z"
}
{
"carbon": {
"grid_electricity_kg_co2": 120,
"gas_heating_kg_co2": 80,
"renewable_offset_kg_co2": -180,
"net_emissions_kg_co2": 20,
"carbon_intensity_g_co2_kwh": 38.5
},
"annual_target_kg_co2": 0,
"carbon_neutral_status": "approaching"
}
// Energy Balance Calculation
function calculateEnergyBalance(production, consumption) {
const netEnergy = production - consumption;
const balanceRatio = production / consumption;
return {
netEnergy: netEnergy,
balanceRatio: balanceRatio,
status: balanceRatio >= 1.0 ? 'surplus' : 'deficit',
selfSufficiency: Math.min(balanceRatio * 100, 100)
};
}
// ZEB Grade Calculation (1-5)
function calculateZEBGrade(balanceRatio) {
if (balanceRatio >= 1.2) return 1; // Grade 1 (Premium)
if (balanceRatio >= 1.0) return 2; // Grade 2 (Excellent)
if (balanceRatio >= 0.8) return 3; // Grade 3 (Good)
if (balanceRatio >= 0.6) return 4; // Grade 4 (Fair)
return 5; // Grade 5 (Needs Improvement)
}
// Energy Optimization
function optimizeEnergyUsage(consumption, production, ess) {
const surplus = production - consumption;
if (surplus > 0) {
// Charge ESS with surplus
const chargeAmount = Math.min(surplus, ess.maxChargeRate);
return {
action: 'charge',
amount: chargeAmount,
gridExport: surplus - chargeAmount
};
} else {
// Discharge ESS to cover deficit
const deficit = Math.abs(surplus);
const dischargeAmount = Math.min(deficit, ess.availableEnergy);
return {
action: 'discharge',
amount: dischargeAmount,
gridImport: deficit - dischargeAmount
};
}
}
| Grade | Balance Ratio | Description | Requirements |
|---|---|---|---|
| Grade 1 | β₯ 120% | Premium ZEB | Energy positive, exports surplus |
| Grade 2 | 100-120% | Excellent ZEB | Net zero energy balance |
| Grade 3 | 80-100% | Good ZEB | Near zero, minimal grid dependency |
| Grade 4 | 60-80% | Fair ZEB | Significant renewable integration |
| Grade 5 | < 60% | Needs Improvement | Requires optimization |
// Solar Panel API Integration
const solarConfig = {
apiEndpoint: 'https://api.solar-monitor.io/v1',
panels: [
{
id: 'PV-001',
capacity: 400, // Watts
efficiency: 0.85,
orientation: 'south',
tilt: 30,
inverter: 'INV-001'
}
],
monitoring: {
interval: 300, // seconds
metrics: ['power', 'voltage', 'current', 'temperature']
}
};
async function getSolarProduction() {
const response = await fetch(
`${solarConfig.apiEndpoint}/production/realtime`,
{
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json'
}
}
);
return response.json();
}
// ESS Battery Management
class ESSController {
constructor(capacity, maxChargeRate, maxDischargeRate) {
this.capacity = capacity;
this.currentCharge = 0;
this.maxChargeRate = maxChargeRate;
this.maxDischargeRate = maxDischargeRate;
}
charge(amount) {
const actualCharge = Math.min(
amount,
this.maxChargeRate,
this.capacity - this.currentCharge
);
this.currentCharge += actualCharge;
return actualCharge;
}
discharge(amount) {
const actualDischarge = Math.min(
amount,
this.maxDischargeRate,
this.currentCharge
);
this.currentCharge -= actualDischarge;
return actualDischarge;
}
getStatus() {
return {
charge: this.currentCharge,
capacity: this.capacity,
percentage: (this.currentCharge / this.capacity) * 100,
available: this.currentCharge
};
}
}
// Smart Grid Communication Protocol
const gridProtocol = {
export: async (energyKWh, price) => {
return await fetch('https://smartgrid.io/v1/export', {
method: 'POST',
body: JSON.stringify({
buildingId: 'ZEB-12345',
energy: energyKWh,
timestamp: new Date().toISOString(),
price: price
})
});
},
import: async (energyKWh) => {
return await fetch('https://smartgrid.io/v1/import', {
method: 'POST',
body: JSON.stringify({
buildingId: 'ZEB-12345',
energy: energyKWh,
timestamp: new Date().toISOString()
})
});
},
getRealtimePricing: async () => {
const response = await fetch(
'https://smartgrid.io/v1/pricing/realtime'
);
return response.json();
}
};
Current Production: 45 kW
Daily Total: 320 kWh
Efficiency: 85%
Charge Level: 60%
Available: 300 kWh
Status: Charging
Current Flow: +15 kW (Export)
Today's Export: 120 kWh
Price: $0.12/kWh
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://wia.official/credentials/zeb/v1"
],
"type": ["VerifiableCredential", "ZEBCertificate"],
"issuer": {
"id": "did:wia:certification-authority",
"name": "WIA Certification Authority"
},
"issuanceDate": "2025-12-25T00:00:00Z",
"expirationDate": "2026-12-25T00:00:00Z",
"credentialSubject": {
"id": "did:wia:building:green-tower-a",
"buildingName": "Green Tower A",
"address": "123 Eco Street, Green City",
"zebGrade": 2,
"energyBalance": {
"annualProduction": 164250,
"annualConsumption": 159800,
"balanceRatio": 1.028,
"selfSufficiency": 100
},
"carbonNeutral": true,
"netEmissions": -5.2,
"renewableSources": ["solar", "geothermal", "wind"],
"certification": {
"standard": "WIA-CITY-005",
"version": "1.0",
"auditDate": "2025-11-15",
"certifier": "WIA Certified Auditor #1234"
}
},
"proof": {
"type": "Ed25519Signature2020",
"created": "2025-12-25T00:00:00Z",
"verificationMethod": "did:wia:certification-authority#key-1",
"proofPurpose": "assertionMethod",
"proofValue": "z3FXQsWzCRmzH4..."
}
}
Scan to view certificate
https://verify.wia.official/zeb/green-tower-a
Excellent