pilight/pilight — pull request #104 by kirichkov (2014-06-09 19:34:30+00:00)
Title: Added support for the rsl366 protocol

I've added a protocol for the RSL366R sockets. The protocol has been requested [on the forum](http://forum.pilight.org/Thread-RSL366T-Switches). These are the same switches [RC-Switch](https://code.google.com/p/rc-switch/) was made to work with.

The sockets have 2 selectors, each with 4 values (1 to 4) thus allowing for 16 switches to co-exist and be controlled independently. I've test all possible combinations and they work through pilight.

I've used impuls.c/h and rewritten the appropriate parts, so there might be some irrelevant leftover code from the impuls protocol. I was not quite sure what the parseCode function was supposed to do so it will benefit from some code review.