# Homeyscript functionality

**URL:** <https://community.homey.app/t/homeyscript-functionality/30066>\
**Category:** Questions & Help\
**Tags:** flow\
**Created:** [May 18, 2020, 9:52am UTC](https://community.homey.app/t/homeyscript-functionality/30066 "2020-05-18T09:52:41Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![johan\_bendz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johan_bendz/32/10344_2.png) [@johan\_bendz](https://community.homey.app/u/johan_bendz)\
**Post date:** [April 2, 2021, 11:55am UTC](https://community.homey.app/t/homeyscript-functionality/30066/7 "2021-04-02T11:55:03Z")

</div>

You will have to select the token uri and id like this:

```
  await Homey.flowToken.getFlowTokens().then(function(tokens) {
    for (let token in tokens) {
      if ( tokens[token].uri == "homey:manager:weather" && tokens[token].id == "state" ) {
        var mytoken = tokens[token].value;
        console.log(mytoken);
      }
    }
  }).catch(console.error);
```

---

_[View the full topic](https://community.homey.app/t/homeyscript-functionality/30066)._
