> For the complete documentation index, see [llms.txt](https://docs.chirpwireless.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chirpwireless.io/rules-engine/examples.md).

# Examples

The best automations are the ones you build yourself — because you know your home, your routines, and what matters most to your family. But it helps to see how other people put the pieces together.

This section has ready-to-adapt examples that cover the most common home automation scenarios. Each one includes the visual workflow pattern, the CEL expressions you need, and enough context to customize it for your own sensors and thresholds.

Think of these as starting points, not finished products. Adjust the thresholds, swap in your own sensors, change the alarm messages — make them yours.

## Example Categories

* [**Home Comfort and Energy**](/rules-engine/examples/home-comfort-and-energy.md) — Keep your living spaces in the right range. Temperature zones, garden moisture, wine cellar climate monitoring, and more.
* [**Safety and Alerting**](/rules-engine/examples/safety-and-alerting.md) — React fast when something is wrong. Water leak detection, doors opening at unusual hours, and sensors that should not be in a certain state.

## Before You Start

Each example assumes:

* You have the relevant sensors registered in Chirp
* You have at least one alert rule set up in the [Alerts](/alarm.md) section for the automation to trigger
* You are comfortable with the basics covered in [Your First Automation](/rules-engine/your-first-automation.md)

If any of that is new, start with the tutorial first — it takes about ten minutes and covers everything you need.


---

# 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.chirpwireless.io/rules-engine/examples.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.
