---
title: Tags
slug: litmusedge-v3/product-features/devicehub/tags
description: Tags are the single units of data collection from a device and map to the device's registers from which you want DeviceHub to collect data.
docTags: 
createdAt: 2022-05-13T19:50:40.000Z
---

Tags are the single units of data collection from a device. After connecting a device to Litmus Edge, you add tags to that device. Tags map to the device's registers from which you want DeviceHub to collect data. Every device has memory registers that store sensor and system values. These registers can be analog and digital, input, and output. Register information is accessed as tags and these tags are published as *Topics&#x20;*&#x74;o the internal *Message Broker*.&#x20;

# Raw Topics and Alias Topics

When you [Connect a device](docId\:pal6ABPZbrimdU9LvGJ30), you have the option of generating raw topics or alias topics. Raw or processed data can be analyzed at the edge using [Analytics](docId:8alOe_5_c9uBqJsW0PpCX) or flows in [Flows Manager](docId\:JGhNQYhxbIk8x2nhH5Vte). You can publish data to Litmus Edge Manager through raw topics. Alias topics consist of *devicename* and *tagname&#x20;*&#x69;nstead of DeviceID and TagID. Alias topics can be used for publishing and subscribing with an internal message broker.&#x20;

If you select **Enable alias** **topics** when adding or modifying a device:

- The Topic ID is replaced with a name (for example, `devicehub.alias.PLC1.floatTag`)
- DeviceHub stops publishing to raw topics and publishes only to alias topics.&#x20;
- Litmus Edge substitutes all special characters in aliases with "\_" (underscore).&#x20;
- Message broker allows subscribe and publish of Raw/Alias topics.&#x20;
- When alias topics are enabled for a device, you can't use batch write topics. To use batch write topics, ensure that **Enable alias topics** check box is not selected in device configuration. See [Default Topics and Descriptions](docId\:nrSa0GtYa9v0zAb57wlZk) for more information.

# Adding Tags

You can add tags as follows:

- **Add a single tag**: Add a single tag for the selected device. See [Add a Tag](docId\:Tuy-hh0Gi8DjVOT70wRoh).
- **Add multiple tags**: Upload multiple tags at once from a CSV file. See [Add Multiple Tags](docId\:OQu79ahvNDKEm2Q6LzlCW).
- **Browse Tags**: Search for and add predefined device tags. See [Browse and Add Tags from a Device](docId:8oruW1CMtao49bwbBHWrn).

See [Default Topics and Descriptions](docId\:nrSa0GtYa9v0zAb57wlZk) for information about topic formats.

# Access Tags UI

You can access *Tags&#x20;*&#x66;rom the *DeviceHub*.&#x20;

**To access Tags:**

1. Log in to Litmus Edge.
2. From the Navigation panel, navigate to **DeviceHub&#x20;**> **Tags**.
   Th&#x65;*&#x20;Tags* pane appears.

::Image[]{src="https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/vqV7bVoNRvuC6ZjsqnyFq_image.png" size="80" width="1536" height="751" position="flex-start" showCaption="false" indent="1"}

# Next Steps

- [Add a Tag](docId\:Tuy-hh0Gi8DjVOT70wRoh)&#x20;
- [Add Multiple Tags](docId\:OQu79ahvNDKEm2Q6LzlCW)&#x20;
- [Browse and Add Tags from a Device](docId:8oruW1CMtao49bwbBHWrn)&#x20;
- [Manage Tags](docId\:qm0urCLtmYSiMHM2_5kMx)&#x20;
- [Tag Formula Variables](docId\:Io7xgyrdVv_vmpnFXOACi)
- [Default Topics and Descriptions](docId\:nrSa0GtYa9v0zAb57wlZk)&#x20;
- [DeviceHub Guides](docId\:jrI2-fmSAIGVuq8VScoaA)
- [DeviceHub Troubleshooting](docId:7Fa2-oN6FTIHPuDS8V3Sk)

