# USB HID RELAY node - question/s

**URL:** <https://discourse.nodered.org/t/usb-hid-relay-node-question-s/14624>\
**Category:** General\
**Created:** [21 August 2019 22:47 UTC](https://discourse.nodered.org/t/usb-hid-relay-node-question-s/14624 "2019-08-21T22:47:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [21 August 2019 22:47 UTC](https://discourse.nodered.org/t/usb-hid-relay-node-question-s/14624/1 "2019-08-21T22:47:51Z")

</div>

I just saw this in the "library":

> **[node-red-contrib-usb-hid-relay](https://flows.nodered.org/node/node-red-contrib-usb-hid-relay)**
>
> Allows for control of USB HID relays in node red

Nice.

I can't resolve how to ask the person, so here goes:

(From the page)  
`  
Models supported:

```
HW-348
HW-343
HW-341
Models with USB-Relay-1, USB-Relay-2 or USB-Relay-4 printed on the PCB

```

`

Looking on the interweb, I find this (as example)  
[USB HID relay boards](https://www.banggood.com/search/usb-hid-relay.html?from=nav)

But I am not sure if they are compatible.

I've opened one of the boards and read the specs, but can't find if they are `HW-348` (etc) drivers (what ever).

Just asking.  
Thanks.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [22 August 2019 07:35 UTC](https://discourse.nodered.org/t/usb-hid-relay-node-question-s/14624/2 "2019-08-22T07:35:59Z")

</div>

> **[paulhayes/node-red-contrib-usb-hid-relay](https://github.com/paulhayes/node-red-contrib-usb-hid-relay)**
>
> Contribute to paulhayes/node-red-contrib-usb-hid-relay development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [22 August 2019 08:01 UTC](https://discourse.nodered.org/t/usb-hid-relay-node-question-s/14624/3 "2019-08-22T08:01:45Z")

</div>

I tried with github, but missed that part.

Thanks.

---

<div class="post-metadata">

**Author:** ![n61ab](https://avatars.discourse-cdn.com/v4/letter/n/cc9497/32.png) [@n61ab](https://discourse.nodered.org/u/n61ab)\
**Post date:** [18 September 2019 23:10 UTC](https://discourse.nodered.org/t/usb-hid-relay-node-question-s/14624/4 "2019-09-18T23:10:00Z")

</div>

I also need help.

I used this relay board; [https://www.amazon.com/gp/product/B07DYNVB38/ref=ppx\_yo\_dt\_b\_search\_asin\_title?ie=UTF8&psc=1](https://www.amazon.com/gp/product/B07DYNVB38/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1)

It does not have the relay numbers on the circuit board, so I assume it is incorrect? Can someone point me to a correct board?

Also, followed all of the steps on the github link provided by ukmoose.

I noted on your gethub page there was additional instruction under "Linux Dependencies". I have not completed these instructions. Are they necessary? I did not see these on the Node-Red product description page.

I did navigate to the "udev" folder and tried to make a new folder named "rules.d/50-hidrelay.rules', but my copy of Raspian says I do not have permission.

So, can someone kindly help me to set up your Node considering I have no programming knowledge?

Alan

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [19 September 2019 04:08 UTC](https://discourse.nodered.org/t/usb-hid-relay-node-question-s/14624/5 "2019-09-19T04:08:25Z")

</div>

> [@n61ab](#):
>
> Are they necessary?

Of course you have to follow the description/instruction to succeed

> [@n61ab](#):
>
> Raspian says I do not have permission

Use sudo

> [@n61ab](#):
>
> considering I have no programming knowledge

Then you might get into problems but Node-RED should be possible to configure anyway, almost  
What you definitely need to know is a bit how Linux works, using the terminal, the linux commands for creating the rules, how to edit a text/config file, how to set permissions, what sudo & nano is, etc

---

<div class="post-metadata">

**Author:** ![n61ab](https://avatars.discourse-cdn.com/v4/letter/n/cc9497/32.png) [@n61ab](https://discourse.nodered.org/u/n61ab)\
**Post date:** [19 September 2019 09:46 UTC](https://discourse.nodered.org/t/usb-hid-relay-node-question-s/14624/6 "2019-09-19T09:46:48Z")

</div>

Thanks Walter

I looked up sudo and nano as you suggested. I learned enough to add the rule file as instructed.

Appears to be working now.

Alan

---

<div class="post-metadata">

**Author:** ![Hitower78](https://avatars.discourse-cdn.com/v4/letter/h/7c8e57/32.png) [@Hitower78](https://discourse.nodered.org/u/Hitower78)\
**Post date:** [3 April 2020 09:58 UTC](https://discourse.nodered.org/t/usb-hid-relay-node-question-s/14624/7 "2020-04-03T09:58:44Z")

</div>

Hi There  
Whe i try to install this node i get this:

2020-04-03T09:49:56.248Z installieren : node-red-contrib-usb-hid-relay 0.2.5

2020-04-03T09:49:58.865Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-usb-hid-relay@0.2.5  
2020-04-03T09:50:56.182Z [err] npm WARN registry Unexpected warning for (#cant post link)://registry.npmjs.org/: Miscellaneous Warning ENODATA: Cache input stream was empty  
2020-04-03T09:50:56.198Z [err] npm WARN registry Using stale data from [https://registry.npmjs.org/](https://registry.npmjs.org/) due to a request error during revalidation.  
2020-04-03T09:50:57.018Z [err] npm ERR! code EINTEGRITY  
2020-04-03T09:50:57.018Z [err] npm ERR! errno EINTEGRITY  
2020-04-03T09:50:57.048Z [err] npm  
2020-04-03T09:50:57.058Z [err] ERR! Invalid response body while trying to fetch (#cant post link)/registry.npmjs.org/node-red-contrib-usb-hid-relay: Integrity verification failed for sha512-/Kthe/FKa/6STqnuw7C7lZbJxatsA+UuG1ZUZasmm5cHrGUq7/O9VZs5j8slZGga3z35JBuV8+z6vQ0MjTvW6A== (/home/pi/.npm/\_cacache/content-v2/sha512/fc/ab/617bf14a6bfe924ea9eec3b0bb9596c9c5ab6c03e52e1b565465ab269b9707ac652aeff3bd559b398fcb2564681adf3df9241b95f3ecfabd0d0c8d3bd6e8)  
2020-04-03T09:50:57.628Z [err]  
2020-04-03T09:50:57.628Z [err] npm ERR! A complete log of this run can be found in:  
2020-04-03T09:50:57.628Z [err] npm ERR! (#cant post link)  
2020-04-03T09:50:57.710Z rc=1

NodeRed is running on a Pi1, allready updated and edit what in the descrition is written down

Did i miss something?

Thanks for Help

Greetings from Hamburg / Germany  
Daniel

---

<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:** [3 April 2020 13:31 UTC](https://discourse.nodered.org/t/usb-hid-relay-node-question-s/14624/8 "2020-04-03T13:31:15Z")

</div>

That looks like a network issue I think. Try again to see if it has recovered. If not then can you access [https://registry.npmjs.org/](https://registry.npmjs.org/) in a browser?
