# MQTT Tags and configure alarms

**URL:** <https://forum.inductiveautomation.com/t/mqtt-tags-and-configure-alarms/18255>\
**Category:** 3rd Party Modules\
**Created:** [May 31, 2018, 11:28pm UTC](https://forum.inductiveautomation.com/t/mqtt-tags-and-configure-alarms/18255 "2018-05-31T23:28:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ingeniero.aplicacion](https://avatars.discourse-cdn.com/v4/letter/i/57b2e6/32.png) [@ingeniero.aplicacion](https://forum.inductiveautomation.com/u/ingeniero.aplicacion)\
**Post date:** [May 31, 2018, 11:28pm UTC](https://forum.inductiveautomation.com/t/mqtt-tags-and-configure-alarms/18255/1 "2018-05-31T23:28:53Z")

</div>

Hello Everyone,

I am new in Ignition and I am testing the MQTT module because I am using MQTT protocol to send the data of my devices, so I see as soon as a message arrives this creates a new tag with the value of the message, the message contains data from different sensors and i am separating this data in a script, the problem I have is that I want to configure alarms for each of the variables that I am separating in the script, but from what I have learned to configure the alarms i should have a tag for variable and I’m talking about 20 variables per device and I have 10 devices, is there any way to do this differently? sorry for my english.

I appreciate all the support you can give me

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [May 31, 2018, 11:43pm UTC](https://forum.inductiveautomation.com/t/mqtt-tags-and-configure-alarms/18255/2 "2018-05-31T23:43:07Z")

</div>

I haven’t worked with MQTT yet, so I’m not sure if there’s a better way to do that end of it. Others may have better suggestions.

[system.tag.addTag](https://docs.inductiveautomation.com/display/DOC79/system.tag.addTag) is an efficient way create a bunch of similar tags (run it from script console or elsewhere, depending on needs).

You can use [system.tag.writeAll](https://docs.inductiveautomation.com/display/DOC79/system.tag.writeAll) to write the values to all the tags in one call.

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [June 1, 2018, 1:23pm UTC](https://forum.inductiveautomation.com/t/mqtt-tags-and-configure-alarms/18255/3 "2018-06-01T13:23:10Z")

</div>

So you have to configure a second tag for any points that you want alarming on with MQTT? that seems inconvenient.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 1, 2018, 5:22pm UTC](https://forum.inductiveautomation.com/t/mqtt-tags-and-configure-alarms/18255/4 "2018-06-01T17:22:18Z")

</div>

> [@diat150](#):
>
> So you have to configure a second tag for any points that you want alarming on with MQTT?

No. The OP is packing multiple actual values into a single MQTT "value". The split up values need to be in their own tags to be alarmable. I'd change the system to report each actual value individually -- it's really hard to get any gain from report-by-exception using an aggregate.
