# PIN to confirm command

**URL:** <https://discourse.nodered.org/t/pin-to-confirm-command/18795>\
**Category:** General\
**Created:** [4 December 2019 16:34 UTC](https://discourse.nodered.org/t/pin-to-confirm-command/18795 "2019-12-04T16:34:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manjha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/manjha/32/29301_2.png) [@manjha](https://discourse.nodered.org/u/manjha)\
**Post date:** [4 December 2019 16:34 UTC](https://discourse.nodered.org/t/pin-to-confirm-command/18795/1 "2019-12-04T16:34:47Z")

</div>

I am using Node-Red as a go-between for Google Home and Domoticz.  
Works great, I've already created several flows to switch lights etcetera.  
But I have a special switch that I want to secure with a PIN: the alarm.  
I would like to be able to give a voice command to switch on or off, then play a message asking for a PIN, and then check that PIN. Only if it matches, the actual switch will be done.

I can't find a way to do this. Is there someone out there with a bright idea?

---

<div class="post-metadata">

**Author:** ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)\
**Post date:** [4 December 2019 17:29 UTC](https://discourse.nodered.org/t/pin-to-confirm-command/18795/2 "2019-12-04T17:29:48Z")

</div>

Perhaps something like this flow ?

[https://flows.nodered.org/flow/7bcb0b049df4fa3c962294137ebaec19](https://flows.nodered.org/flow/7bcb0b049df4fa3c962294137ebaec19)

---

<div class="post-metadata">

**Author:** ![manjha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/manjha/32/29301_2.png) [@manjha](https://discourse.nodered.org/u/manjha)\
**Post date:** [5 December 2019 16:57 UTC](https://discourse.nodered.org/t/pin-to-confirm-command/18795/3 "2019-12-05T16:57:28Z")

</div>

No... I already looked at that. The flow is based on UI interface, and I don't see how it could be converted into a voice driven flow...
