# How to read the state of ui-switch in node red

**URL:** <https://discourse.nodered.org/t/how-to-read-the-state-of-ui-switch-in-node-red/30538>\
**Category:** General\
**Created:** [22 July 2020 10:28 UTC](https://discourse.nodered.org/t/how-to-read-the-state-of-ui-switch-in-node-red/30538 "2020-07-22T10:28:36Z")\
**Posts on this page:** 4\
**Page:** 3

<div class="post-metadata">

**Author:** ![shipra](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@shipra](https://discourse.nodered.org/u/shipra)\
**Post date:** [23 July 2020 11:34 UTC](https://discourse.nodered.org/t/how-to-read-the-state-of-ui-switch-in-node-red/30538/42 "2020-07-23T11:34:00Z")

</div>

> [@zenofmud](#):
>
> I have to ask, is this just an experimental project for you to learn NR, MySQL, MQTT etc or is this a real attempt to have some security to get thru the door?

I am in project of one company so i am testing my flow of project with node red

---

<div class="post-metadata">

**Author:** ![shipra](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@shipra](https://discourse.nodered.org/u/shipra)\
**Post date:** [23 July 2020 11:34 UTC](https://discourse.nodered.org/t/how-to-read-the-state-of-ui-switch-in-node-red/30538/43 "2020-07-23T11:34:33Z")

</div>

> [@zenofmud](#):
>
> You want to open the door and youI have a valid RFID card and touch it to the reader. Now you have to take out your phone and open a browser and type in the html address of the NR dashboard and press the switch that opens the door. But you left your phone in your car so you leave to get it.

Thast why i want only that person can access the door

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [23 July 2020 11:45 UTC](https://discourse.nodered.org/t/how-to-read-the-state-of-ui-switch-in-node-red/30538/44 "2020-07-23T11:45:34Z")

</div>

So what is your plan to handle that situation? I didn't see that in your design document.

Can you also explain why they might use the RFID reader and then press the switch to close the door? Will it remain open until they leave and use the reader and flip the switch to close? What if they walk out and don't do that? Will the door remain open so anyone could walk in?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 September 2020 11:45 UTC](https://discourse.nodered.org/t/how-to-read-the-state-of-ui-switch-in-node-red/30538/45 "2020-09-21T11:45:36Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/how-to-read-the-state-of-ui-switch-in-node-red/30538.md?page=2)
