# \[APP\]\[Pro\] HomeyScript

**URL:** <https://community.homey.app/t/app-pro-homeyscript/854>\
**Category:** Apps\
**Tags:** app, homey-pro\
**Created:** [August 30, 2018, 7:34am UTC](https://community.homey.app/t/app-pro-homeyscript/854 "2018-08-30T07:34:20Z")\
**Posts on this page:** 1\
**Showing post:** 25

<div class="post-metadata">

**Author:** ![Ludwig\_Hallgren](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ludwig_hallgren/32/10694_2.png) [@Ludwig\_Hallgren](https://community.homey.app/u/Ludwig_Hallgren)\
**Post date:** [May 14, 2019, 12:39pm UTC](https://community.homey.app/t/app-pro-homeyscript/854/25 "2019-05-14T12:39:27Z")

</div>

To use logic variabels you use code like this  
let Logic = await Homey.logic.getVariables()  
console.log(Logic);

#### updateVariable

await Homey.logic.updateVariable({id: yourid, variable: yourVar})

You have access to the API [https://developer.athom.com/docs/api](https://developer.athom.com/docs/api)  
so Homey.whatyouwannareach gives alot of options. send me a question if you need more help.

---

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