# I need a confirmation node for the dashboard

**URL:** https://discourse.nodered.org/t/i-need-a-confirmation-node-for-the-dashboard/79038
**Category:** Dashboard
**Tags:** home-assistant
**Created:** [7 June 2023 19:32 UTC](https://discourse.nodered.org/t/i-need-a-confirmation-node-for-the-dashboard/79038 "2023-06-07T19:32:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Guff666](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/guff666/32/80457_2.png) [@Guff666](https://discourse.nodered.org/u/Guff666)
#### Post date: [7 June 2023 19:32 UTC](https://discourse.nodered.org/t/i-need-a-confirmation-node-for-the-dashboard/79038/1 "2023-06-07T19:32:11Z")

</div>

I have node-red running as an addon to home-assistant. HA has a wifi power switch that controls the power to a windows pc. I'd like to be able to control the switch from a node-red dashboard.

My current solution is the have a dashboard button that causes the switch to turn on, but there is no way to turn it off because I can't be sure the PB has been shutdown first.

Ideally, I'd like a warning to come up in response to pressing another button to turn it off. I want the warning to ask me to confirm that the PC has been shut down before it goes ahead and turns off the switch.

Can this be done?

Gareth  
PS, I do have an alternate solution that checks that the PC is drawing zero amps (or very near) before it turns the switch off, but I'd like to explore a confirmation dialog.

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [7 June 2023 19:37 UTC](https://discourse.nodered.org/t/i-need-a-confirmation-node-for-the-dashboard/79038/2 "2023-06-07T19:37:03Z")

</div>

Would ui-notification do this as a pop up, it's part of the dashboard nodes.

---

<div class="post-metadata">

### Author: ![Guff666](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/guff666/32/80457_2.png) [@Guff666](https://discourse.nodered.org/u/Guff666)
#### Post date: [7 June 2023 21:58 UTC](https://discourse.nodered.org/t/i-need-a-confirmation-node-for-the-dashboard/79038/3 "2023-06-07T21:58:45Z")

</div>

I'll take a look.  
In fact I've solved it another way in Home-Assistant.

---

<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: [7 July 2023 21:59 UTC](https://discourse.nodered.org/t/i-need-a-confirmation-node-for-the-dashboard/79038/4 "2023-07-07T21:59:42Z")

</div>

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