• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Logilink EC0003 Protocol
#1
Hello,

the protocol of my Logilink EC0003 switches differs from the one implemented in pilight ( logilink protocol )

The only thing different is the order of the unit group and the state-bit:

01100100110001100110 1 000

changes to

01100100110001100110 000 1

My workaround at the moment is to switch the remote on with:
pilight-send -p logilink_switch -s 772770 -u 7 -t (switch A on)
state = 1 unit=111

And switch it off with:
pilight-send -p logilink_switch -s 772770 -u 6 t (switches A off)
state = 1 unit =110

Code:
‭10111100101010100010 111 1‬ A on

‭10111100101010100010 111 0‬  A off

‭10111100101010100010 110 1‬ B on

‭10111100101010100010 110 0 B off

‭10111100101010100010 101 1‬ C on

‭10111100101010100010 101 0 C off

‭10111100101010100010 011 1‬ D on

‭10111100101010100010 011 0‬ D off

‭10111100101010100010 001 0‬ All on

‭10111100101010100010 000 1‬ All off

But now I want to put it into the config file and could need some help Smile
 
Reply
#2
Or do a PR with the actual fix.
 
Reply
#3
(09-23-2017, 07:09 PM)curlymo Wrote: Or do a PR with the actual fix.

Is there a guide how to change a protocol or implement a new one?

Is it enough to change the logilink_switch.c class? Is it necessary to recompile or how do I test my new code?
 
Reply
#4
Please check if the protocol needs a fix or if we need to implement a new one. Not sure if we had a topic about the current implementation here on the forum, but the authors are mentioned in the source.

Also, building a new protocol mainly consists on taking existing ones and adapting it a bit. I believe there are enough topics on the forum and PR's on github that you can take as a reference.
 
Reply
#5
(09-24-2017, 10:11 AM)curlymo Wrote: Please check if the protocol needs a fix or if we need to implement a new one. Not sure if we had a topic about the current implementation here on the forum, but the authors are mentioned in the source.

Also, building a new protocol mainly consists on taking existing ones and adapting it a bit. I believe there are enough topics on the forum and PR's on github that you can take as a reference.
Here is the thread of the current implementation:
https://forum.pilight.org/Thread-Logilink-EC0005-Switch

I decided to make a new protocol instead of supporting both types of protocols inside the old one. Otherwise I would have to introduce a new parameter to distinguish between the protocol types and that wouldn't fit to the syntax of the other protocols AFAIK.

Here is my pull-request:
https://github.com/pilight/pilight/pull/386

This manual was useful for me:
https://www.pilight.org/modules/protocols/
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  missing protocol of "date_and_time" in Wiki/Protocols fleisch 3 129 08-03-2019, 06:10 PM
Last Post: curlymo
Brick Protocol for FT0073 drobskind 5 2,902 07-25-2019, 10:44 PM
Last Post: fireball
  Oregon Protocol V2.1: THGR122NX jpoilux 208 65,342 07-04-2019, 02:14 PM
Last Post: Tueftler1983
  Brennenstuhl RCR CE1 1011 with QUIGG GT9000 Protocol scootermacro 1 172 06-27-2019, 06:20 PM
Last Post: scootermacro
  mumbi rcs-20gs protocol scootermacro 0 158 06-21-2019, 12:10 PM
Last Post: scootermacro
  How to introduce a new protocol folder? Phunkafizer 2 354 01-15-2019, 07:25 PM
Last Post: Phunkafizer
  rfcontroljs protocol implementation pisperate 0 204 01-13-2019, 11:07 AM
Last Post: pisperate
  MQTT protocol for pilight Chekov 11 2,846 11-03-2018, 04:21 PM
Last Post: curlymo
  getting started guide for implementing new protocol kaililleby 1 783 11-28-2017, 10:24 PM
Last Post: pilino1234
  Unkown protocol with Lidl Libra RC-710 HaselnuesseTo 0 977 09-11-2017, 08:30 PM
Last Post: HaselnuesseTo

Forum Jump:


Browsing: 1 Guest(s)