Skip to content

"energy_exported" and "energy_imported" return zero always #221

@ajfhodgson

Description

@ajfhodgson

I have a Raspberry Pi set up to access my Powerwall 3's wifi and my home wifi (intending to pass data to Home Assistant)
But the "energy_exported" and "energy_imported" remain 0 both in calls to pw.poll("/api/meters/aggregates") and to pw.solar(verbose=True) etc.

Any ideas?

ETA: I'm sure this isn't an issue with pypowerwall, but hoping you clever people can help me!

pi@raspberrypi:~ $ python3 powerwall-poll.py
Polling Tesla Powerwall 3
Site Name: 64 HPA - Firmware: 25.26.1 2c4bb00e - DIN: 1707000-30-K--TG1243490010CC

        00:00:00,       0.532 s,        ok,    pw.power() Combined power metrics (W):
{"site": 138, "solar": 225, "battery": 1, "load": 363.75}

        00:00:00,       0.000 s,        ok,    pw.level() Battery power level:
23.07692307692308

        00:00:00,       0.239 s,        ok,    pw.poll("/api/meters/aggregates"):

{
  "site": {
    "last_communication_time": "2025-09-28T12:07:52+01:00",
    "instant_power": 138,
    "instant_reactive_power": 0,
    "instant_apparent_power": 0,
    "frequency": 0,
    "energy_exported": 0,
    "energy_imported": 0,
    "instant_average_voltage": 242,
    "instant_average_current": 0.5702479338842975,
    "i_a_current": 3.487,
    "i_b_current": 0,
    "i_c_current": 0,
    "last_phase_voltage_communication_time": "0001-01-01T00:00:00Z",
    "last_phase_power_communication_time": "0001-01-01T00:00:00Z",
    "last_phase_energy_communication_time": "0001-01-01T00:00:00Z",
    "timeout": 1500000000,
    "num_meters_aggregated": 1,
    "instant_total_current": 0.5702479338842975,
    "disclaimer": "site: voltage/current from Meter X"
  },
  "battery": {
    "last_communication_time": "2025-09-28T12:07:52+01:00",
    "instant_power": 1,
    "instant_reactive_power": 0,
    "instant_apparent_power": 0,
    "frequency": 0,
    "energy_exported": 0,
    "energy_imported": 0,
    "instant_average_voltage": 240.8,
    "instant_average_current": 0.00415282392026578,
    "i_a_current": 0,
    "i_b_current": 0,
    "i_c_current": 0,
    "last_phase_voltage_communication_time": "0001-01-01T00:00:00Z",
    "last_phase_power_communication_time": "0001-01-01T00:00:00Z",
    "last_phase_energy_communication_time": "0001-01-01T00:00:00Z",
    "timeout": 1500000000,
    "num_meters_aggregated": 1,
    "instant_total_current": 0.00415282392026578,
    "disclaimer": "battery: voltage from PINV, calculated current from power"
  },
  "load": {
    "last_communication_time": "2025-09-28T12:07:52+01:00",
    "instant_power": 363.75,
    "instant_reactive_power": 0,
    "instant_apparent_power": 0,
    "frequency": 0,
    "energy_exported": 0,
    "energy_imported": 0,
    "instant_average_voltage": 241,
    "instant_average_current": 1.5093360995850622,
    "i_a_current": 0,
    "i_b_current": 0,
    "i_c_current": 0,
    "last_phase_voltage_communication_time": "0001-01-01T00:00:00Z",
    "last_phase_power_communication_time": "0001-01-01T00:00:00Z",
    "last_phase_energy_communication_time": "0001-01-01T00:00:00Z",
    "timeout": 1500000000,
    "instant_total_current": 1.5093360995850622,
    "num_meters_aggregated": 1,
    "disclaimer": "load: voltage from ISLAND_AcMeasurements, current calculated from power"
  },
  "solar": {
    "last_communication_time": "2025-09-28T12:07:52+01:00",
    "instant_power": 225,
    "instant_reactive_power": 0,
    "instant_apparent_power": 0,
    "frequency": 0,
    "energy_exported": 0,
    "energy_imported": 0,
    "instant_average_voltage": 240.60000000000002,
    "instant_average_current": 0.9351620947630922,
    "i_a_current": 3.5045,
    "i_b_current": 0,
    "i_c_current": 0,
    "last_phase_voltage_communication_time": "0001-01-01T00:00:00Z",
    "last_phase_power_communication_time": "0001-01-01T00:00:00Z",
    "last_phase_energy_communication_time": "0001-01-01T00:00:00Z",
    "timeout": 1000000000,
    "num_meters_aggregated": 1,
    "instant_total_current": 0.9351620947630922,
    "disclaimer": "solar: voltage from PVAC, calculated current from power"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions