# Best way to trigger a flow from homeyscript

**URL:** <https://community.homey.app/t/best-way-to-trigger-a-flow-from-homeyscript/19790>\
**Category:** Developers\
**Tags:** homeyscript\
**Created:** [October 27, 2019, 8:05am UTC](https://community.homey.app/t/best-way-to-trigger-a-flow-from-homeyscript/19790 "2019-10-27T08:05:07Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![andreassolberg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andreassolberg/32/16983_2.png) [@andreassolberg](https://community.homey.app/u/andreassolberg)\
**Post date:** [October 27, 2019, 9:30am UTC](https://community.homey.app/t/best-way-to-trigger-a-flow-from-homeyscript/19790/5 "2019-10-27T09:30:59Z")

</div>

True false, also a good tip, but in my use case Id like to run one of 8 different “scene” flows for a room.

My attempt did work well the first time, but then I suddenly was not able to set a tag anymore. I did a restart. And now I run into the same problem described here:

> [@\[APP\]\[Pro\] HomeyScript](https://community.homey.app/t/homeyscript-app/854/17):
>
> nope, using await setTagValue("listalarm", {type: "text", title: "listalarm"}, sum); returns an error, without the await it just doesn’t set the value in the variable. cry

The specific error I get is:

```auto
Cannot set value, token is not registered

```

Have you been using `await setTagValue`, and have you had trouble with it?

---

_[View the full topic](https://community.homey.app/t/best-way-to-trigger-a-flow-from-homeyscript/19790)._
