> For the complete documentation index, see [llms.txt](https://docs.trest.se/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trest.se/the-basics/how-does-the-software-work/bot-actions-and-overrides.md).

# Bot Actions and Overrides

### Bot Actions

Bot Actions automatically optimize your home's energy costs. The Bot analyzes your energy usage, identifies the most cost-effective hours to purchase energy daily, and determines the best times to use the purchased energy based on your consumption. This helps optimize your energy bill.

These Bot Actions have different colors for each 'mode', here are the descriptions of the Bot Action colors:&#x20;

<mark style="color:yellow;">Yellow</mark>: Pause, the battery will not charge and neither discharge

<mark style="color:green;">Green</mark>: Buy, the battery will buy electricity from the grid&#x20;

<mark style="color:red;">Red</mark>: Sell, the battery will discharge energy to the grid

<mark style="color:blue;">Blue</mark>: Self sustainable, will use the energy in the battery and charge it from your solar cells if the sun is shining

### Bot Overrides

Bot Overrides allow you to customize the Bot's actions. If you feel the Bot has chosen unusual hours for its actions, you can set your own preferred energy modes for specific hours.

You can also override 'Non-Bot' hours, such as the 'Blue hours' that are '<mark style="color:blue;">Self Sustainable</mark>'. For instance, if energy prices spike by 700% at 6 PM, you can charge the battery in the preceding hours and set a '<mark style="color:red;">Sell</mark>' mode at 6 PM, and the system will handle everything automatically.

The Bot Overrides have a different colors than Bot Actions to be able to differ between them:

<mark style="color:green;">Dark Green</mark>: Override Buy mode

<mark style="color:purple;">Purple</mark>: Override Sell mode

<mark style="color:orange;">Beige</mark>: Override Self Sustainable mode


---

# 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.trest.se/the-basics/how-does-the-software-work/bot-actions-and-overrides.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.
