# Device CapabilitiesObj in HomeyScript stays the same value when triggered in a flow

**URL:** <https://community.homey.app/t/device-capabilitiesobj-in-homeyscript-stays-the-same-value-when-triggered-in-a-flow/14529>\
**Category:** Developers\
**Created:** [June 17, 2019, 5:48pm UTC](https://community.homey.app/t/device-capabilitiesobj-in-homeyscript-stays-the-same-value-when-triggered-in-a-flow/14529 "2019-06-17T17:48:11Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Torch1969](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torch1969/32/33305_2.png) [@Torch1969](https://community.homey.app/u/Torch1969)\
**Post date:** [April 3, 2021, 3:21pm UTC](https://community.homey.app/t/device-capabilitiesobj-in-homeyscript-stays-the-same-value-when-triggered-in-a-flow/14529/5 "2021-04-03T15:21:10Z")

</div>

I guess the solution brought to us here should do the trick also?

> [@Homeyscript functionality](https://community.homey.app/t/homeyscript-functionality/30066/13):
>
> I posted the question on GitHub as well and this is Jeroen Wienk’s answer. I thought good to share here because “there are many ways to do this’ grinning and because as Jeroen mentioned values are cached and he gives the solution to circumvent this. It’s possible with the API but it’s not a very clear solution since the values are cached. But you can do this; await tag('my-tag', false); // value is false console.log(await Homey.flowToken.getFlowToken({ uri: 'homey:app:com.athom.homeysc…

So with **$skipCache: true**  
`const device = await Homey.devices.getDevice({$skipCache: true, id: '45f27858-c506-4d3c-a800-1954d803e3e3' }); console.log(device.capabilitiesObj.measure_power.value); `

---

_[View the full topic](https://community.homey.app/t/device-capabilitiesobj-in-homeyscript-stays-the-same-value-when-triggered-in-a-flow/14529)._
