> 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/applications/from-practice-sensors-to-real-ones.md).

# From Practice Sensors to Real Ones

Replace the practice sensors in your installed setup with your own Chirp devices using Swap connection. Dashboards, automations, and alerts keep working.

An installed solution starts with practice sensors, so your dashboard shows lively readings from the first minute. (Some screens call them emulated devices or the Emulator.) Once your own sensors arrive, you point the setup at them. Nothing gets rebuilt. Only the source of the numbers changes, and your dashboards, automations, and alerts carry on.

## What do I need before swapping?

* **Your real sensor**, switched on and close enough to its gateway or network.
* **How it connects.** The sensor's manual tells you: LoRaWAN, MQTT, or a tracker. A connector is the link that brings its readings into Chirp.
* **Its identifiers.** These are printed on the label or listed in the manual.

No connector of that type in your account yet? Press **Go to connectors** on the application's **Emulator** card, or read [Connectors](https://docs.chirpwireless.io/connectors.md), then come back.

## How do I get to the device?

1. Open **Applications → My applications** and select your application. The title reads **Applications /** followed by its name. A pencil icon (edit) and a trash can (delete) sit at the top right.
2. Open the **Content** tab. The **Emulator** card at the bottom of the left column is there as long as any device is still a practice sensor. It explains the swap and offers **Go to connectors**.
3. Under **Devices**, select the device you want to swap. The device editor opens.

The **Dashboard** tab next to it has one button per dashboard, and every widget wears an **Emulator** badge while it reads from a practice sensor. If the setup has no dashboard, you see **This application has no dashboards yet**. A dashboard with nothing on it says **This dashboard has no widgets yet**.

## What are the tabs of the device editor?

The editor has the tabs **Device info**, **Connection**, **Emulator**, **Mapping**, and **Logs**. If **Support commands** is switched on for the device, a **Commands & States** tab shows up as well. For the swap you use **Connection** and, sometimes, **Mapping**. The rest are handy to know.

### What is on the Connection tab?

This is where the swap happens. Under the heading **Choose a connector to add a device** you see **Connector type** set to **Emulator**, with a **Swap connection** link on the right. Below it come the **Device data key** rows and, at the bottom, the **Reception** strip.

A device data key is the name a sensor uses for one reading, such as temperature. Each row shows its **Data type**, an **Emulator** button, and a trash can.

<figure><img src="https://1153890212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxgYoHO4zlaBzHJcfIrto%2Fuploads%2Fgit-blob-54e2808755f50e88304509683a5eee3b54304ec9%2Fchirp-device-connection-emulator.jpg?alt=media" alt="The Connection tab of a practice sensor showing the Swap connection link, Connector type Emulator, the Device ID, the data sending interval, a Device data key row and the Reception strip"><figcaption><p>The Connection tab of a practice sensor, with Swap connection at the top.</p></figcaption></figure>

### How do I start the swap?

```mermaid
flowchart LR
    A[Practice sensor on the Emulator] --> B[Open the device and its Connection tab]
    B --> C[Choose Swap connection]
    C --> D[Pick the real connector and enter its details]
    D --> E[Dashboard and automations read real data]
```

1. Select **Swap connection**. The link turns into **Cancel swap**, and **Connector type** becomes a drop-down.
2. Choose the connector your sensor uses: LoRaWAN, MQTT, or a tracker.
3. Fill in the fields that appear, using the identifiers from your sensor's manual or label.
4. Leave the **Device data key** rows as they are. That is what lets the dashboard go on working.
5. Select **Save**.

Change your mind halfway? **Cancel swap** leaves the device on the Emulator. Also worth a look: the solution's **Content** text often lists the identifiers each device needs.

### How do I know the swap worked?

After saving, watch the **Reception** strip on the **Connection** tab. Real readings are arriving when it says **Receiving & storing** with a **LIVE** marker.

If it does not, go through these in order:

1. Compare the identifiers you typed with the sensor's label. One wrong character is enough to break it.
2. Make sure the sensor is on and in range of its gateway or network.
3. Check the connector. With MQTT, see [How do I troubleshoot MQTT and Zigbee2MQTT?](https://docs.chirpwireless.io/connectors/mqtt-connector/troubleshooting.md). For other connectors, see [Connection diagnostics](https://docs.chirpwireless.io/devices/connection-diagnostics.md).

Still no luck? Contact Chirp support.

{% hint style="warning" %}
A real sensor may report its readings under different names than the practice sensor did. If the dashboard stays empty after the swap, open the **Mapping** tab and match the real sensor's names to the readings the dashboard uses.
{% endhint %}

### What do the Emulator and Mapping tabs do?

**Emulator.** While the device is a practice sensor, type a value for any reading and choose **Save**, or choose **Send once** to push one reading through right away. It is a quick way to try an automation without waiting.

<figure><img src="https://1153890212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxgYoHO4zlaBzHJcfIrto%2Fuploads%2Fgit-blob-5f1d757cc0b04b996deb033ec05444f5c5dd8858%2Fchirp-device-emulator-tab.jpg?alt=media" alt="The Emulator tab with a Device data key field, a Value field and the Save and Send once buttons"><figcaption><p>The Emulator tab.</p></figcaption></figure>

**Mapping.** This tab shows each reading's **Device data key**, current **Value**, **Last update**, **Normalized key** (Chirp's standard name for the reading), **Unit**, **Type**, and **Data type**. A trash can at the end of a row removes that reading from the list. For a practice sensor the rows follow the device setup, so add or rename readings on the **Connection** tab instead.

<figure><img src="https://1153890212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxgYoHO4zlaBzHJcfIrto%2Fuploads%2Fgit-blob-45e97cb4b66ca8c38941c26857d128964b2a9eec%2Fchirp-device-mapping-tab.jpg?alt=media" alt="The Mapping tab listing Device data key, Value, Last update, Normalized key, Unit, Type and Data type for one reading"><figcaption><p>The Mapping tab.</p></figcaption></figure>

**Commands & States.** It only appears with **Support commands** on. Define the actions you can send to the device and see how they turned out. See [Commands](https://docs.chirpwireless.io/devices/commands.md).

## What stays the same, and what changes?

| Stays the same          | Changes                                       |
| ----------------------- | --------------------------------------------- |
| Reading names and units | Where the readings come from                  |
| Dashboards and widgets  | The device's connector type                   |
| Automations and alerts  | The identifiers you enter for the real sensor |

The **Emulator** badge also disappears from each device once you swap it.

## Can I swap one sensor at a time?

Yes, in any order. Swapped ones send real readings, and the others keep sending practice readings until their turn. Once the last practice sensor is gone, the **Emulator** card leaves the **Content** tab.

## How do I tell a practice sensor from a real one?

Look for the small badge beside a device name. You find it on the **Content** tab, in your Devices list, and on dashboard widgets.

* **Emulator** marks a practice sensor.
* **live** means a real sensor is sending, and **offline** means it has gone quiet. The badge adds the technology, for example **live · LoRaWAN**, **offline · MQTT**, or **live · Tracker**.
* **not connected** means no real connection is set up yet.

For more background, see the page on pretend (practice) sensors, [How do I create a pretend sensor in Chirp?](https://docs.chirpwireless.io/devices/pretend-sensors.md) and the [Emulator Connector](https://docs.chirpwireless.io/connectors/emulator-connector.md).
