Page 1 of 1

USB Relay board

Posted: Monday 02 January 2023 17:03
by njlammerts
I bought this relay board with the idea to switch a pump using Raspberry with Domoticz.
But I can't get the board recognized by Domoticz. I have searched a while for software or drivers but only found this
https://github.com/pavel-a/usb-relay-hid

is there a way to get the board recognized by Domoticz ?

2-channel-usb-relay-module.jpeg
2-channel-usb-relay-module.jpeg (58.97 KiB) Viewed 849 times

Re: USB Relay board

Posted: Wednesday 04 January 2023 20:48
by waltervl
I don't think it is directly supported. Perhaps trhough a python plugin, check the wiki plugins page, but it seems that only for specific USB relay boards plums are developed. https://www.domoticz.com/wiki/Plugins

Else try to find a python or bash script that can control and read the board. It then can be controlled with Domoticz action scripts.

Alternative is to buy a supported relay board. :-)

Re: USB Relay board

Posted: Wednesday 04 January 2023 21:54
by heggink
I use a number of these esp8266 wifi relay boards. Put esphome on them and they are automatically recognised by autodiscovery.
waltervl wrote: Wednesday 04 January 2023 20:48 I don't think it is directly supported. Perhaps trhough a python plugin, check the wiki plugins page, but it seems that only for specific USB relay boards plums are developed. https://www.domoticz.com/wiki/Plugins

Else try to find a python or bash script that can control and read the board. It then can be controlled with Domoticz action scripts.

Alternative is to buy a supported relay board. :-)

Re: USB Relay board

Posted: Wednesday 04 January 2023 22:39
by ksacca
You could maybe try using node red. Seems there’s a node that should support this relay, see https://flows.nodered.org/node/node-red ... -hid-relay.