# How can I update a switch status on the dashboard

**URL:** <https://discourse.nodered.org/t/how-can-i-update-a-switch-status-on-the-dashboard/14989>\
**Category:** Dashboard\
**Created:** [1 September 2019 04:23 UTC](https://discourse.nodered.org/t/how-can-i-update-a-switch-status-on-the-dashboard/14989 "2019-09-01T04:23:21Z")\
**Posts on this page:** 1\
**Showing post:** 29

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [5 September 2019 06:20 UTC](https://discourse.nodered.org/t/how-can-i-update-a-switch-status-on-the-dashboard/14989/29 "2019-09-05T06:20:08Z")

</div>

Does this faq help ?

> [@Examples of Colour change button and switch](https://discourse.nodered.org/t/examples-of-colour-change-button-and-switch/3650):
>
> A simple example of a button that has two states and changes colour/text and icon based on those two states [{"id":"b9a70965.13e138","type":"ui\_button","z":"d511095d.512808","name":"","group":"c070ecdb.6d5ce","order":0,"width":"0","height":"0","passthru":false,"label":"{{payload}}","color":"","bgcolor":"{{colour}}","icon":"","payload":"press","payloadType":"str","topic":"","x":590,"y":615,"wires":[["48aaee20.8d9e1"]]},{"id":"5cc84101.ac6d9","type":"change","z":"d511095d.512808","name":"","rules…

---

_[View the full topic](https://discourse.nodered.org/t/how-can-i-update-a-switch-status-on-the-dashboard/14989)._
