I've found a simple way to determine the raw code for the buttons on the remote (Flamingo FA500R). Just start
Don't forget to stop pilight with the command
and keep pressing the desired button until you get an output with these parameters:
The binary code was also always: 11111111111111.
This can take some time, even a minute or two, just try it over and over again until you get something with pulselen = 147.
Here are my pilight-debug outputs / raw codes:
A_ON
A_OFF
B_ON
B_OFF
C_ON
C_OFF
D_ON
D_OFF
You can send the raw code with this command (for instance for turning on your switch with my code for button A):
Don't forget to turn on pilight again before sending codes:
I've tested all my raw codes and they are working.
<strike>But the problem is, the codes are somehow overlapping. I was not able to control all three switches independently with my remote or the raw codes of my remote plus the two posted in this thread. Therefore I'll send them back to Amazon. I don't know what's broken – the remote which is not able to send distinct codes or the switches which are maybe not able to distinguish the codes.
So I'm going to begin to search for (probably not self-learning) switches again.
</strike>
Edit: I didn't know that you have to reverse the connection. I read it in the manual today. So there are no conflicting codes or something like that. The switches are just able to learn several codes.
I hope there will be a protocol sometime. These Flamingo things are the best-selling sockets on Amazon Germany. Maybe we should post our raw codes here while there is no protocol. I also added my remote (remote IV) in the wiki.
Code:
pilight-debug
Don't forget to stop pilight with the command
Code:
sudo service pilight stop
and keep pressing the desired button until you get an output with these parameters:
Code:
rawlen: 58
binlen: 14
pulselen: 147 (or 148)
The binary code was also always: 11111111111111.
This can take some time, even a minute or two, just try it over and over again until you get something with pulselen = 147.
Here are my pilight-debug outputs / raw codes:
A_ON
Code:
hardware: 433gpio
pulse: 2
rawlen: 58
binlen: 14
pulselen: 147
Raw code:
294 1029 294 1029 1029 294 294 1029 294 1029 1029 441 294 1029 294 1029 294 1029 294 1029 882 441 882 294 294 1029 1029 441 882 294 1029 294 294 1029 294 1029 1029 294 882 294 294 1029 294 1029 294 1029 882 441 294 1029 1029 441 1029 294 294 1029 294 4998
Binary code:
11111111111111
A_OFF
Code:
hardware: 433gpio
pulse: 2
rawlen: 58
binlen: 14
pulselen: 147
Raw code:
294 1029 294 1029 882 294 294 1029 294 1029 1029 294 294 1029 1029 294 294 1029 294 1029 294 1029 1029 294 1029 294 1029 294 294 1029 1029 294 1029 441 882 294 1029 294 1029 294 1029 294 294 1029 294 1029 294 1029 294 1029 1029 294 1029 294 294 1029 294 4998
Binary code:
11111111111111
B_ON
Code:
hardware: 433gpio
pulse: 3
rawlen: 58
binlen: 14
pulselen: 147
Raw code:
294 1029 294 1029 1029 294 294 1029 294 1029 1029 441 1029 294 1029 294 1029 294 882 441 1029 294 1029 441 882 294 1029 441 1029 294 294 1029 294 1029 882 441 1029 294 1029 294 294 1029 1029 441 1029 294 1029 294 1029 441 294 1029 294 1029 1029 441 294 4998
Binary code:
11111111111111
B_OFF
Code:
hardware: 433gpio
pulse: 2
rawlen: 58
binlen: 14
pulselen: 147
Raw code:
294 1029 294 1029 1029 294 294 1029 294 1029 1029 294 1029 294 294 1029 882 441 882 441 1029 441 882 294 294 1029 1029 294 1029 441 882 441 882 441 882 441 294 1029 294 1029 1029 441 882 441 294 1029 882 441 294 1029 1029 294 294 1029 1029 294 294 4998
Binary code:
11111111111111
C_ON
Code:
hardware: 433gpio
pulse: 2
rawlen: 58
binlen: 14
pulselen: 147
Raw code:
1029 294 1029 294 1029 294 294 1029 294 1029 1029 441 294 1029 294 1029 294 1029 882 441 1029 294 294 1029 294 1029 1029 294 1029 294 294 1029 882 294 1029 441 1029 294 294 1029 294 1029 1029 441 294 1029 1029 294 1029 294 294 1029 294 1029 1029 294 294 4998
Binary code:
11111111111111
C_OFF
Code:
hardware: 433gpio
pulse: 2
rawlen: 58
binlen: 14
pulselen: 147
Raw code:
1029 294 1029 441 882 294 294 1029 294 1029 1029 294 294 1029 294 1029 294 1029 1029 294 1029 294 294 1029 1029 294 1029 441 294 1029 1029 294 1029 441 294 1029 1029 294 294 1029 294 1029 1029 441 1029 441 882 294 294 1029 882 294 294 1029 1029 294 294 4998
Binary code:
11111111111111
D_ON
Code:
hardware: 433gpio
pulse: 2
rawlen: 58
binlen: 14
pulselen: 147
Raw code:
294 1029 882 294 1029 294 294 1029 294 1029 1029 441 294 1029 1029 294 294 1029 1029 294 1029 294 1029 294 294 1029 294 1029 1029 294 1029 294 1029 294 1029 441 294 1029 1029 294 294 1029 1029 441 294 1029 1029 294 1029 294 294 1029 1029 294 294 1029 294 4998
Binary code:
11111111111111
D_OFF
Code:
hardware: 433gpio
pulse: 2
rawlen: 58
binlen: 14
pulselen: 147
Raw code:
294 1029 882 294 1029 294 294 1029 294 1029 1029 294 1029 294 1029 294 294 1029 294 1029 1029 294 294 1029 1029 294 1029 441 1029 294 294 1029 294 1029 1029 294 294 1029 294 1029 1029 294 1029 441 1029 294 1029 294 294 1029 294 1029 1029 294 294 1029 294 4998
Binary code:
11111111111111
You can send the raw code with this command (for instance for turning on your switch with my code for button A):
Code:
sudo pilight-send -p raw -c "294 1029 294 1029 1029 294 294 1029 294 1029 1029 441 294 1029 294 1029 294 1029 294 1029 882 441 882 294 294 1029 1029 441 882 294 1029 294 294 1029 294 1029 1029 294 882 294 294 1029 294 1029 294 1029 882 441 294 1029 1029 441 1029 294 294 1029 294 4998"
Don't forget to turn on pilight again before sending codes:
Code:
sudo service pilight start
I've tested all my raw codes and they are working.
<strike>But the problem is, the codes are somehow overlapping. I was not able to control all three switches independently with my remote or the raw codes of my remote plus the two posted in this thread. Therefore I'll send them back to Amazon. I don't know what's broken – the remote which is not able to send distinct codes or the switches which are maybe not able to distinguish the codes.
So I'm going to begin to search for (probably not self-learning) switches again.

Edit: I didn't know that you have to reverse the connection. I read it in the manual today. So there are no conflicting codes or something like that. The switches are just able to learn several codes.
I hope there will be a protocol sometime. These Flamingo things are the best-selling sockets on Amazon Germany. Maybe we should post our raw codes here while there is no protocol. I also added my remote (remote IV) in the wiki.