Skip to content

[Plan-14] Increment 5: Session log integration #110

@basmeerman

Description

@basmeerman

Context

Plan 14: CircuitMeter — Increment 5 of 6

Scope

Add circuit energy fields to session_record_t for ERE reporting.

Acceptance Criteria

  • session_record_t has circuit_start_energy_wh, circuit_end_energy_wh, circuit_energy_wh
  • session_start extended to accept circuit start energy
  • JSON output includes circuit_kwh when > 0
  • Backwards compatible: circuit fields default to 0 when CircuitMeter disabled
  • Existing session tests still pass

Dependencies

Increment 4

Files

  • Modify: src/session_log.h, src/session_log.c, test/native/tests/test_session_log.c

Metadata

Metadata

Assignees

No one assigned

    Labels

    plan-14Plan 14: CircuitMeter — Subpanel Metering

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions