RFLink Mini GPIO and domoticz

Moderators: rtenklooster, Voyager, BertB, Stuntteam

Post Reply
Message
Author
bilbolodz
Normal user
Posts: 10
Joined: 13 Apr 2017, 12:27

RFLink Mini GPIO and domoticz

#1 Post by bilbolodz » 04 Jan 2019, 00:54

I'm trying to use Mini GPIO output pins on my RFLink. I can turn it on/off using '10;GPIOset;31;0;ON; 10;GPIOset;31;0;OFF;' commands but now I need to allow to switch these 'devices' from Domoticz. Probably I had to create device 'manually' in Domoticz but I don't know how to do it. I've have found topic about it at forum (https://www.domoticz.com/forum/viewtopi ... 807#p84859) but it's still in "Full details will follow soon.." state from Tuesday 03 May 2016 0:27 until now..... Any help will be useful.

User avatar
Stuntteam
Site Beheer
Posts: 786
Joined: 27 Jan 2016, 16:46

Re: RFLink Mini GPIO and domoticz

#2 Post by Stuntteam » 04 Jan 2019, 10:16

Go to the hardware tab, use the create manual device button listed behind rflink and add the device..
Here you enter a line that would normally show up in a rflink log like for example
20;04;TriState;ID=86a8aa;SWITCH=1;CMD=ON;
Thus your 10;GPIOset;31;0;ON; needs to be converted to:
20;00;GPIOset;ID=000031;SWITCH=0;CMD=ON;
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8

bilbolodz
Normal user
Posts: 10
Joined: 13 Apr 2017, 12:27

Re: RFLink Mini GPIO and domoticz

#3 Post by bilbolodz » 04 Jan 2019, 14:11

Thank you for reply. To be 100% sure: to create ALL 10 "GPIO devices" I have to create devices using commands:

Code: Select all

20;00;GPIOset;ID=000030;SWITCH=0;CMD=ON;
20;00;GPIOset;ID=000031;SWITCH=0;CMD=ON;
20;00;GPIOset;ID=000032;SWITCH=0;CMD=ON;
20;00;GPIOset;ID=000033;SWITCH=0;CMD=ON;
20;00;GPIOset;ID=000034;SWITCH=0;CMD=ON;
20;00;GPIOset;ID=000035;SWITCH=0;CMD=ON;
20;00;GPIOset;ID=000036;SWITCH=0;CMD=ON;
20;00;GPIOset;ID=000037;SWITCH=0;CMD=ON;
20;00;GPIOset;ID=000038;SWITCH=0;CMD=ON;
20;00;GPIOset;ID=000039;SWITCH=0;CMD=ON;
(double removed)

Am I right?
Last edited by bilbolodz on 04 Jan 2019, 19:09, edited 1 time in total.

User avatar
Stuntteam
Site Beheer
Posts: 786
Joined: 27 Jan 2016, 16:46

Re: RFLink Mini GPIO and domoticz

#4 Post by Stuntteam » 04 Jan 2019, 16:44

Yeah, the first one is double.. but you are right..
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8

bilbolodz
Normal user
Posts: 10
Joined: 13 Apr 2017, 12:27

Re: RFLink Mini GPIO and domoticz

#5 Post by bilbolodz » 05 Jan 2019, 12:32

More questions:
I'd like to use INPUT and OUTPUT RFlink functions for GPIO.
To use GPIO INPUT I'd to enable using it by command:

Code: Select all

10;setgpio=on
after that short pins 26 to 29 to ground is reported (fine it's working ;-))

Code: Select all

20;04;GPIOset;ID=3;SWITCH=0;CMD=OFF;
20;05;GPIOset;ID=3;SWITCH=0;CMD=ON;
output pins suing commands:

Code: Select all

10;GPIOset;31;0;ON;
20;01;OK;
10;GPIOset;31;0;OFF;
20;02;OK;
also is working. Unfortunately side effect of turning on GPIO subsystem is HIGH level on pins 30-39 after RFlink startup/reset (VERY ugly behavior).

I can force these pins LOW using command:

Code: Select all

10;setgpio=off
In theory it should turn off GPIO subsystem. Indeed change of INPUT pins is NOT reported BUT I still can turn on/off OUTPUT pings using commands

Code: Select all

10;setgpio=on
20;00;Nodo RadioFrequencyLink - RFLink Gateway V1.1 - R48;
20;01;setGPIO=ON;

INPUT/OUTPUT pins working

MANUAL reset by button

20;00;Nodo RadioFrequencyLink - RFLink Gateway V1.1 - R48;
20;01;setGPIO=ON;
10;setgpio=off
20;00;Nodo RadioFrequencyLink - RFLink Gateway V1.1 - R48;
10;GPIOset;31;0;ON;
20;01;OK;
10;GPIOset;31;0;OFF;
20;02;OK;

INPUT pins NOT working OUTPUT pins working
I'd like to have both INPUT and OUTPUT pins working but after startup OUTPUT pins should be LOW (switch(relay) off). Any ideas/comments about it?

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests