# Alarm Scripting - Add alarms to existing tags

**URL:** <https://forum.inductiveautomation.com/t/alarm-scripting-add-alarms-to-existing-tags/104432>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [March 30, 2025, 8:31pm UTC](https://forum.inductiveautomation.com/t/alarm-scripting-add-alarms-to-existing-tags/104432 "2025-03-30T20:31:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sbernauer](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@sbernauer](https://forum.inductiveautomation.com/u/sbernauer)\
**Post date:** [March 30, 2025, 8:54pm UTC](https://forum.inductiveautomation.com/t/alarm-scripting-add-alarms-to-existing-tags/104432/2 "2025-03-30T20:54:57Z")

</div>

I found another post that discussed writing to the child vs parent tag.

[Script for adding tag alarm](https://forum.inductiveautomation.com/t/script-for-adding-tag-alarm/94639/3)

I was able to write to a specific tag using the below code.

```python
foo = system.tag.getConfiguration("[Alarming]Test/ER200_LIT21_TEST/bHAlm")[0]

foo['alarms'] = [
    {
    "name": "TEST ALARM",
    "enabled": True,
    "Priority": "Medium",
    "Mode": "Equal",
    "setpointA": 1.0,
    }
]

system.tag.configure("[Alarming]Test/ER200_LIT21_TEST/", foo)

```

Looks like I may have been over complicating it. I will tinker with the script from here.

---

_[View the full topic](https://forum.inductiveautomation.com/t/alarm-scripting-add-alarms-to-existing-tags/104432)._
