# Relay switch via dashboard led

**URL:** <https://discourse.nodered.org/t/relay-switch-via-dashboard-led/26757>\
**Category:** General\
**Created:** [16 May 2020 14:25 UTC](https://discourse.nodered.org/t/relay-switch-via-dashboard-led/26757 "2020-05-16T14:25:41Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [17 May 2020 09:39 UTC](https://discourse.nodered.org/t/relay-switch-via-dashboard-led/26757/9 "2020-05-17T09:39:42Z")

</div>

> [@duffmans](#):
>
> I haven't been able to figure the mqtt function out to be honest.

To use mqtt, you would need some wifi connected hardware, such as a [shelly](https://shelly.cloud/shelly1-open-source/) relay or even adding a [wifi equipped module](https://docs.wemos.cc/en/latest/) to your existing relays.  
The advantage of using mqtt is that you would not need to physically connect the pi to the relay, so no wires. Your pi would send instructions to the relay via wifi instead.

But back to your current project, can you paste your current flow, so that we can see what you have so far. - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

---

_[View the full topic](https://discourse.nodered.org/t/relay-switch-via-dashboard-led/26757)._
