# HomeyScript started from flow does not use up to date data?

**URL:** https://community.homey.app/t/homeyscript-started-from-flow-does-not-use-up-to-date-data/15928
**Category:** Apps
**Tags:** homeyscript
**Created:** [July 23, 2019, 9:01am UTC](https://community.homey.app/t/homeyscript-started-from-flow-does-not-use-up-to-date-data/15928 "2019-07-23T09:01:09Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)
#### Post date: [July 23, 2019, 2:17pm UTC](https://community.homey.app/t/homeyscript-started-from-flow-does-not-use-up-to-date-data/15928/2 "2019-07-23T14:17:43Z")

</div>

> [@Device CapabilitiesObj in HomeyScript stays the same value when triggered in a flow](https://community.homey.app/t/device-capabilitiesobj-in-homeyscript-stays-the-same-value-when-triggered-in-a-flow/14529):
>
> I have a problem with constantly updated values from a device which i’m trying to get in a script. var device\_data = await Homey.devices.getDevice({ id: '45f27858-c506-4d3c-a800-1954d803e3e3' }); console.log(device\_data); When i “Save & Test” in homeyScript the data is constantly updated, more specific the capabilitiesObj capabilitiesObj: { measure\_power: { value: 498, lastUpdated: '2019-06-17T17:41:16.803Z', type: 'number', getable: true, setable: false, title: 'En…

---

_[View the full topic](https://community.homey.app/t/homeyscript-started-from-flow-does-not-use-up-to-date-data/15928)._
