Page 1 of 1

Ikea Ansluta send commands multiple times

Posted: 07 May 2017, 20:04
by darkside0506
Hi

I have successfully got this working with my Ansluta lights however I often need to send the command multiple times to ensure that the lights switch on or off (I have 3 separate lights linked to one remote and often when the on/off command is transmitted it only one or two will receive the signal).

I have tried to write a script in domoticz to send the command multiple times but I'm not having much success as I'm very much an amateur.

I have looked through the various codes for the plugins on the development tree but can't see anything about the Ansluta in them - as I say, I am an amateur so not really sure what I'm looking for.

My question is: is there a way to adapt the rflink code so that when it sends the on/off command it will send it multiple times? I notice from https://github.com/NDBCK/Ansluta-Remote-Controller that the original ansluta remote sends the on/off commands 50 times - is there any way to change the code to do this from the rflink? (Of course it may already do this - I'm not sure)

Finally, thanks for creating such a great device for free

Cheers

Re: Ikea Ansluta send commands multiple times

Posted: 12 May 2017, 20:01
by darkside0506
I guess not then :(

Re: Ikea Ansluta send commands multiple times

Posted: 13 May 2017, 00:26
by Stuntteam
It already sends multiple times..
I will have a look at it anyway.

Re: Ikea Ansluta send commands multiple times

Posted: 15 May 2017, 20:21
by darkside0506
Thanks - I appreciate it.

If it helps, if I run a script in Domoticz to repeat 5 times, it normally gets all the lights on by the third repeat (at least I think it is the 3rd - I just counted the number of times the TX led on the mega flashed). Also, without the script in Domoticz, if I get HA-bridge to repeat the on command multiple times (at least 10) with a 25ms gap then it also works.

Thanks again

Re: Ikea Ansluta send commands multiple times

Posted: 03 Sep 2017, 12:33
by stingone
Same here. indeed after 3 times. just hooked-up mine yesterday.

Re: Ikea Ansluta send commands multiple times

Posted: 10 Oct 2017, 18:10
by Harry Chapman
Have to give it another try.

Re: Ikea Ansluta send commands multiple times

Posted: 10 Oct 2017, 19:41
by Stuntteam
Should work more fluent in R47

Re: Ikea Ansluta send commands multiple times

Posted: 11 Oct 2017, 00:10
by techsoz
How did you get it working at all?
I am trying for 4 months now and making no progress.

I dont now if my hardware works. I cannot find any helpful documentation. I have asked people here.
Is anyone willing to help me "step by step"?

What I did:
I connected the cc2500 to an arduino as described on the homepage.
the 4 data pins seem to be easy (go to a level shifter [tried 5!] then to the pins 47,51, 50, 52)
gnd goes to a gnd at the arduino. Does it need to go through the level shifter? GND-
do i need to use the 5v of the arduino->level shifter->cc2500 or can I use the 3,3v?
do i NEED to connect pin6->gnd and Pin 12 to GND? or is this an option?

then I connect it to my pc (Later I want to go to an raspberry)
start rflink tool. Arduino is flashed.
connect by "start logging":

20;00;Nodo RadioFrequencyLink - RFLink Gateway V1.1 - R47;
20;00;Internal Pullup on RF-in disabled
20;02;MiLight=OFF;NO NRF24L01;
10;version;
20;03;VER=1.1;REV=47;BUILD=08;
10;status;
20;04;STATUS;setRF433=ON;setNodoNRF=OFF;setMilight=ON;setLivingColors=OFF;setAnsluta=OFF;setGPIO=OFF;setBLE=OFF;setMysensors=OFF;

Is this correct? What might be wrong? How can I check it?

THen I click on ansluta on. It says ansluta enabled.

THen I assume i need to go to domoticz. Here I don´t make any progress. It "fails to create sensors" when I click add device

2017-10-11 00:07:58.809 RFLink Detected, Version: 1.1 Revision: 47 Build: 8
2017-10-11 00:08:13.484 User: initiated a RFLink Device Create command: aaa
2017-10-11 00:08:17.999 Error: RFLink: TX time out...

who can help? Is my hardware wrong, or my software? I live in Berlin. Anyone nearby? Happy to buy you a beer!

Re: Ikea Ansluta send commands multiple times

Posted: 11 Oct 2017, 00:52
by Stuntteam
device create command 'aaa' ?
Does not sound right..

10;status;
20;04;STATUS;setRF433=ON;setNodoNRF=OFF;setMilight=ON;setLivingColors=OFF;setAnsluta=OFF;setGPIO=OFF;setBLE=OFF;setMysensors=OFF;

reconnect.. is Ansluta still OFF?
You need to enable it and check if it stays enabled .. only then it will work.

The 'add device' is that the button in the hardware tab behind the rflink hardware line?

Re: Ikea Ansluta send commands multiple times

Posted: 13 Oct 2017, 18:19
by techsoz
In Domoticz:

"device create command 'aaa' ?
Does not sound right.."

When I do klick add device in domoticz, it asks for a name, i just typed aaa... //
----

In RFlinktool

10;status;
20;04;STATUS;setRF433=ON;setNodoNRF=OFF;setMilight=ON;setLivingColors=OFF;setAnsluta=OFF;setGPIO=OFF;setBLE=OFF;setMysensors=OFF;

reconnect.. is Ansluta still OFF?
You need to enable it and check if it stays enabled .. only then it will work.

ansluta is OFF most of the time, I dont know why and how. How can I make it work? As mentioned I dont know how to check the hardware.

Re: Ikea Ansluta send commands multiple times

Posted: 13 Oct 2017, 19:43
by Stuntteam
If Ansluta is OFF after reboot/reconnect, then it can not properly detect the CC2500 hardware.

>The 'add device' is that the button in the hardware tab behind the rflink hardware line?
Yes!

Re: Ikea Ansluta send commands multiple times

Posted: 13 Oct 2017, 23:49
by techsoz
ok, then its the hardware... will make another photo of it if the wiring is ok (tomorrow)