> For the complete documentation index, see [llms.txt](https://docs.unwaste.energy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unwaste.energy/en/unwaste-robot-operation/technical-details/price-based-device-control.md).

# Price-based device control

Understand how energy prices influence automated device operating modes.

This page explains how the Unwaste Robot chooses **Off**, **Eco**, **Comfort**, and **Boost** operating modes from electricity prices.

How these modes are sent to devices, and how they interact with schedules, overrides, and Surplus mode, is described in [Device control](/en/unwaste-robot-configuration/device/device-control.md) and [Profiles, schedules and overrides](/en/unwaste-robot-configuration/profiles-schedules-and-overrides/profiles-schedules-and-overrides.md).

***

## Control interval

The Unwaste Robot re-evaluates price-based modes every **15 minutes** — at the start of each control period.

For that period it decides whether energy is cheap or expensive and which operating mode to use as the default for managed devices (unless a schedule or override applies).

***

## Static tariffs

For **static tariffs** (fixed time-of-day zones, for example day/night rates), mapping is straightforward:

* the **cheaper zone** maps to **Comfort**
* the **more expensive zone** maps to **Eco**

Off and Boost are typically not used with simple two-zone static tariffs.

***

## Dynamic tariffs

For **dynamic tariffs** (prices that change frequently, often hourly), the Unwaste Robot assigns **Off**, **Eco**, **Comfort**, or **Boost** to each 15-minute period.

The algorithm compares:

* prices across the **current day**, and
* a **reference built from the last 30 days** of price history.

You do **not** configure price thresholds yourself. The system calculates them automatically from available price data.

The goal is to:

* use **Comfort** (and sometimes **Boost**) when energy is relatively cheap,
* use **Eco** or **Off** when energy is relatively expensive, and
* spread **Comfort** periods across the day rather than concentrating them at a single time.

***

## When prices are unavailable

Dynamic tariffs require the Unwaste Robot to download prices from Unwaste Cloud. If valid prices for the current day cannot be obtained, affected devices switch to **Unmanaged mode** until prices are available again.

The system does **not** reuse yesterday's prices as a fallback.

See [Connection — Dynamic Tariffs](/en/unwaste-robot-configuration/connection.md) for details and alerts.

***

## Relation to Surplus mode

Price-based control and Surplus mode are evaluated **independently**. Surplus depends on grid export/import, not on tariffs.

When both apply, **Boost** from price-based control takes precedence over **Surplus**. See [Surplus mode](/en/unwaste-robot-operation/technical-details/surplus-mode.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.unwaste.energy/en/unwaste-robot-operation/technical-details/price-based-device-control.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
