Home

Home Assistant, API and automation

Last updated 3 Dec 2026

Sam WhillanceSam WhillanceAuthor

Amber publishes live and forecast prices through a public API, which lets you build your own automations in Home Assistant and similar platforms. This page explains what the API and the official Home Assistant integration can and cannot do, how members use Modbus and tools such as EMHASS to control batteries and solar, and the trade-offs of running your own automation instead of SmartShift. It draws on Amber's API specification and help centre, Home Assistant documentation, and the experience of members of an independent Amber customer community. Details checked 3 December 2026.

The Answers You're Looking For

How do I control solar curtailment through Home Assistant using Modbus?

Enable Modbus TCP on your inverter, add the inverter's Home Assistant integration, then write an automation that sets the export or active power limit to zero when Amber's feed-in price goes negative and restores it when the price recovers. If SmartShift also controls that inverter, turn off its curtailment first, or the two systems will overwrite each other.

The general steps:

  1. Enable Modbus TCP. On many inverters this is an installer setting. Fronius, SolarEdge, Sungrow and Sigenergy all support it on recent models.
  2. Install the integration. Community Modbus integrations exist for most major brands, and Home Assistant's Amber Electric integration supplies the feed-in price.
  3. Pick the right register. SolarEdge needs its limit control mode set to production or export control before a power limit sticks. Fronius uses export limiting or a power reduction setting.
  4. Automate on the price. Trigger on the feed-in price sensor crossing zero, and add a short delay or require a confirmed (non-estimate) price to avoid flapping.
  5. Test it. Watch export in the inverter app while the automation runs.

Amber warns that external control devices interfere with SmartShift commands. A SolarEdge limit that "bounces back to 100%" after seconds usually means SmartShift or the inverter's own settings are overriding it.

Members have shared working setups for SolarEdge, Fronius, Enphase and GoodWe. Several used an AI assistant to write the YAML, then checked it against the integration's documentation.

What Home Assistant integrations and tools are available for Amber?

The official option is Home Assistant's built-in Amber Electric integration, which gives current price, a 12-hour forecast and a price descriptor for general usage, controlled load and feed-in. Members also use community-built tools for faster price updates, battery optimisation and dashboards.

What each does:

  • Amber Electric integration (official, in Home Assistant). Price, forecast and descriptor sensors per channel, plus renewables percentage and price spike status. It polls Amber's cloud API, so new prices can take up to about a minute or two to appear.
  • Faster price fetchers (community). Add-ons that poll more aggressively around each five-minute interval, so automations react sooner.
  • Optimisers (community). EMHASS is an open-source optimiser that plans battery charge and discharge from price and solar forecasts. Members have also built model predictive control managers and Powerwall-focused managers such as PowerSync.
  • Dashboards. Many members build Amber and battery dashboards on top of these sensors.

Choosing tools: start with the official integration for price data, add an optimiser only if you are ready to take over battery control from SmartShift, and check how actively a community project is maintained before relying on it.

Members report the official integration is enough for simple automations such as hot water and pool pumps. Faster fetchers and optimisers suit those running batteries without SmartShift.

Why do Amber's estimated prices differ from the confirmed price in Home Assistant?

Because the current interval's price starts as an estimate and is only locked in once the five-minute interval settles. Amber's API marks each current price with an estimate flag: true while it is still an estimate, false once it is locked in. Automations that react to estimates can act on a price that then changes, sometimes by several cents.

What to do in Home Assistant:

  • Read the estimate flag. The Amber Electric integration exposes it as an attribute. Trigger key actions, such as switching curtailment, only on confirmed prices, or add a short delay.
  • Use numbers, not descriptors. Price descriptors (such as low or high) cover broad bands. Use the dollar value for thresholds.
  • Allow for 30-minute meters. If your meter records in 30-minute blocks, you are billed on the average of six five-minute prices, so a single five-minute price matters less.
  • Expect app differences. The app and API can briefly show different values for the same interval while it settles.

Members have seen a feed-in price show as positive for a few seconds and then finalise below zero, and added dampening so curtailment does not flip on and off.

How can I use the Amber API to get my usage and price data?

Generate a token in the Amber web app under Developers, then call the API's sites endpoint to get your site ID, and the usage endpoint with a start and end date. Usage returns per-interval import, export and cost data for up to 90 days per request, and prices are available in 5 or 30-minute resolution.

The public API (version 2.1.0, as of December 2026) has five endpoints:

  • /sites: your sites and their IDs
  • /sites/{siteId}/prices and /prices/current: actual, current and forecast prices
  • /sites/{siteId}/usage: historic usage, up to 90 days of data
  • /state/{state}/renewables/current: grid renewables percentage

What it does not provide: live battery state, curtailment status, or other Devices tab data. Those come from your battery maker's integration.

To estimate a running monthly bill, sum usage costs from your billing period start, then add daily network, metering and subscription charges from your bill, because the API returns usage costs only.

