Has anyone used Denkovi Ethernet Relay Modules?

Hi,

I’m looking to expand some remote switches and I came across a Denkovi 16CH Ethernet Relay Module that seems to be kind of what I’m looking for.

smartDEN IoT Internet / Ethernet 16 Relay Module - DIN Rail BOX

Has anyone have any experience integrating these types of Relay Modules?

1 Like

Yikes, $145.00

Heres a $15.00 relay module that you can drive with a pi-zero-w

I use 8ch version of this to control gates/garage doors with Raspberry Pi

Well, one advantage of the Denkovi would be, that it’s specified with 16A, whereas those small relay-modules usually only (should) handle 10A. Which is enough for most cases. But there could be situations where you want to get more energy through the relay. There probably still are cheaper solutions available. Then again, the Denkovi has a nice case that easily can be mounted those rails of which I don’t know how they’re called in english. :smiley:

1 Like

It seems to be a good relay module. @treno sugested a $15 buck module relay but it lacks of an ethernet port and din rail mounting. I’m already working with those type of relay modules and this one doesn’t seem to be that expensive and it would give a more professional look at my current setup. In my case I work with 220Vac so the 10A supported for that is enough for me.

Does anyone know if it will work fine with Home Assistant?

Hi tmjpugh, are you using Home assistant on it? If so, Could you share how you set it up please?

Those rails are also called DIN rails in english.:grinning:

I used cover to control this.
RasPi is setup remotely and uses mqtt to connect to my main HA instance. (automation rule sends state and updates remote state)

I did this 2 month back so I cannot remember exact connections so below is a guess
If I get time I will take a look at connections and edit this post with corrected info.

cover:
  - platform: rpi_gpio
    relay_time: 3
    covers:
      - relay_pin: 10
        state_pin: 11
        name: 'South Gate'

HOW POWER RELAY
Raspberry Pi powered by 5vdc USB power supply
8 Ch relay use 5VDC for + DC (RasPI Physical pin 2 to 5V connector by Low Level connection)
8 Ch Relay use GND for - DC (RasPI physical pin 6 to GND connector by low level connection)
RasPi and 8Ch Relay use same Power supply. Ensure your USB supply has good amp out or you may have issue with relay not switching or intermittent switching

HOW SWITCH RELAY
I connected 8ch Low Level input directly to Raspi GPIO
RasPi BCM 10 (physical pin 19) is Output to 8ch low level pin 1 (this will switch relay 1)
It look like it is normal High and switch when output is low but this doesnt seem correct. I will look when I get time and edit this but I think generally concept is clear

SENSOR
I use magnetic switch connected to RasPi BCM 11 (physical pin 19) for sensing OPEN/CLOSE door
GPIO High OUT >> 1k resistor >> magnetic switch >> RaspPi GND (physical pin6)
Switch OPEN/HIGH. Switch CLOSED/LOW(short to gnd)

NOTE
There are methods for isolating circuits. Optocouplers and such.
I did not use them but I am OK with potential damage. I see this risk as low in this case.
I have provided GPIO pinout from my pi below for reference. It shows closed state.

 +-----+-----+---------+------+---+--B Plus--+---+------+---------+-----+-----+
 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
 |     |     |    3.3v |      |   |  1 || 2  |   |      | 5v      |     |     |
 |   2 |   8 |   SDA.1 |   IN | 1 |  3 || 4  |   |      | 5v      |     |     |
 |   3 |   9 |   SCL.1 |   IN | 1 |  5 || 6  |   |      | 0v      |     |     |
 |   4 |   7 | GPIO. 7 |   IN | 0 |  7 || 8  | 1 | ALT0 | TxD     | 15  | 14  |
 |     |     |      0v |      |   |  9 || 10 | 1 | ALT0 | RxD     | 16  | 15  |
 |  17 |   0 | GPIO. 0 |   IN | 0 | 11 || 12 | 0 | IN   | GPIO. 1 | 1   | 18  |
 |  27 |   2 | GPIO. 2 |   IN | 0 | 13 || 14 |   |      | 0v      |     |     |
 |  22 |   3 | GPIO. 3 |   IN | 0 | 15 || 16 | 0 | IN   | GPIO. 4 | 4   | 23  |
 |     |     |    3.3v |      |   | 17 || 18 | 0 | IN   | GPIO. 5 | 5   | 24  |
 |  10 |  12 |    MOSI |  OUT | 1 | 19 || 20 |   |      | 0v      |     |     |
 |   9 |  13 |    MISO |   IN | 0 | 21 || 22 | 0 | IN   | GPIO. 6 | 6   | 25  |
 |  11 |  14 |    SCLK |   IN | 0 | 23 || 24 | 1 | IN   | CE0     | 10  | 8   |
 |     |     |      0v |      |   | 25 || 26 | 1 | IN   | CE1     | 11  | 7   |
 |   0 |  30 |   SDA.0 |   IN | 1 | 27 || 28 | 1 | IN   | SCL.0   | 31  | 1   |
 |   5 |  21 | GPIO.21 |   IN | 1 | 29 || 30 |   |      | 0v      |     |     |
 |   6 |  22 | GPIO.22 |   IN | 1 | 31 || 32 | 0 | IN   | GPIO.26 | 26  | 12  |
 |  13 |  23 | GPIO.23 |   IN | 0 | 33 || 34 |   |      | 0v      |     |     |
 |  19 |  24 | GPIO.24 |   IN | 0 | 35 || 36 | 0 | IN   | GPIO.27 | 27  | 16  |
 |  26 |  25 | GPIO.25 |   IN | 0 | 37 || 38 | 0 | IN   | GPIO.28 | 28  | 20  |
 |     |     |      0v |      |   | 39 || 40 | 0 | IN   | GPIO.29 | 29  | 21  |
 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
 +-----+-----+---------+------+---+--B Plus--+---+------+---------+-----+-----+

This is very nice but it is kickstarter and March 2018 ship date

1 Like

I think those are very similar to other ethernet relays I’ve used and integrated - picoIP. As far as I can remember a friend used Denkovi’s Windows software to command a picoIP and I’ve integrated picoIP with pimatic using pimatic’s shell command switch, so it should be properly working with hass as well.

I’ve even “translated” the config to hass but never gotten around to test it.

In theory this should work but since I don’t have such a relay I can’t be certain:

Replace 192.168.0.2 with the real IP address of the relay. I’ve already fixed the snmp OIDs using the documentation

- platform: command_line
  switches:
    relay_0:
      command_on: "/usr/bin/snmpset -v 1 -c private 192.168.0.2 1.3.6.1.4.1.42505.6.2.3.1.3.0 i 1"
      command_off: "/usr/bin/snmpset -v 1 -c private 192.168.0.2 1.3.6.1.4.1.42505.6.2.3.1.3.0 i 0"
      command_state: "/usr/bin/snmpget -v 1 -c private 192.168.0.2 1.3.6.1.4.1.42505.6.2.3.1.3.0 | awk -F\\  '{ print $4; }'"
      value_template: '{{ value == "1" }}'

Seeing it has a JSON/XML API you can also use that with a rest_switch.

1 Like

Cool, I’d defintly buy that (Y)

Thank you for sharing your config

Hi.
I have a denkovi DAENETIP2 board
but there is no info on it for home asistant and I would like to integrate it.
I have sensors connected to it and 16 relays working but I can’t get home asistant to control it.
any ideas?

I finally bought one about a year ago. Since then it has worked flawlessly!

I configured it under SNMP but mine only has relays. No I/O ports like the one you bought @_lucas .

This is how I configured mine:

  • platform: snmp
    host: 192.168.88.253
    baseoid: 1.3.6.1.4.1.42505.6.2.3.1.3.0
    version: 2c
    name: Exterior Kitchen Light
    community: !secret denkovi_snmp_community
    payload_on: 1
    payload_off: 0

Since my relay board has 16 relay ports the only configuration that varies is the last number of the SNMP address (from 0 to 15).
For example:

Relay Port 1 = “baseoid: 1.3.6.1.4.1.42505.6.2.3.1.3.0”
Relay Port 7 = “baseoid: 1.3.6.1.4.1.42505.6.2.3.1.3.6”
Relay Port 16 = “baseoid: 1.3.6.1.4.1.42505.6.2.3.1.3.15”

Pictures of my Installation:


baseoid: 1.3.6.1.4.1.42505.6.2.3.1.3.0 …?
Where do you get this number?

  • platform: snmp
    name: denkovi rele 1
    host: 192.168.1.5
    community: (pass snmp)
    baseoid: 1.3.6.1.4.1.42505.9.2.1.1.0
    payload_on: 1
    payload_off: 0

working perfect!!
16 relay
pending read 8 analog inputs

The time I was looking for information to set it up, I found the SNMP address on an Openhab forum.

But I believe you can discover the SNMP OID’s with software such as “Net-snmp” in windows or snmpwalk on linux.

No need to go that far.
in the denkovi page there are some examples of where to get the data.
I even asked them and they told me that they haven’t tested their plates yet … soon they say …
They will be waiting for us to do their job.

ok.
I already got to read the 8 analog inputs in home asistant but I have a refreshment problem.
the value of the sensors changes almost twice per second on denkovi plate … but in home asistant it changes every 12 seconds.
I don’t know if this can be updated more frequently in home asistant or it is by reading in snmp.

I don’t get the problem … does anyone know how to make home asistant read the board values more frequently?
too much 12 seconds for example in water pressure sensors when you want to control a water motor

Hello,
I am happy to share we have tested/integrated almost all of denkovi modules with Home Assistant. The reason we delayed the integration was the lack of some inputs/outputs support with some platforms (snmp for example) in the past.
We tried to make simple application note how to include the denkovi module(s) in your Home Assistant setup: http://denkovi.com/home-assistant-and-denkovi-modules
For the discussed smartDEN IP-16R module in the topic we made two examples - SNMP and HTTP(REST) communication.

2 Likes