# Entities

{% hint style="info" %}
All commands start with the prefix !, or your custom prefix.\
Inside usage arguments, "?" denotes an optional argument
{% endhint %}

#### bulkswitch

```
- Description: Turns on/off all added switches
- Usage: !bulkswitch <on|off|add|remove|list> <switch id?>
- Example: !bulkswitch on
- Tier: free
- Usable by: owner and authorized
```

#### group

```
- Description: Manages groups of switches
- Usage: !group <add|rem|list> <"group name"> <switch id?>
- Example: !group add "turrets" 123456
- Tier: premium
- Usable by: owner and authorized
```

#### listen

```
- Description: Listens to a smart alarm
- Usage: !listen <add/remove/list> <entityId> <name?>
- Example: !listen add 123456 trapbase
- Tier: free
- Usable by: owner and authorized
```

#### off

```
- Description: Turns off a smart switch with the given id/name.
- Usage: !off <id|name|"group name">
- Example: !off 123456
- Tier: free
- Usable by: owner and authorized
```

#### on

```
- Description: Turns on a smart switch with the given id/name.
- Usage: !on <id|name|"group name">
- Example: !on 123456
- Tier: free
- Usable by: owner and authorized
```

#### pair

```
- Description: Pairs a id with a custom name. Overwrites if given same name.
- Usage: !pair <add|rem|list> <id?|name> <name?>
- Example: !pair add 123456 sams
- Tier: free
- Usable by: owner and authorized
```


---

# 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.rustplustwo.com/chat-commands/entities.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.
