> For the complete documentation index, see [llms.txt](https://mediocraty-itself.gitbook.io/rusttools/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mediocraty-itself.gitbook.io/rusttools/in-game-commands/smart-switch-commands.md).

# Smart switch commands

## - Adding smart switch on bot account

Instad of adding switches using their id\`s you can add them by using wire tool in-game.

Hold iinteract button ( Default "E") and choose Pair - bot will send message in chat where you can add switch by using `.device <switch_name>`

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FbLue3KtdBSmhhQZzorj2%2Fimage.png?alt=media&amp;token=8402bc02-6a02-4d34-920b-d04a542d8684" alt=""><figcaption></figcaption></figure>

## - Getting smart switch ID

To manage your smart switch you need to get id of it first.You can get smart switch ID by hitting the entity in-game and pressing F1 and typing `combatlog`

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FdsUZYV8G7foUCz9DCEcl%2Fimage.png?alt=media&amp;token=4104ec48-70e4-4953-bfad-a07467b31d0f" alt=""><figcaption></figcaption></figure>

<sup><mark style="color:yellow;">Note : After hitting smart switch wait<mark style="color:yellow;"></sup> <sup></sup><sup>`10 seconds`</sup> <sup></sup><sup><mark style="color:yellow;">before typing<mark style="color:yellow;"></sup> <sup></sup><sup>`combatlog`</sup>  <sup></sup><sup><mark style="color:yellow;">- it\`s the time rust will output needed information.<mark style="color:yellow;"></sup>

## - Adding switch to the list

`.switch add <any_name> <switch_id>` (alias "`.sw`") - adds switch to the data of saved switches.

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FEyogI773E8V3QPC4m4WN%2Fimage.png?alt=media&amp;token=02f41e4a-4a9a-4dd3-a5c2-57a07f9d5a9e" alt=""><figcaption></figcaption></figure>

<sup><mark style="color:yellow;">Note : Think twice before making some long name, sometimes you need to type command quick:<mark style="color:yellow;"></sup>

<sup>`.sw sam`</sup> <sup></sup><sup><mark style="color:yellow;">and<mark style="color:yellow;"></sup> <sup></sup><sup>`.sw SamsitesMainBase`</sup> <sup></sup><sup><mark style="color:yellow;">makes diffrance<mark style="color:yellow;"></sup>

## - Deleting switch from list

`.switch remove <switch_name>` (alias "`.sw`") - removes switch from data of saved switches.

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2Fyn7hfZBMP3UR0uOFrHY1%2Fimage.png?alt=media&amp;token=2b7954dd-773a-43e4-8fb2-575fdde574ab" alt=""><figcaption></figcaption></figure>

## - Rename switch in list

`.switch rename <old_name> <new_name>` (alias "`.sw`")  - rename switch in list.

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FQK1FKhr5EuF9pbINjLx2%2Fimage.png?alt=media&amp;token=f4146cf2-59ec-4a10-8e36-1e61103c79d3" alt=""><figcaption></figcaption></figure>

## - Getting list of saved switches

`.switch list`  (alias "`.sw`")  - outputs current state of all switches and their name and id\`s.

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FPwHMcfwVGauqpx0j6FTv%2Fimage.png?alt=media&amp;token=7b4cb032-77db-430b-997a-7cae122d7e25" alt=""><figcaption></figcaption></figure>

Also could be called by empty argument :&#x20;

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FL902vLZuAbfaf2uBS4g0%2Fimage.png?alt=media&amp;token=9dd8c961-3680-4248-8933-70e30b197cea" alt=""><figcaption></figcaption></figure>

<sup><mark style="color:yellow;">Note : Bot cannot acess switch if it\`s :<mark style="color:yellow;"></sup>\ <sup><mark style="color:yellow;">- Wrong data (Invalid ID or wrong server connected)<mark style="color:yellow;"></sup>\ <sup><mark style="color:yellow;">- Account which is bot connected through is not authed on TC which covers the smart switch<mark style="color:yellow;"></sup>\ <sup><mark style="color:yellow;">- Switch is destroyed<mark style="color:yellow;"></sup> \ <sup><mark style="color:yellow;">If one of those true bot will output<mark style="color:yellow;"></sup>    ![](https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FDYIOCMZAwILm34CXnElw%2Fimage.png?alt=media\&token=25fe303f-710f-433d-88b7-08805fc5a54d)  <sup><mark style="color:yellow;">emoji.<mark style="color:yellow;"></sup>

## - Getting switch info

`.switch info <switch_name>` (alias "`.sw`")  - returns switch info

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FfBjpsNUsr91DTkn4X4af%2Fimage.png?alt=media&amp;token=f01dff01-cb78-4e94-84e4-6f985adf489c" alt=""><figcaption></figcaption></figure>

## - Turning ON/OFF smart switch

`.switch <switch_name> (on/off)`(alias "`.sw`")  -  toggle switch, change state of switch to opposite.Argument `on/off` is `optional` .

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FTCXTg3IqJfYCjEnuN0Vb%2Fimage.png?alt=media&amp;token=f16f32ce-d21a-495f-9533-4a537e22d203" alt=""><figcaption></figcaption></figure>