Members building bill trackers found usage arrives the following day, once meter data is validated, so same-day figures need the inverter's own data.

How do I control a Sigenergy battery from Home Assistant on Amber?

Ask your installer to enable Modbus TCP, install a community Sigenergy integration in Home Assistant, then enable Modbus write permission so Home Assistant can send commands. Be aware that write control puts the system into Remote EMS mode, which takes it out of Amber's VPP control.

Points to know:

  • Amber mode. Amber's Sigenergy enrolment needs the system in "VPP Scheduling-amber" mode. Switching to Remote EMS hands control to Home Assistant instead, so SmartShift stops managing the battery.
  • Pick one controller. Amber says external control devices interfere with SmartShift. If you want Home Assistant to run the battery, ask Amber to remove you from SmartShift first.
  • Read-only first. You can read Sigenergy data over Modbus without write permission, which is a safe way to start.
  • Smart Port. Some members could read the Sigenergy Smart Port state but not switch it from Home Assistant. A separate smart relay is the common workaround.
  • Optimisers. EMHASS and community model-predictive managers have Sigenergy and Amber examples.

Members who moved Sigenergy control to Home Assistant warn that switching back to Amber can need re-enrolment. Plan for a permanent change and test with read-only sensors first.

How do I set up EMHASS to optimise my battery with Amber prices?

Install EMHASS as a Home Assistant add-on, feed it Amber's price forecasts from the Amber Electric integration, add a solar forecast and your battery's specifications, then use its optimised plan in automations that set your battery's mode. Expect a learning curve: it needs accurate battery, inverter and load settings to produce sensible plans.

A typical setup:

  1. Install the EMHASS add-on and open its configuration page.
  2. Prices. Map Amber's general and feed-in forecast sensors to EMHASS's load cost and production price inputs.
  3. Solar forecast. Use EMHASS's built-in method or a forecast integration.
  4. Battery details. Capacity, charge and discharge limits, efficiency and minimum state of charge.
  5. Load forecast. EMHASS can learn from your history.
  6. Run optimisations on a schedule, then write automations that act on the planned battery power.

EMHASS's documentation covers each parameter and has example configurations.

Members using EMHASS report better results than SmartShift on some days and worse on spike days, when EMHASS held out for higher prices that did not arrive. Several found AI assistants helpful for debugging configuration.

Can I control SmartShift or my battery through the Amber API?

No. Amber's public API is read-only: it returns prices, forecasts, usage and renewables data, with no endpoints for SmartShift or battery commands (version 2.1.0, as of December 2026). To control a battery from your own code, use the battery maker's API or a local Modbus connection.

Ways members control batteries:

  • Manufacturer cloud APIs. Tesla, Sungrow, Sigenergy and others have official or community-documented APIs used by Home Assistant integrations.
  • Local Modbus. Most hybrid inverters support Modbus TCP for direct control.
  • The Amber app. SmartShift's manual controls are the only Amber-side controls, and they are in the app, not the public API.

If you automate the battery yourself, turn off SmartShift for that battery. Amber says other controllers fighting SmartShift is a common reason commands fail.

Members have built tools that switch SmartShift and dispatch commands using undocumented app endpoints. Those can stop working without notice, so treat them as unsupported.

Which battery inverters work best with Home Assistant for Amber automation?

Inverters with good local Modbus TCP support and an active Home Assistant integration work best. Among brands Amber also supports, Sigenergy, Sungrow, Fronius GEN24, SolarEdge and FoxESS are the most common choices, and Tesla works well through its cloud API.

What to look for:

  • Local control. Modbus TCP or a local API means automations keep working when the maker's cloud is down.
  • Write access. Some brands allow read-only access by default and need the installer to enable control.
  • Active community integration. Check the integration's release history and issue tracker.
  • Amber compatibility too. Choosing a SmartShift-compatible brand keeps the option of handing control back to Amber.

Trade-offs by brand, from members' experience:

  • Sigenergy: rich Modbus, but write control switches the system out of Amber's mode.
  • Sungrow: well-supported Modbus integration, popular for Home Assistant.
  • Fronius GEN24: solid Modbus, but some battery settings are installer-locked.
  • SolarEdge: curtailment works once the power control mode is set correctly.
  • Tesla: strong cloud integration, no local battery control.

Members most often recommend Sungrow and Sigenergy for Home Assistant. Some prefer to let SmartShift run the battery and use Home Assistant only for loads.

Why does the Amber Home Assistant integration keep becoming unavailable?

Usually because the integration could not reach Amber's API for a while, the token was revoked or regenerated, or Home Assistant hit an update issue. It is a cloud polling integration, so any internet or API hiccup shows as "unavailable" until the next successful poll.

Fixes to try:

  1. Check the token. If you regenerated your API token in the Amber web app, update it in the integration.
  2. Reload the integration under Settings, Devices and services.
  3. Check internet and DNS on the Home Assistant host.
  4. Update Home Assistant. Integration fixes ship in core releases.
  5. Check for an Amber outage. If the Amber app also shows stale prices, wait it out.

