# Set Initial State of Dashboard Switch

**URL:** <https://discourse.nodered.org/t/set-initial-state-of-dashboard-switch/12913>\
**Category:** Dashboard\
**Created:** [4 July 2019 15:38 UTC](https://discourse.nodered.org/t/set-initial-state-of-dashboard-switch/12913 "2019-07-04T15:38:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [4 July 2019 15:46 UTC](https://discourse.nodered.org/t/set-initial-state-of-dashboard-switch/12913/3 "2019-07-04T15:46:38Z")

</div>

Yep just saw that as i had the Debug window selected as was not seeing the node info - also found this thread - time to start playing around and seeing how this works

> [@Status dashboard switch](https://discourse.nodered.org/t/status-dashboard-switch/573):
>
> Good afternoon! There is a dashboard on the NodeRed, which displays the sensors. Now there was a need for a switch, I decided to try espEasy on sonoff on MQTT, everything works, but the problem is that the status of the switch on the dashboard is not updated if I switch through another application from the smartphone. From the phone I publish: / nameSonoff / gpio / 12 Two messages are published: / nameSonoff / gpio / 12, / nameSonoff / relay / Switch How do I understand / nameSonoff / relay …

Thanks for the quick response

Craig

---

_[View the full topic](https://discourse.nodered.org/t/set-initial-state-of-dashboard-switch/12913)._
