> For the complete documentation index, see [llms.txt](https://docs.mclimate.eu/mclimate-lorawan-devices/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mclimate.eu/mclimate-lorawan-devices/devices/mclimate-vicki-lorawan/vicki-lorawan-device-communication-protocol/temperature-control/motor-control.md). Agents can also search and read this documentation through its [MCP server](https://docs.mclimate.eu/mclimate-lorawan-devices/~gitbook/mcp).

# Motor control

## Set motor position and update target temperature

{% hint style="warning" %}
This command is available/works only in Manual Control mode.
{% endhint %}

The command structure you need to send to Vicki to change the motor position and update the target temperature is shown in the table below.

<table data-header-hidden><thead><tr><th width="133">Byte index</th><th>Hex value - Meaning</th></tr></thead><tbody><tr><td><strong>Byte index</strong></td><td><strong>Hex value - Meaning</strong></td></tr><tr><td>0</td><td>31 – The command will set Vicki motor position and target temperature</td></tr><tr><td>1</td><td>XX – Motor position in steps – MSB</td></tr><tr><td>2</td><td>XX – Motor position in steps – LSB</td></tr><tr><td>3</td><td><p>XX – Target temperature to be shown on the LED display when the rotary encoder is moved.</p><p>Currently <code>0x05</code> &#x3C;= XX &#x3C;= <code>0x1E</code></p></td></tr></tbody></table>

**Example command:** `0x31012C1D` – Set Vicki motor position to 300 and target temperature to 29.

{% hint style="danger" %}
When moving the valve, make sure the difference between the current motor position and the desired motor position is >= 17 steps! If you specify a lower amount of steps, the device will misbehave!
{% endhint %}

## Set motor position only

{% hint style="warning" %}
This command is available/works only in Manual Control mode.
{% endhint %}

{% hint style="warning" %}
This feature is available in firmware >= 4.0.
{% endhint %}

This command is used to set desired motor position. It can be used when the temperature control is managed by the server. The allowed motor position to set is limited internally to 800 steps (`0x0320`).

<table data-header-hidden><thead><tr><th width="137"></th><th></th></tr></thead><tbody><tr><td><strong>Byte index</strong></td><td><strong>Hex value - Meaning</strong></td></tr><tr><td>0</td><td>2D – The command code.</td></tr><tr><td>1</td><td>XX – Motor position in steps - MSB.</td></tr><tr><td>2</td><td>XX – Motor position in steps – LSB.</td></tr></tbody></table>

{% hint style="danger" %}
When moving the valve, make sure the difference between the current motor position and the desired motor position is >= 17 steps! If you specify a lower amount of steps, the device will misbehave!
{% endhint %}

**Example command:** `0x2D01F4` – Set the motor position to 500 steps.

## Recalibrate motor

This command calibrates the device motor and closes the valve (drives the motor to maximum available position). Usage of this command must be avoided. The only data sent from the server is the command code.​

| **Byte index** | **Hex value - Meaning**                                    |
| -------------- | ---------------------------------------------------------- |
| 0              | 03 – The command will cause Vicki to recalibrate the motor |

**Example command:** `0x03`


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.mclimate.eu/mclimate-lorawan-devices/devices/mclimate-vicki-lorawan/vicki-lorawan-device-communication-protocol/temperature-control/motor-control.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
