# \[Solved\] Virtual Button doesn't update device state

**URL:** <https://forums.losant.com/t/solved-virtual-button-doesnt-update-device-state/1392>\
**Category:** Help\
**Tags:** dashboard, state, virtual-button\
**Created:** [January 1, 2019, 3:19pm UTC](https://forums.losant.com/t/solved-virtual-button-doesnt-update-device-state/1392 "2019-01-01T15:19:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul\_wareham](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@paul\_wareham](https://forums.losant.com/u/paul_wareham)\
**Post date:** [January 1, 2019, 3:19pm UTC](https://forums.losant.com/t/solved-virtual-button-doesnt-update-device-state/1392/1 "2019-01-01T15:19:42Z")

</div>

I notice that forcing a payload with the Virtual Button node doesn’t update the device state log, or store data for dashboard usage.

Is there a way to use a virtual button to generate data that will be stored to facilitate testing of vistualizing data from an actual workflow to a Dashboard?

---

<div class="post-metadata">

**Author:** ![Erin\_Thompson](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/erin_thompson/32/501_2.png) [@Erin\_Thompson](https://forums.losant.com/u/Erin_Thompson)\
**Post date:** [January 2, 2019, 2:49pm UTC](https://forums.losant.com/t/solved-virtual-button-doesnt-update-device-state/1392/2 "2019-01-02T14:49:35Z")

</div>

Hi Paul,

I would attach a [Device State Node](https://docs.losant.com/workflows/outputs/device-state/) to your virtual button to set your device state to use whatever fake data you want it to use. And then use that testing device on a dashboard to display your fake data.

Hope this helps,  
Erin
