# "Pi Keyboard" node not working (Pi 4, Home Assistant)

**URL:** <https://discourse.nodered.org/t/pi-keyboard-node-not-working-pi-4-home-assistant/28431>\
**Category:** General\
**Created:** [16 June 2020 20:15 UTC](https://discourse.nodered.org/t/pi-keyboard-node-not-working-pi-4-home-assistant/28431 "2020-06-16T20:15:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![LukasG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lukasg/32/24070_2.png) [@LukasG](https://discourse.nodered.org/u/LukasG)\
**Post date:** [16 June 2020 20:15 UTC](https://discourse.nodered.org/t/pi-keyboard-node-not-working-pi-4-home-assistant/28431/1 "2020-06-16T20:15:15Z")

</div>

Hi everyone!

I'm familiar with node-based programming, but new to Node Red.

I'm using Node Red installed as an addon to Home Assistant, which was installed on a Raspberry Pi 4 running Raspian. Home assistant was installed in what they call "supervised mode".

Unfortunately, the "Pi Keyboard" node does not work. Is it supposed to catch global keyboard events? There is a USB keyboard attached to the Raspberry Pi, and my Debug node does not show any activity.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/c/7c34ba881893d10b9cb7fad546eb0c13d1d18cc1.png)

The debug sidebar stays empty. What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [16 June 2020 22:03 UTC](https://discourse.nodered.org/t/pi-keyboard-node-not-working-pi-4-home-assistant/28431/2 "2020-06-16T22:03:06Z")

</div>

I don't know this node, neither can I test it for you, but the first thing you can try is setting the debug node to output **Complete msg object** and see if the keyboard response is there.

---

<div class="post-metadata">

**Author:** ![LukasG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lukasg/32/24070_2.png) [@LukasG](https://discourse.nodered.org/u/LukasG)\
**Post date:** [17 June 2020 06:05 UTC](https://discourse.nodered.org/t/pi-keyboard-node-not-working-pi-4-home-assistant/28431/3 "2020-06-17T06:05:08Z")

</div>

Thank you. I changed the Debug node to "Complete msg object" and re-deployed. Unfortunately, it's still not working.

---

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janvda/32/234_2.png) [@janvda](https://discourse.nodered.org/u/janvda)\
**Post date:** [17 June 2020 08:39 UTC](https://discourse.nodered.org/t/pi-keyboard-node-not-working-pi-4-home-assistant/28431/4 "2020-06-17T08:39:26Z")

</div>

Where did you find the "Pi Keyboard" node - I can't immediately find it ?

If you don't get support related to this here in the forum you can try to get attention of the author by raising a githup issue againt his node.

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [17 June 2020 08:51 UTC](https://discourse.nodered.org/t/pi-keyboard-node-not-working-pi-4-home-assistant/28431/5 "2020-06-17T08:51:35Z")

</div>

@janvda, it's part of the Node-red core.

@LukasG, just tested it here on a Pi3B+ with NR V1.0.3, node-red-node-pi-gpio 1.1.1 and it works fine for me.

---

<div class="post-metadata">

**Author:** ![JGKK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jgkk/32/18515_2.png) [@JGKK](https://discourse.nodered.org/u/JGKK)\
**Post date:** [17 June 2020 09:05 UTC](https://discourse.nodered.org/t/pi-keyboard-node-not-working-pi-4-home-assistant/28431/6 "2020-06-17T09:05:28Z")

</div>

Im not sure how home assistant installs the so called _add-ons_ but as its containerd in some kind itself maybe it also installs nodered when installed with this way in some kind of container situation with limited access to the host and this is why you don’t see the keyboard input in nodered.  
The best place would probably be to open an issue on the github page of the home assistant nodered add-on if this is the case.  
To test this you could take a spare sd card and flash vanilla raspberry pi os to it and than install nodered with the raspberry pi specific nodes over the official install [script](https://nodered.org/docs/getting-started/raspberrypi) and test if it works there. If yes its an issue in how home assistant installs nodered.

Johannes

---

<div class="post-metadata">

**Author:** ![LukasG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lukasg/32/24070_2.png) [@LukasG](https://discourse.nodered.org/u/LukasG)\
**Post date:** [18 June 2020 21:19 UTC](https://discourse.nodered.org/t/pi-keyboard-node-not-working-pi-4-home-assistant/28431/7 "2020-06-18T21:19:37Z")

</div>

Thanks for all your responses. I will continue my investigation in these directions and update this post with a solution if I find one.

---

<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:** [17 August 2020 21:19 UTC](https://discourse.nodered.org/t/pi-keyboard-node-not-working-pi-4-home-assistant/28431/8 "2020-08-17T21:19:55Z")

</div>

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