> 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/going-deeper.md).

# Going Deeper

Your first automation watches a single sensor and reacts to a simple threshold. That covers a lot of useful scenarios — but sometimes you need your home to be smarter than that.

What if you want to compare the temperature inside your home with the temperature outside before deciding whether something is wrong? Or check the humidity in your wine cellar against a recommended range that depends on the season? These situations call for automations that pull data from more than one source and do a bit of math before making a decision.

This section covers the tools that make that possible:

* [**Data Enrichment and Expressions**](/rules-engine/going-deeper/data-enrichment-and-expressions.md) — Fetch readings from other sensors inside the same automation, transform data with CEL expressions, and handle what happens when a sensor is offline. This is how you build automations that consider the full picture, not just one number.
* [**Publish and Run an Automation**](/rules-engine/going-deeper/publish-and-run-an-automation.md) — Your automation does not go live until you build and deploy it. This page walks through the entire publish lifecycle — building, deploying, stopping, and understanding what the Artifacts tab shows you.

Through CEL expressions, the logic you can model is very flexible — nested conditions, computed values, severity classifications, and dynamic alert messages that include live sensor readings. Once you are comfortable with these concepts, you will be able to build automations that handle real-world home situations with confidence, even when one sensor reading alone is not enough to tell the full story.


---

# 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/going-deeper.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.
