# NR in Home Assistant on a RPi4 controlling GPIO's?

**URL:** https://discourse.nodered.org/t/nr-in-home-assistant-on-a-rpi4-controlling-gpios/84706
**Category:** General
**Created:** [18 January 2024 22:53 UTC](https://discourse.nodered.org/t/nr-in-home-assistant-on-a-rpi4-controlling-gpios/84706 "2024-01-18T22:53:06Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![MOL](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mol/32/87488_2.png) [@MOL](https://discourse.nodered.org/u/MOL)
#### Post date: [18 January 2024 22:53 UTC](https://discourse.nodered.org/t/nr-in-home-assistant-on-a-rpi4-controlling-gpios/84706/1 "2024-01-18T22:53:07Z")

</div>

Hello.

New to NR here.  
Well new to all this I guess.

I have a RPi4 installed with Home Assistant and NR add-on trying to control RPi GPIO's.  
I have seen videos of NR on Pi's and can see there are a node collection specific to Pi's when running NR directly om Pi's without Home Assistant.  
Neat I think.

But . . the NR running with my Home Assistant doesn't have the Pi node collection.

Does anyone know if it is possible and how to do that?  
I'm new so need it explained for dummies 😉

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [18 January 2024 23:59 UTC](https://discourse.nodered.org/t/nr-in-home-assistant-on-a-rpi4-controlling-gpios/84706/2 "2024-01-18T23:59:41Z")

</div>

It can definitely be done outside of docker so I would suggest getting rid of the HA Node-RED plugin and install node-red directly on the pi (there is an official installer script to make this easy). You can even install the HA Node-RED nodes for communication with HA.

If you want to stick with the container based plugin, you may have more luck asking on the HA forum.

---

<div class="post-metadata">

### Author: ![MOL](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mol/32/87488_2.png) [@MOL](https://discourse.nodered.org/u/MOL)
#### Post date: [20 January 2024 14:59 UTC](https://discourse.nodered.org/t/nr-in-home-assistant-on-a-rpi4-controlling-gpios/84706/3 "2024-01-20T14:59:15Z")

</div>

Okay, thank you Steve.  
I'll try to install NR directly on the pi and se how it goes.  
/Brian

---

<div class="post-metadata">

### Author: ![iiot2k](https://avatars.discourse-cdn.com/v4/letter/i/8baadc/32.png) [@iiot2k](https://discourse.nodered.org/u/iiot2k)
#### Post date: [20 January 2024 15:44 UTC](https://discourse.nodered.org/t/nr-in-home-assistant-on-a-rpi4-controlling-gpios/84706/4 "2024-01-20T15:44:01Z")

</div>

My GPIO nodes don't work in HA either. Unfortunately I don't have any experience in HA either. So I installed HA on an RPi4 and investigated the cause. HA uses Alpine Linux as the OS. Access to the GPIO system libraries is prevented due to a lack of access rights. I also asked about this in the HA forum. If I find a solution, I will share it here.

---

<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: [20 March 2024 15:44 UTC](https://discourse.nodered.org/t/nr-in-home-assistant-on-a-rpi4-controlling-gpios/84706/5 "2024-03-20T15:44:02Z")

</div>

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