Ikea Ansluta send commands multiple times

Moderators: rtenklooster, Voyager, BertB, Stuntteam

Post Reply
Message
Author
darkside0506
Normal user
Posts: 14
Joined: 23 Apr 2017, 18:09

Ikea Ansluta send commands multiple times

#1 Post by darkside0506 » 07 May 2017, 20:04

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

darkside0506
Normal user
Posts: 14
Joined: 23 Apr 2017, 18:09

Re: Ikea Ansluta send commands multiple times

#2 Post by darkside0506 » 12 May 2017, 20:01

I guess not then :(

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

Re: Ikea Ansluta send commands multiple times

#3 Post by Stuntteam » 13 May 2017, 00:26

It already sends multiple times..
I will have a look at it anyway.
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8

darkside0506
Normal user
Posts: 14
Joined: 23 Apr 2017, 18:09

Re: Ikea Ansluta send commands multiple times

#4 Post by darkside0506 » 15 May 2017, 20:21

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

stingone
New user
Posts: 4
Joined: 29 Mar 2017, 20:11

Re: Ikea Ansluta send commands multiple times

#5 Post by stingone » 03 Sep 2017, 12:33

Same here. indeed after 3 times. just hooked-up mine yesterday.

Harry Chapman
New user
Posts: 1
Joined: 10 Oct 2017, 18:09

Re: Ikea Ansluta send commands multiple times

#6 Post by Harry Chapman » 10 Oct 2017, 18:10

Have to give it another try.
Online gaming is my thing, just Like always. I consider myself the best player here and there. But first I want to find information about dentists in my city. This is my bain for now.

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

Re: Ikea Ansluta send commands multiple times

#7 Post by Stuntteam » 10 Oct 2017, 19:41

Should work more fluent in R47
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8

techsoz
Normal user
Posts: 10
Joined: 01 Jun 2017, 12:18

Re: Ikea Ansluta send commands multiple times

#8 Post by techsoz » 11 Oct 2017, 00:10

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!

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

Re: Ikea Ansluta send commands multiple times

#9 Post by Stuntteam » 11 Oct 2017, 00:52

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?
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8

techsoz
Normal user
Posts: 10
Joined: 01 Jun 2017, 12:18

Re: Ikea Ansluta send commands multiple times

#10 Post by techsoz » 13 Oct 2017, 18:19

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.

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

Re: Ikea Ansluta send commands multiple times

#11 Post by Stuntteam » 13 Oct 2017, 19:43

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!
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8

techsoz
Normal user
Posts: 10
Joined: 01 Jun 2017, 12:18

Re: Ikea Ansluta send commands multiple times

#12 Post by techsoz » 13 Oct 2017, 23:49

ok, then its the hardware... will make another photo of it if the wiring is ok (tomorrow)

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests