Home Connect Developer Program

This page does NOT support Internet Explorer. Please use a modern browser like e.g. Google Chrome, Mozilla Firefox or Microsoft Edge.

General

IntroductionCopied link to clipboard

Home Connect offers a RESTful API to control and monitor enabled home appliances. The following chapters provide details about the usage of this API. If it's your first time working with the Home Connect API, please see our Quickstart guide.

API client based on Swagger

Endpoints and Data EncodingCopied link to clipboard

API of simulated home appliances

simulator.home-connect.com

API of physical home appliances

api.home-connect.com or

api.home-connect.cn - This domain has to be used if you want to create an application for China. In this case please enable Sync to China in the account settings to copy all clients to China.

Data Encoding

The Home Connect API is based on HTTPS carrier with JSON data encoding.

All JSON transfer units are encoded with the following structure:

Auto-CountingCopied link to clipboard

Some values reported by a home appliance change continuously while a program runs, for example the remaining program time or the program progress in percent. If you only rely on NOTIFY events, your application's display can lag behind by several seconds, since appliances don't send an update on every single tick of the clock.

Auto-Counting solves this: alongside such a value, the appliance also reports how fast it currently changes. Your application can use that rate to keep counting the value up or down locally, between events, without ever polling the API.

Auto-Counting is an addition to the normal event flow, not a replacement for it. Keep your event subscription open as usual - the appliance still notifies you whenever a value changes for a reason other than the simple passage of time, for example because a program moves to its next phase or the user pauses the appliance.

How a value exposes its counting rate

Any numeric option or status with a changing value - such as a duration in seconds, a percentage, or a temperature - can come with a companion key that reports its current rate of change:

<FeatureKey>.AutoCountingDeltaPerSecond

(for example BSH.Common.Option.RemainingProgramTime.AutoCountingDeltaPerSecond)

This companion key:

  • shares the data type and unit of <FeatureKey> (so a value in seconds gets a delta in seconds per second, a value in % gets a delta in % per second, and so on)
  • is only available when <FeatureKey> itself is available
  • is readable whenever <FeatureKey> is readable
  • always notifies on change

Its value tells you what to do:

  • Zero means counting is currently paused - display <FeatureKey> as-is and don't change it until the next update.
  • Any other value means counting is active. The sign tells you the direction (positive counts up, negative counts down) and the size tells you how much to add per second.

Whenever this delta changes - including when counting starts, stops, or switches direction - the appliance sends the current value of <FeatureKey> in the same update. That means you never need to remember where the countdown "should" be; every change of pace comes with a fresh, authoritative value to restart counting from.

If <FeatureKey> has a defined minimum or maximum, the appliance is expected to stop counting once that boundary is reached (setting the delta back to 0) and to report the boundary value, rather than letting your locally-computed value run past it. Since that update reaches your application with a short delay, clamp your locally-computed value to the minimum and maximum yourself as well - for example, never count a remaining time below 0.

Example

Here's a snapshot of an active Dishcare.Dishwasher.Program.Eco50 program, read via GET /api/homeappliances/{haId}/programs/active:

With a delta of -1, your application can count RemainingProgramTime down by one second on every tick of its own clock - 8800, 8799, 8798, and so on - and it will match what the appliance would report if you asked again. ProgramProgress behaves the same way, just climbing by 0.01 % per second instead. Note that this makes the locally-computed progress a fractional number, while ProgramProgress itself is documented as an integer - round it before displaying it. Neither value needs a new API request until the appliance sends the next NOTIFY, for example when the program reaches its next phase and both the value and the delta are corrected.

More examples

  • BSH.Common.Option.ElapsedProgramTime.AutoCountingDeltaPerSecond == 1 - elapsed time counts up by 1 second every second.
  • BSH.Common.Option.RemainingProgramTime.AutoCountingDeltaPerSecond == 0 - counting is paused, for instance because the program itself is paused.
  • BSH.Common.Option.ProgramProgress.AutoCountingDeltaPerSecond == 0.016667 - a program of about 100 minutes, where progress advances roughly 1 % per minute.

Putting it together over a program run

  1. When a program starts, the appliance may not yet have a reliable estimate - expect the delta to be 0 at first, with the plain value staying put.
  2. Once an estimate is available, the appliance sends both the current value and a non-zero delta. From here, your application takes over the counting locally.
  3. Anything that changes the appliance's own estimate - a new phase, a sensor adjusting the expected duration, the user pausing the machine - arrives as an ordinary NOTIFY with a corrected value and (if it changed) a corrected delta. Drop your local estimate and continue from what you just received.
  4. Because every client reacts to the same NOTIFY stream the same way, two apps watching the same appliance end up showing the same numbers, even though neither of them is polling for it.

Older, deprecated variants

A couple of appliances still use mechanisms that predate .AutoCountingDeltaPerSecond (for example BSH.Common.Option.RemainingProgramTime.AutoCountingDeltaPerSecond). Don't build new integrations around them - they're listed here only so you recognize them if you come across them.

.AutoCountingUp / .AutoCountingDown (for example BSH.Common.Option.ElapsedProgramTime.AutoCountingUp / BSH.Common.Option.RemainingProgramTime.AutoCountingDown) - used only for time values in seconds. Instead of a single delta, the appliance exposes two boolean keys, one per direction:

  • <TimeSpanBasedFeatureKey>.AutoCountingUp == true counts the value up by 1 second per second; false pauses it.
  • <TimeSpanBasedFeatureKey>.AutoCountingDown == true counts the value down by 1 second per second; false pauses it.

As with the generic mechanism, every time one of these flips, the appliance also sends the current value so your application can resynchronize. For example, BSH.Common.Option.RemainingProgramTime.AutoCountingDown == true counts down, false means paused - and if the remaining time changes on its own (a sensor-based program, say), the appliance notifies the new value and your application picks up counting down from there.

