> For the complete documentation index, see [llms.txt](https://homey.solweb.no/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://homey.solweb.no/aggregated-state/ventilation/humidity-bathrooms.md).

# Humidity bathrooms

I use a [Xiaomi Aqara temperature and humidity sensor](https://www.gearbest.com/access-control/pp_626702.html) in each bathroom, and I also have a Netatmo indoor station that I use to correlate.

I keep an humdiff variable updated for each bathroom, which should be the humidity in the bathroom minus the humidity in the living room.

![](/files/-Ltp9lWIeVMfy72P4tVl)

Then for each bathroom, I update a vent-hum-bad1 boolean variable to indicate whether the humidity level is sufficiently higher than the reference in order to trigger ventilation:

![](/files/-LtpA5X6grIYivvLsyOY)

Here is an example of insight of the humdiff variable after a shower. It triggered ventilation to run on high for about an hour.

![Humidity in bathroom1 compared to a reference, after a shower](/files/-LtpATvf9ala5ebcHf7K)


---

# 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://homey.solweb.no/aggregated-state/ventilation/humidity-bathrooms.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.
