# Pi turn on via Node Red

**URL:** https://discourse.nodered.org/t/pi-turn-on-via-node-red/31737
**Category:** General
**Created:** [19 August 2020 15:09 UTC](https://discourse.nodered.org/t/pi-turn-on-via-node-red/31737 "2020-08-19T15:09:11Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![edwardr](https://avatars.discourse-cdn.com/v4/letter/e/e0b2c6/32.png) [@edwardr](https://discourse.nodered.org/u/edwardr)
#### Post date: [19 August 2020 15:09 UTC](https://discourse.nodered.org/t/pi-turn-on-via-node-red/31737/1 "2020-08-19T15:09:11Z")

</div>

Hi guys,

New problem for you all -

I`ve been struggling with ideas for how to start up a pi if it crashes on Node Red.

My concept -

I have two pis, one acting as a heart beat passing a ping across. If the ping comes back negative/ ie the pi is unresponsive I want a way for that Pi to restart the other Pi thats unresponsive. I thought this might be something I could do with an I/O hat or something along those lines? I`m aware you can`t sent I/O power commands via ethernet.

An Idea I did have was that I have a Siemens S7 1200 which I could use as a I/O connector to power the two pis, when either fail then I could use a command to the Siemens S7 to restart the power to the unresponsive Pi.

Any advice would be greatly appreciated,

Thank you!

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [19 August 2020 16:00 UTC](https://discourse.nodered.org/t/pi-turn-on-via-node-red/31737/2 "2020-08-19T16:00:53Z")

</div>

Or you could power them via something like Sonoff Basic programmed with, for example, Tasmota.

Are you sure the pi has completely crashed though? That is very rare unless there is a hardware problem. Next time this happens, then after reboot, have a look back in /var/log/syslog to see why it stopped.

One possibility is that the power supplies are not up to the job, or possibly the pis are connected to an external device which is sending spikes into the pi and crashing it.

---

<div class="post-metadata">

### Author: ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)
#### Post date: [19 August 2020 16:52 UTC](https://discourse.nodered.org/t/pi-turn-on-via-node-red/31737/3 "2020-08-19T16:52:17Z")

</div>

> [@edwardr](#):
>
> restart the power to the unresponsive Pi.

That's never a good idea, much better to do a controlled restart. Why do you expect a Pi to become unresponsive?

---

<div class="post-metadata">

### Author: ![edwardr](https://avatars.discourse-cdn.com/v4/letter/e/e0b2c6/32.png) [@edwardr](https://discourse.nodered.org/u/edwardr)
#### Post date: [19 August 2020 17:07 UTC](https://discourse.nodered.org/t/pi-turn-on-via-node-red/31737/4 "2020-08-19T17:07:08Z")

</div>

I meant in a theoretical sense. I havent had a time the pi becomes unresponsive I'm just eliminating the issue if it comes around.

---

<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: [18 October 2020 17:07 UTC](https://discourse.nodered.org/t/pi-turn-on-via-node-red/31737/5 "2020-10-18T17:07:13Z")

</div>

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