# Conditioning

Conditions in the Stock Home app really ammount to 2 areas.&#x20;

1. people presence
2. time of day/day of week

the second one is simple. you can set the automation to only occur after 3, or on a wednesday-friday or both. you can mix and match however you please :) it gets nuttier when we deal with people presence. People presense depends on WHO makes the automation (needs to be an admin in specific cases) lets work with an example home.

USERS:\
PaRkThEcAr\
Bo\
Bun\
Pepper\
\
Here is our set of users. you can condition it like this:\
\
Off (ignores presence and is default)\
When SOMEBODY IS HOME (when any of these 4 users are home)\
When NOBODY IS HOME (when none of those users are home)\
when I am not home (when I, PaRkThEcAr am not home)\
When I am home (when I, PaRkThEcAr am home)

These last 2 are interesting as they can only happen and be specified on the user's device (from their Apple ID) for example, if I wanted to make an automation for when only Pepper was home, i would need to make it from his profile and account. its silly, but it can be done.\ <br>


---

# 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://r-homekitautomation.gitbook.io/wiki/lets-build-the-basics/conditioning.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.
