Velleman VM201Ethernet Relay Card

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

Post Reply
plantjes
Posts: 7
Joined: Friday 18 November 2016 20:57
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Contact:

Velleman VM201Ethernet Relay Card

Post by plantjes »

Dear all,
Starting with domoticz i am looking a way to control my VM201 card.
Its connected on my network via its own lan connection and has its own Http web acces..
It can also controlled via protocol.. https://www.velleman.eu/downloads/0/inf ... _vm201.pdf

But my knolledge is limited and i'am stuck...

I am thinking creating virtual switched and making scripts to combine the protocol or should does this makes it to difficult....

Please help...
Benno
bulletje
Posts: 1
Joined: Monday 28 November 2016 13:47
Target OS: -
Domoticz version:
Contact:

Re: Velleman VM201Ethernet Relay Card

Post by bulletje »

Make under hardware a dummy, make under the dummy virtuele sensors with sensor type "switch" (on/off)
Bij switches you see your new made switches.
Now you can use the on and off action with a http rule.
http://user:pasword@ipadres/cgi/leds.cgi?led=0 (Relai 1 and led 1 are going on) with the same rule you send the off action.
Relai 1 to 8 = 0 to 7 in this line.
From your explorer you can use this line also but now without user and pasword.

Example
From explorer : http://192.168.1.222/cgi/leds.cgi?led=3 (put relai 4 and led 4 on if there are off, toggle)
From explorer : http://192.168.1.222/cgi/leds.cgi?led=3 (put relai 4 and led 4 off if there are on, toggle)

From Domoticz : http://gebruiker:[email protected]/c ... .cgi?led=3 (put relai 4 and led 4 off if there are on, toggle)
From Domoticz : http://gebruiker:[email protected]/c ... .cgi?led=3 (put relai 4 and led 4 on if there are off, toggle)

Succes
plantjes
Posts: 7
Joined: Friday 18 November 2016 20:57
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Contact:

Re: Velleman VM201Ethernet Relay Card

Post by plantjes »

Well that works OK...

Is er nog een manier om de status beter terug te krijgen??
Nu kan het gebeuren dat de relay kaart aan staat en domoticz lamp staat uit.

Is there any way to get the status reply in domoticz as well...
On my browser i get back succes =1 or succes 0...
Now its posible i get a light on in domoticz and the relay still off when it misses 1 switch......
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest