how to control relay board USB

Moderator: leecollings

Post Reply
DosN
Posts: 49
Joined: Monday 29 January 2018 7:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

how to control relay board USB

Post by DosN »

Im a newbe, and im searching how to switch a relay PCB with USB
https://www.sossolutions.nl/2xusbrelais ... hvEALw_wcB
Image

which hardware- and switch setting must be make to control it?
Attachments
switch USB.jpg
switch USB.jpg (41.13 KiB) Viewed 3754 times
SweetPants

Re: how to control relay board USB

Post by SweetPants »

Without a proper manual or documentation of this board, that will be very difficult.
User avatar
Marci
Posts: 532
Joined: Friday 22 January 2016 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Wakefield, West Yorkshire UK
Contact:

Re: how to control relay board USB

Post by Marci »

See https://github.com/darrylb123/usbrelay/ ... /README.md

Create individual bash scripts to turn each relay on and off. Set the relevant bash scripts as on / off actions on whichever dummy switch you want to use to control whichever relay.
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
DosN
Posts: 49
Joined: Monday 29 January 2018 7:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: how to control relay board USB

Post by DosN »

First thanks for responce
But is there not a standard hardware type , which i can select?
How can i add this code in domoticz?
SweetPants

Re: how to control relay board USB

Post by SweetPants »

There is no standard hardware type to my understanding that supports this relay. You can write some bash scripts and add them to a dummy switch On/Off action or if you know how to do it write your own python plugin for domoticz?
DosN
Posts: 49
Joined: Monday 29 January 2018 7:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: how to control relay board USB

Post by DosN »

is there a python code or how can i add a C code in domoticz
https://github.com/darrylb123/usbrelay/ ... /README.md
User avatar
cyberclwn
Posts: 105
Joined: Thursday 20 August 2015 22:53
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: The Netherlands
Contact:

Re: how to control relay board USB

Post by cyberclwn »

Hey,

Why not use this one instead:
Image

https://www.sossolutions.nl/2x-relais

You can easily connect the pins to the Raspberry Pi and then use the GPIO in Domoticz to control it.
Don't know why to complicate things using USB :)

I have this one and it works like a charm.
3xPi 2B (Domoticz "live", Domoticz "sandbox", PhotoFrame)
RFXCom433(E), KaKu, Oregon Scientific, Keyes 2-relay, Logitech Media Server, MiLight, Smartwares heating controller(2x), IR Send/Receive, Keyes PIR, XH-M131 DuskSensor, DHT22/11
User avatar
bbqkees
Posts: 407
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 4.1x
Location: The Netherlands
Contact:

Re: how to control relay board USB

Post by bbqkees »

DosN wrote: Saturday 03 February 2018 21:20 Im a newbe, and im searching how to switch a relay PCB with USB
https://www.sossolutions.nl/2xusbrelais ... hvEALw_wcB
Image

which hardware- and switch setting must be make to control it?
If it is the same type of relay as what I once had you can use my method which does not need any bash scripts.
https://github.com/bbqkees/Domoticz-Pi- ... -solutions
Bosch / Nefit / Buderus / Junkers / Worcester / Sieger EMS bus Wi-Fi MQTT Gateway and interface boards: https://bbqkees-electronics.nl/
DosN
Posts: 49
Joined: Monday 29 January 2018 7:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: how to control relay board USB

Post by DosN »

Hi bbqkees
Wooh , that looks good. Thanks i will try that
greetz
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest