# Home Assistant

The Ruuvi Gateway integration was introduced in Home Assistant 2023.2, see <https://www.home-assistant.io/integrations/ruuvi_gateway/>

## Setup

Install [Home Assistant OS 9.5](https://github.com/home-assistant/operating-system/releases/tag/9.5) or newer.

Configure Ruuvi Gateway to use [Polling mode](/ruuvi-gateway-firmware/examples/polling-mode.md) (configure a Bearer token for read-only access).

Adding Ruuvi Gateway to your Home Assistant instance can easily be done by simply clicking on this [link](https://my.home-assistant.io/redirect/config_flow_start?domain=ruuvi_gateway). After that, you'll see the following confirmation:

![](/files/JzR2q3vknfIQlTbe3o3g)

After you click the **OPEN LINK** button, you may be prompted to log in:

![](/files/bdRw5GIZUJSWzeIpjO3j)

Then you will see a confirmation to set up the Ruuvi Gateway in Home Assistant:

![](/files/vPItE3sHims49IQENG2I)

After that, you will need to enter the IP address of Ruvvi Gateway and the Bearer token specified when configuring the Gateway:

![](/files/4PypGRi3Sh2djroLJZas)

That's it, then you will see a confirmation that Ruuvi Gateway has been successfully added:

![](/files/T5XwvOW3gOt7kYWoUzu4)

After that, the **Integrations** tab will open, where you can find the Ruuvi Gateway and a set of sensors:

![](/files/GRKYmBfQcjdm89C0PVX5)

You can manually open the **Integrations** tab:

* In the sidebar click on **Settings**
* From the configuration menu select: **Devices & Services**

You will then need to configure the discovered sensors, select one of them and press the **CONFIGURE** button:

![](/files/FNHYaRRd2jiLpAltg9OQ)

Then press the **SUBMIT** button:

![](/files/YZY7O6ilNes62hxm2RuX)

Configure **Area** for the sensor and press the **FINISH** button:

![](/files/OIWvTHgcohXZFeY5dBQX)

After that, the configured sensor will appear on the **Overview** page:

![](/files/xPPjLgRbZBvTxxm6RhTr)

That's all.


---

# Agent Instructions: 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:

```
GET https://docs.ruuvi.com/ruuvi-gateway-firmware/examples/home-assistant.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