.AutoCounting (for example BSH.Common.Option.RemainingProgramTime.AutoCounting) - an older form still, and the one to avoid the most: a single boolean with no indication of which direction it counts in. Using it means hard-coding the direction into your application based on what that particular Feature Key is known to do, which breaks the moment behavior changes. It has no place in new integrations.

Try it in the simulator

You can try out Auto-Counting without a physical appliance. Start a program on one of the simulated appliances (currently available for dishwashers only - select the Dishwasher in the simulator) and watch the .AutoCountingDeltaPerSecond keys (for example BSH.Common.Option.RemainingProgramTime.AutoCountingDeltaPerSecond) arrive alongside the program options, both in the active program and in the event stream.

See Simulator vs. Home Connect API for how to get started with the simulator.

Best PracticesCopied link to clipboard

React on home appliance state

To get the full state of all paired home appliances of a user and keep your application updated with the latest state changes, you have to:

Thus, in total you need 54 requests to get the full state of all 6 supported home appliances and be informed of each change.

Start program

In order to start a program, several pre-conditions have to be fulfilled:

If you have sent the activation command, check BSH.Common.Status.OperationState again to validate if the home appliance switched to BSH.Common.EnumType.OperationState.Run. It might happen that some problem, e.g. the water tank is empty, happened during the activation.

Pre-heat oven

If you want to pre-heat an oven, use the program Cooking.Oven.Program.HeatingMode.PreHeating with a duration longer than the oven requires to reach the target temperature. We recommend to use a minimum of 10 minutes. The oven will start a hot air program with the selected options.

Connect to the monitoring channel for this oven and wait for the Cooking.Oven.Event.PreheatFinished event. When you receive the event, notify the user that the oven is ready.

We recommend not to use the event Cooking.Oven.Status.CurrentCavityTemperature because the temperature might not provide the necessary accuracy.

Monitoring program progress

If you started a program on a home appliance, the home appliance will provide status updates on its event channel. Useful events are:

  • BSH.Common.Status.OperationState: Use this event to reflect the oven state in your application and identify manual user interaction. For instance, if the oven switches the OperationState to_BSH.Common.EnumType.OperationState.Finished_ you can present a message to the user that the meal is ready. If the OperationState changes to_BSH.Common.EnumType.OperationState.Pause_, the user either pressed the Pause button or opened the door of the oven.
  • Connection state: The home appliance is disconnected from the Home Connect server, e.g. due to a network error.

If a value you are displaying, such as BSH.Common.Option.RemainingProgramTime or BSH.Common.Option.ProgramProgress, comes with an Auto-Counting companion key, use it. It lets your application keep counting that value up or down locally between events, so your UI stays smooth without repeatedly polling the API. This does not replace your event subscription — keep it open as usual, since the appliance still notifies you whenever a value changes for a reason other than the simple passage of time.

Supported LanguagesCopied link to clipboard

The Home Connect API supports many languages in addition to English. When making a GET request, you have the ability to add the Accept-Language header in order to get all feature keys and enumeration values in the requested language.

Please note that API errors are not translated, e.g. if remote start disabled error is returned during program start.

Supported Languages

Language tag follows the HTTP/1.1 specification, section 3.10.

Example

Used Accept-Language header: fr-FR

Rate LimitingCopied link to clipboard

The Home Connect API uses the following rate limits. Please make sure not to reach the limits regularly, otherwise your client application may be blocked. At the moment two different rate limit types are supported.

Amount-based Rate Limits

Generally if too many requests are sent, further requests are rejected with the HTTP status code 429.

The following limits are currently configured:

  • 10 event monitoring channels per client and Home Connect user account at any time (the request for further channels will be blocked)
  • 10 requests per second on average (20 requests max. burst) with leaky bucket algorithm, otherwise HTTP 429 error

Example

No Retry-After header is set.

Hints

Rate limits are enforced per client_id and per Home Connect user account. Counters are maintained for each unique (client_id, user) pair.

What counts toward your daily limit:

  • Every HTTPS request to the Home Connect REST API counts toward the daily limit, regardless of success or failure;
  • Each logical request counts individually - HTTP keep-alive does not change this;
  • Retries count.

Server-Sent Events (SSE):

  • Opening an SSE stream counts as 1 request toward the daily limit;
  • Messages delivered over an open SSE stream, including keep-alive comments/heartbeats, do not count toward any request-based limits;
  • When an SSE stream is closed cleanly by the client, the backend updates its SSE connection accounting immediately.

Exceeding limits: if a Retry-After header is present, wait at least that long before retrying.

Time-based Rate Limits

Generally if too many requests are sent, further requests are rejected with the HTTP status code 429. In this case, please check the Retry-After header. This states the number of seconds that you need to wait, before you try your request again.

The following limits are currently configured:

  • 10 token refresh per minute and 100 token refresh per day
  • 1000 requests per client and Home Connect user account per day
    If the quota is reached, additional requests may be blocked. Thus, do not query for state information but use the monitoring function instead, and start/stop programs with care. Furthermore, only one monitoring channel per device per home appliance is allowed.
  • 50 requests per client and Home Connect user account per minute (more requests will be blocked for one minute)
  • 5 program starts per client and Home Connect user account per minute (more program starts will be blocked for one minute)
  • 5 program stops per client and Home Connect user account per minute (more program stops will be blocked for one minute)
  • 10 successive requests per client and Home Connect user account per 10 minutes which result in an error (more requests will be blocked for 10 minutes)

Example

Retry-After header is set to 52.

API ErrorsCopied link to clipboard

The Home Connect API returns appropriate HTTP status codes for every request.

Errors may have a JSON payload with the following structure:

Error Cases