A Home Assistant integration that provides Flow Power electricity pricing sensors for EMHASS optimization.
- Price Sources: Supports AEMO (direct wholesale), Amber Electric, and Flow Power portal login
- Flow Power Portal: Login directly to your Flow Power account to get actual PEA, LWAP, and TWAP values from Flow Power's billing system
- Connect Anytime: Already set up with AEMO or Amber? Connect your Flow Power portal from the integration options — no need to reconfigure
- PEA Calculation: Implements Flow Power's Price Efficiency Adjustment formula
- Happy Hour Export: Automatic export pricing based on Flow Power Happy Hour (5:30pm-7:30pm)
- EMHASS Compatible: Price forecast sensor with attributes for EMHASS integration
- Dynamic TWAP: Auto-calculated 30-day rolling wholesale average for accurate PEA
- Configurable: Base rates and PEA settings
- Add this repository as a custom repository in HACS
- Search for "Flow Power HA" and install
- Restart Home Assistant
- Add the integration via Settings > Devices & Services > Add Integration
- Copy the
custom_components/flow_power_hafolder to your Home Assistantcustom_componentsdirectory - Restart Home Assistant
- Add the integration via Settings > Devices & Services > Add Integration
Choose between:
- AEMO (Direct wholesale): Fetches prices directly from AEMO NEMWeb
- Amber Electric: Uses your Amber API key for pricing data
- Flow Power (Portal login): Logs into your Flow Power account at flowpower.kwatch.com.au to fetch actual account data (PEA, LWAP, TWAP, DLF). Uses AEMO for real-time spot prices and forecasts. Requires SMS MFA during setup.
The Flow Power portal provides actual account-specific values directly from Flow Power's billing system, rather than calculated estimates. When connected, the integration uses Flow Power's real TWAP for more accurate PEA calculations across all price sources.
- Select "Flow Power (Portal login)" as your price source
- Enter your Flow Power portal email and password
- Enter the SMS verification code sent to your registered phone number
- Select your NEM region and configure pricing
Already set up with AEMO or Amber? You can connect your Flow Power portal account without removing the integration:
- Go to Settings > Devices & Services > Flow Power HA > Configure
- Toggle "Connect Flow Power portal account"
- Submit, then enter your portal email and password
- Enter the SMS verification code
Portal sessions expire over time. If your session expires:
- Go to Settings > Devices & Services > Flow Power HA > Configure
- Toggle "Re-authenticate with Flow Power portal"
- Submit, then re-enter your credentials and SMS code
The integration continues to work with calculated TWAP while the portal session is expired — re-authenticating simply restores the actual values.
| Option | Default | Description |
|---|---|---|
| Base Rate | 34.0 c/kWh | Your Flow Power base energy rate (GST inclusive, as per PDS) |
| PEA Enabled | Yes | Apply Price Efficiency Adjustment |
| PEA Custom Value | - | Override calculated PEA with fixed value (c/kWh) |
| Sensor | Unit | Description |
|---|---|---|
sensor.flow_power_import_price |
$/kWh | Current import price with PEA |
sensor.flow_power_export_price |
$/kWh | Current export price (Happy Hour aware) |
sensor.flow_power_wholesale_price |
c/kWh | Raw wholesale spot price |
sensor.flow_power_price_forecast |
$/kWh | Price forecast for EMHASS |
sensor.flow_power_twap |
c/kWh | 30-day rolling average wholesale price (TWAP) |
sensor.flow_power_account_pea_actual |
c/kWh | Actual PEA from Flow Power portal (portal only) |
When the Flow Power portal is connected, the Account PEA sensor exposes these attributes:
| Attribute | Description |
|---|---|
lwap |
Load-Weighted Average Price (c/kWh) |
lwap_import |
LWAP for imports only (c/kWh) |
twap |
Time-Weighted Average Price (c/kWh) |
twap_import |
TWAP for imports only (c/kWh) |
avg_rrp |
Average spot price (c/kWh) |
pea_30_days |
30-day PEA net (c/kWh) |
pea_30_import |
30-day PEA import only (c/kWh) |
pea_actual |
Current PEA (c/kWh) |
pea_target |
PEA target (c/kWh) |
site_losses_dlf |
Distribution Loss Factor |
gst_multiplier |
GST multiplier |
avg_usage_kw |
30-day average demand (kW) |
avg_import_usage_kw |
30-day average import demand (kW) |
max_usage_kw |
Maximum demand (kW) |
The sensor.flow_power_price_forecast sensor provides attributes compatible with EMHASS:
state: 0.32 # Current price in $/kWh
attributes:
forecast: [0.32, 0.28, 0.25, ...] # 48 periods (24h at 30-min)
timestamps: ["2024-01-01T00:00:00+10:00", ...]
unit: "$/kWh"# configuration.yaml
emhass:
...
load_cost_forecast_method: sensor
sensor_power_load_no_var_loads: sensor.home_load
# Use the forecast sensor for price optimizationPEA = Wholesale - TWAP - BPEA
Final Rate = Base Rate + PEA
Where:
- TWAP = 30-day rolling average of wholesale spot prices (dynamic)
or actual TWAP from Flow Power portal when connected
- BPEA = 1.7 c/kWh (Benchmark Price Efficiency Adjustment)
- Default Base Rate = 34.0 c/kWh
- When insufficient data (<1 hour), TWAP defaults to 8.0 c/kWh
| Region | Happy Hour Rate |
|---|---|
| NSW1 | 45 c/kWh |
| QLD1 | 45 c/kWh |
| SA1 | 45 c/kWh |
| VIC1 | 35 c/kWh |
| TAS1 | 0 c/kWh |
Happy Hour: 5:30pm - 7:30pm local time
For issues and feature requests, please open an issue on GitHub.
MIT License