To keep automations safe, give them a fallback when the price sensor is unavailable, such as a default schedule, so a dropout does not leave curtailment or charging stuck.

Members found brief unavailability common around Amber maintenance and API changes. Longer outages usually traced to an expired token or an outdated Home Assistant version.

Can I check Amber prices with Google Home, Alexa or Siri?

Not directly. Amber has no official Alexa skill, Google Assistant action or Siri integration. Amber says integrations with live prices need its API and some technical skills. The usual route is Home Assistant, which can expose Amber prices to Google Home, Alexa or Siri.

Options:

  • Home Assistant. Add the Amber Electric integration, then expose the price sensor to your voice assistant through Home Assistant's voice, Alexa or Google integrations.
  • Siri Shortcuts. A shortcut can call Amber's API with your token and read out the current price.
  • App notifications. The Amber app sends price alerts when prices are forecast to spike or drop, and custom alerts at a threshold you set in Settings.

Amber's smart home article says it does not integrate with smart appliances directly, so automations through the API are the way to link devices to prices.

Members using Home Assistant report voice queries such as "what's the electricity price?" work well once the sensor is exposed.

Can the Amber and Tesla Home Assistant integrations work together to control a Powerwall?

Yes, but only if SmartShift is not also controlling the Powerwall. Home Assistant can read Amber prices and send Powerwall commands through a Tesla integration, such as changing operation mode or backup reserve, but running both at once causes the two controllers to overwrite each other.

How members set it up:

  • Amber Electric integration for prices and forecasts.
  • A Tesla integration for Powerwall control. Options include Tesla's Fleet API and community integrations.
  • Automations that switch between self-powered and time-based control, or adjust backup reserve, based on price.

Things to know:

  • Amber says Tesla batteries must be in Self-Powered mode for SmartShift, and external controllers interfere with its commands.
  • Powerwall commands through the cloud can take a minute or more to apply.
  • Some members leave SmartShift on and use Home Assistant only to monitor, or to step in during spikes.

Several members run Powerwall automation entirely through Home Assistant with dashboards that pick a strategy each evening. Others use dedicated tools such as PowerSync.

Can I get demand window times from the Amber API?

Partly. Amber's API includes a demandWindow flag on each price interval, true when that interval falls in your demand window, but only if your site is on a demand tariff. It does not publish the window's start and end times as a separate field.

How to use it:

  • Read the flag on current and forecast intervals. The first and last true intervals give you the window's times for the day.
  • Home Assistant. The Amber Electric integration exposes a demand window sensor on demand-tariff sites.
  • Cross-check. Amber's app shows demand windows on Live Prices and under Settings, then View tariff details.

Automations can then block EV charging, pre-charge the battery or raise the reserve before the window starts.

A member who asked about avoiding grid draw during the demand window found the flag was the reliable trigger, since windows vary by network and season.

How do I get an Amber API token, and what if it won't generate?

Log in to the Amber web app at app.amber.com.au/developers, turn on Developer Mode, then choose Generate a new token and name it. Copy the token straight away, because it disappears when you reload the page. You need an active Amber account to see the Developers page.

If the token will not generate:

  • Use the web app, not the mobile app. The Developers tab is in the browser version.
  • Check your account status. New accounts that are still transferring may not have access yet.
  • Try another browser or clear the cache, in case a script is blocked.
  • Ask on Amber's GitHub discussion forum, which Amber links from its API help article, or email Amber.

Once you have it, paste it into Home Assistant's Amber Electric integration or your script's authorisation header. Treat it like a password and regenerate it if it is exposed.

A member whose token would not generate was most likely affected by account status or a browser issue. Both are quick to rule out.

Sources

  1. Amber Electric. Amber Electric Public API (OpenAPI specification, version 2.1.0). 3 Dec 2026.
  2. Amber Electric help centre. Do you have an API?. 3 Dec 2026.
  3. Amber Electric help centre. Enrolling your Sigenergy system to Amber for Batteries. 3 Dec 2026.
  4. Amber Electric help centre. Enrolling your Tesla Powerwall to Amber for Batteries. 3 Dec 2026.
  5. Amber Electric help centre. Five minute settlement explained. 3 Dec 2026.
  6. Amber Electric help centre. How do Amber for Batteries' control features work and when would I use them?. 3 Dec 2026.
  7. Amber Electric help centre. How do demand tariffs work with Amber?. 3 Dec 2026.
  8. Amber Electric help centre. I have a Smart home, how does Amber work?. 3 Dec 2026.
  9. Amber Electric help centre. Solar curtailment to maximise feed-in earnings. 3 Dec 2026.
  10. Amber Electric help centre. What are the features in the Amber app?. 3 Dec 2026.
  11. EMHASS open-source project. EMHASS documentation. 3 Dec 2026.
  12. Home Assistant. Amber Electric integration. 3 Dec 2026.