# Auto creation of Attributes

**URL:** <https://forums.losant.com/t/auto-creation-of-attributes/2484>\
**Category:** Help\
**Tags:** mqtt\
**Created:** [December 18, 2019, 9:48pm UTC](https://forums.losant.com/t/auto-creation-of-attributes/2484 "2019-12-18T21:48:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [December 18, 2019, 9:48pm UTC](https://forums.losant.com/t/auto-creation-of-attributes/2484/1 "2019-12-18T21:48:19Z")

</div>

Is there a way I could auto create attribute names based on topics coming in via MQTT, or would I have to create a workflow doing that for me? Or is that even possible?

---

<div class="post-metadata">

**Author:** ![Brandon\_Cannaday](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/brandon_cannaday/32/14_2.png) [@Brandon\_Cannaday](https://forums.losant.com/u/Brandon_Cannaday)\
**Post date:** [December 18, 2019, 9:54pm UTC](https://forums.losant.com/t/auto-creation-of-attributes/2484/2 "2019-12-18T21:54:10Z")

</div>

It requires a workflow. You’d get the device and then compare its current attributes to what was reported. If the attribute doesn’t exist, you’d then update the device with the new attribute.

---

<div class="post-metadata">

**Author:** ![Jason\_Farque](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/jason_farque/32/709_2.png) [@Jason\_Farque](https://forums.losant.com/u/Jason_Farque)\
**Post date:** [December 20, 2019, 5:39pm UTC](https://forums.losant.com/t/auto-creation-of-attributes/2484/5 "2019-12-20T17:39:25Z")

</div>

In a similar vein, is there a way to update the values of attributes without causing a state trigger? I have a dashboard I’m trying to update with periodic weather data and the Device: State node seems to be the only way to set attribute values. I don’t really need a state trigger for this.

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [January 3, 2020, 3:42pm UTC](https://forums.losant.com/t/auto-creation-of-attributes/2484/7 "2020-01-03T15:42:10Z")

</div>

Hi @Jason_Farque,

Attributes can only be updated by reporting state, and a state report will fire any Device State Trigger for that device. If you would like to update your device with periodic weather data, but not trigger your workflow, you can make use of filtering within the Device: State Node. You can trigger on specific [attributes](https://docs.losant.com/workflows/triggers/device/#filter-attributes) and limit triggers using the [payload age](https://docs.losant.com/workflows/triggers/device/#filter-payload-age) filter.

Please let me know if I can answer any further questions.

Thanks!  
Julia
