Solar Inverter State
Solar inverter state parameters provide real-time production data, battery status, household consumption, and energy metrics. These fields are read-only and automatically updated from the manufacturer’s API.State data refresh frequency depends on the manufacturer’s API. Most values update every 5-15 minutes.
Solar Production
Current solar power production in Watts.Returns
0 during nighttime or cloudy conditions.Example: 6250Excess solar power available after meeting household demand, in Watts.Positive values indicate surplus power available for battery charging or grid export.Example:
4500Solar energy production for the previous day in kWh.Example:
32.5Solar energy production for the previous week in kWh.Example:
120.1Solar energy production for the previous month in kWh.Example:
451.3Timestamp when production data was last calculated.Example:
2023-03-22T13:54:34.000ZHousehold Consumption
Current total power consumption of the household in Watts.Includes all electrical loads in the building.Example:
950Battery Status
Current battery charge level in percent.Returns
null or 0 if no battery is connected.Example: 85Range: 0-100Current battery power flow in Watts.Positive values: Battery is charging
Negative values: Battery is dischargingExample:
-755 (discharging at 755W)Timestamp when the battery and inverter state was last updated from the manufacturer’s API.Use this to determine data freshness.Example:
2023-03-22T13:54:34.000ZUsage Examples
Get Inverter State
Understanding Power Flows
- Sunny Day - High Production
- Evening - Battery Discharging
- Cloudy - Low Production
- Peak Production - Battery Full
Scenario:
current_solar_production_w: 8000, household_consumption_w: 1500- 1500W used directly in home
- 6500W surplus available
- Battery charges if below max charge limit
- Remaining surplus exported to grid
Best Practices
Data Polling
Data Polling
- Poll inverter state every 5-10 minutes during daylight hours
- Reduce polling to 15-30 minutes during nighttime
- Check
charge_state_last_updatedto avoid unnecessary calls - Display last update timestamp for transparency
Production Display
Production Display
- Show current production prominently during daylight
- Display daily/weekly/monthly production trends
- Calculate and show self-consumption percentage
- Highlight peak production times
Battery Monitoring
Battery Monitoring
- Display battery level with charge/discharge status
- Show power flow direction (charging/discharging)
- Alert on unusual battery behavior
- Track cycling patterns for health monitoring
Energy Flow
Energy Flow
- Visualize power flows between solar, battery, home, and grid
- Calculate and display self-consumption rate
- Show grid import/export in real-time
- Provide historical energy flow analysis
Inverter Attributes
Writable parameters and configuration
Dashboard Integration
Building end-user dashboards
Managing Buildings
Multi-device coordination
Energy Contracts
Energy pricing parameters
