# How to Transmit Quality Value Tag Alongside Sensor Tag Value to MQTT Transmitter in Ignition Edge

**URL:** <https://forum.inductiveautomation.com/t/how-to-transmit-quality-value-tag-alongside-sensor-tag-value-to-mqtt-transmitter-in-ignition-edge/95061>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [August 23, 2024, 5:50am UTC](https://forum.inductiveautomation.com/t/how-to-transmit-quality-value-tag-alongside-sensor-tag-value-to-mqtt-transmitter-in-ignition-edge/95061 "2024-08-23T05:50:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhishek\_Sengar](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/abhishek_sengar/32/66316_2.png) [@Abhishek\_Sengar](https://forum.inductiveautomation.com/u/Abhishek_Sengar)\
**Post date:** [August 23, 2024, 5:50am UTC](https://forum.inductiveautomation.com/t/how-to-transmit-quality-value-tag-alongside-sensor-tag-value-to-mqtt-transmitter-in-ignition-edge/95061/1 "2024-08-23T05:50:04Z")

</div>

**Topic:** How to Transmit Quality Value Tag Alongside Sensor Tag Value to MQTT Transmitter in Ignition Edge

* * *

Hello everyone,

I'm currently working on a project where we're using Ignition Edge to forward sensor tag values to an MQTT Transmitter. However, I've noticed that the transmitter only sends the following values:

```json
{
  "timestamp": 1689424923448,
  "metrics": [
    {
      "name": "GX2821/PV",
      "timestamp": 1689424906900,
      "dataType": "Double",
      "value": 3.1400001286754105
    }
  ],
  "seq": 111
}

```

As you can see, the transmitted data includes the tag name, value, and timestamp, but it's missing the quality value. I'm looking for a way to include the quality value tag in the data payload sent to the MQTT Transmitter.

Has anyone else encountered this issue or found a solution? Any insights or suggestions would be greatly appreciated!

Thanks in advance for your help!

---

<div class="post-metadata">

**Author:** ![Abhishek\_Sengar](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/abhishek_sengar/32/66316_2.png) [@Abhishek\_Sengar](https://forum.inductiveautomation.com/u/Abhishek_Sengar)\
**Post date:** [August 28, 2024, 10:43am UTC](https://forum.inductiveautomation.com/t/how-to-transmit-quality-value-tag-alongside-sensor-tag-value-to-mqtt-transmitter-in-ignition-edge/95061/2 "2024-08-28T10:43:38Z")

</div>

> [@Abhishek\_Sengar](#):
>
> way to include the quality value tag in the data payload sent to the MQTT Transmitter.
> 
> Has anyone else encountered this issue or found a solution? Any insights or suggestions would be greatly appreciated!
> 
> Thanks in advance for your help!

Hello everyone,

I'm currently working on a project where we're using Ignition Edge to forward sensor tag values to an MQTT Transmitter. However, I've noticed that the transmitter only sends the following values:

```json
{
  "timestamp": 1689424923448,
  "metrics": [
    {
      "name": "GX2821/PV",
      "timestamp": 1689424906900,
      "dataType": "Double",
      "value": 3.1400001286754105
    }
  ],
  "seq": 111
}

```

As you can see, the transmitted data includes the tag name, value, and timestamp, but it's missing the quality value. I'm looking for a way to include the quality value tag in the data payload sent to the MQTT Transmitter.

Expected:

```json
{

  "timestamp": 1689424923448,

  "metrics": [

    {

      "name": "GX2821/PV",

      "timestamp": 1689424906900,

      "dataType": "Double",

      "value": 3.1400001286754105,

      "dataQuality": "Good/Bad/Uncertain", // To be Added while transmitting

      "dataQualityCode": "0x00000000" // To be Added while transmitting

    }

  ],

  "seq": 111

}

```

Has anyone else encountered this issue or found a solution? Any insights or suggestions would be greatly appreciated!

---

<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:** [August 28, 2024, 11:58am UTC](https://forum.inductiveautomation.com/t/how-to-transmit-quality-value-tag-alongside-sensor-tag-value-to-mqtt-transmitter-in-ignition-edge/95061/3 "2024-08-28T11:58:53Z")

</div>

I just realized you duplicated this question over here:

> [@How to Use Scripting Feature in Ignition Edge to Add Additional Key-Value Pairs When Transmitting Data to MQTT Transmitter?](https://forum.inductiveautomation.com/t/how-to-use-scripting-feature-in-ignition-edge-to-add-additional-key-value-pairs-when-transmitting-data-to-mqtt-transmitter/95199):
>
> Hello everyone, I am currently working with Ignition Edge and using it to transmit data to an MQTT transmitter. I need to include additional key-value pairs in the data payload before it's sent out. Could someone guide me on how to leverage the scripting feature in Ignition Edge to achieve this? Specifically, I'm looking for a way to modify the payload data by adding custom key-value pairs dynamically based on certain conditions. Any examples or references to documentation would be greatly ap…

You've received guidance there that you seem to be ignoring. Only Cirrus Link will be able to answer this if no-one here knows. (And I suspect the answer is "not possible".)

Double posting questions is against [this forum's rules](https://forum.inductiveautomation.com/faq). Bumping an unanswered topic after a few days (as you've done here) is acceptable.

---

<div class="post-metadata">

**Author:** ![wes0johnson](https://avatars.discourse-cdn.com/v4/letter/w/7ab992/32.png) [@wes0johnson](https://forum.inductiveautomation.com/u/wes0johnson)\
**Post date:** [September 3, 2024, 9:32pm UTC](https://forum.inductiveautomation.com/t/how-to-transmit-quality-value-tag-alongside-sensor-tag-value-to-mqtt-transmitter-in-ignition-edge/95061/4 "2024-09-03T21:32:00Z")

</div>

If the quality is omitted from the metric definition, it means the quality is good. Transmission is based on the Sparkplug Specification. The following is from page 71 of the v3.0.0 specification:

`There is one specific property key in Sparkplug called Quality. This defines the quality of the value associated with the metric. This property is optional and is only required if the quality of the metric is not GOOD.`

---

<div class="post-metadata">

**Author:** ![Abhishek\_Sengar](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/abhishek_sengar/32/66316_2.png) [@Abhishek\_Sengar](https://forum.inductiveautomation.com/u/Abhishek_Sengar)\
**Post date:** [September 5, 2024, 5:43am UTC](https://forum.inductiveautomation.com/t/how-to-transmit-quality-value-tag-alongside-sensor-tag-value-to-mqtt-transmitter-in-ignition-edge/95061/5 "2024-09-05T05:43:07Z")

</div>

We require the Quality value in all cases when it is **Good, Bad, or Uncertain** , along with the corresponding Quality Code.

This setup will enable us to implement forward filling logic, where data will only be forward filled if the Quality of the tag is Good.

No forward filling will occur when the Quality is Bad or Uncertain.

This approach will provide a more accurate and reliable representation in the GUI and improve the quality of data reporting.

---

<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:** [September 5, 2024, 12:26pm UTC](https://forum.inductiveautomation.com/t/how-to-transmit-quality-value-tag-alongside-sensor-tag-value-to-mqtt-transmitter-in-ignition-edge/95061/6 "2024-09-05T12:26:29Z")

</div>

> [@Abhishek\_Sengar](#):
>
> We require the Quality value

And you have it. Wes just told you that if quality is not in the payload, the value is Good. Per the Sparkplug specification. 🤷‍♂️
