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.
Grid Exchange
Current power being exported to or imported from the grid in Watts. Positive values indicate export; negative values indicate import.Example:
2500 (exporting 2.5 kW)Solar Production
Current solar power production in Watts.Returns
0 during nighttime or cloudy conditions.Example: 6250Household Consumption
Current total power consumption of the household in Watts.Includes all electrical loads in the building.Example:
950Solar Surplus
Solar power available after household consumption, in Watts. Represents excess production not consumed by the home.Example:
5300Battery 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 discharging
Negative values: Battery is chargingExample:
-755 (charging 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 available for battery charging and grid export
- Battery charges if below max charge limit
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
current_state_last_updated_atto avoid unnecessary calls - Display last update timestamp for transparency
Production Display
Production Display
- Show current production prominently during daylight
- Calculate and show self-consumption percentage using
current_solar_production_wandhousehold_consumption_w - 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, and home
- Calculate and display self-consumption rate
- Provide historical energy flow analysis
Inverter Attributes
Writable parameters and configuration
Dashboard Integration
Building end-user dashboards
