Docs menu

Native Components

Power Flow Card

A bounded energy-flow monitor for a fixed Grid, Solar, Battery and Load topology. HARDWARE VALIDATED on the current ESP32-P4 evidence ledger.

#14 — Power Flow Card

Power Flow Card in the implemented ForgeUI Native Component library.

A bounded energy-flow monitor for a fixed Grid, Solar, Battery and Load topology.

  • Grid import and export
  • Solar production
  • Battery charge and discharge
  • Load monitoring

Inspector capabilities and presentation

  • 240 × 145 default and 220 × 128 minimum stackable geometry
  • Fixed Grid / Solar / Battery / Load topology
  • Static none, inward and outward flow directions
  • Text-backed node values

The component remains one serialized Canvas object. Browser Preview, Live Studio and Standalone Export consume its normalized semantic model while internal LVGL composition stays private.

Generated Runtime SDK family

c
void FG_Set_<PowerFlowCard>_Grid_Value(const char * value);
void FG_Set_<PowerFlowCard>_Grid_Flow(int32_t flow);
void FG_Set_<PowerFlowCard>_Solar_Value(const char * value);
void FG_Set_<PowerFlowCard>_Solar_Flow(int32_t flow);
void FG_Set_<PowerFlowCard>_Battery_Value(const char * value);
void FG_Set_<PowerFlowCard>_Battery_Flow(int32_t flow);
void FG_Set_<PowerFlowCard>_Load_Value(const char * value);

Interaction and UserEvents

c
No UserEvents are generated.

Power Flow Card is monitoring-only. Its topology and static flow directions are bounded; it is not a generic SCADA diagram editor.

Where hooks exist, implement the exact declarations in 95_UserEvents.c. Runtime SDK calls never simulate user input.

Ownership boundary

ForgeUI owns semantic presentation, private LVGL composition, generated contracts, persisted identity, fixed storage and Browser/Live/Standalone alignment.

Browser, Live, Standalone and ESP32-P4 status

SurfaceStatus
Browser PreviewImplemented
Live StudioImplemented
Standalone ExportImplemented
Persisted identity and duplicate isolationImplemented
ESP32-P4HARDWARE VALIDATED