Hi there,
I have a set of remote controlled power plugs which aren't branded, but is a 4-plug version of these: http://www.made-in-china.com/showroom/hd...C201-.html
So far I have managed to mirror the functionality of the remote control by using the raw protocol to broadcast the codes found by pilight-debug, however I'm wanting to look at building a protocol plugin so that the commands to control the plugs are much simpler than: sudo pilight-send -p raw -c "239 717 717 239 239 717 717 239 239 717 239 717 717 239 239 717 717 239 717 239 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 717 239 717 239 717 239 717 239 239 717 717 239 239 717 239 717 239 717 239 717 717 239 717 239 239 8126"
=> turns into something like sudo pilight-send -p protocol --on --id=1
The following is the codes for each of the buttons on the remote:
Anyone feel like pointing me in the right direction?
I have a set of remote controlled power plugs which aren't branded, but is a 4-plug version of these: http://www.made-in-china.com/showroom/hd...C201-.html
So far I have managed to mirror the functionality of the remote control by using the raw protocol to broadcast the codes found by pilight-debug, however I'm wanting to look at building a protocol plugin so that the commands to control the plugs are much simpler than: sudo pilight-send -p raw -c "239 717 717 239 239 717 717 239 239 717 239 717 717 239 239 717 717 239 717 239 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 717 239 717 239 717 239 717 239 239 717 717 239 239 717 239 717 239 717 239 717 717 239 717 239 239 8126"
=> turns into something like sudo pilight-send -p protocol --on --id=1
The following is the codes for each of the buttons on the remote:
Code:
"S1_ON" => "239 717 717 239 239 717 717 239 239 717 239 717 717 239 239 717 717 239 717 239 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 717 239 717 239 717 239 717 239 239 717 717 239 239 717 239 717 239 717 239 717 717 239 717 239 239 8126",
"S1_OFF" => "239 717 717 239 239 717 717 239 239 717 239 956 717 239 239 717 717 239 717 239 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 717 239 717 239 717 239 239 717 717 239 239 717 239 717 717 239 239 717 717 239 717 239 239 8126",
"S2_ON" => "239 717 717 239 239 717 717 239 239 717 239 717 717 239 239 717 717 239 717 239 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 717 239 239 717 717 239 717 239 239 717 717 239 239 717 239 717 239 717 717 239 717 239 717 239 239 8126",
"S2_OFF" => "240 720 720 240 240 720 720 240 240 720 240 720 720 240 240 720 720 240 720 240 240 720 240 720 240 720 240 720 240 720 240 720 240 720 240 720 240 720 240 720 240 720 240 720 720 240 720 240 240 720 720 240 240 720 240 720 720 240 720 240 720 240 720 240 240 8160",
"S3_ON" => "239 717 717 239 239 717 717 239 239 717 239 717 717 239 239 717 717 239 717 239 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 717 239 717 239 239 717 717 239 239 717 717 239 239 717 239 717 239 717 239 717 239 717 239 717 239 8126",
"S3_OFF" => "240 720 720 240 240 720 720 240 240 720 240 720 720 240 240 720 720 240 720 240 240 720 240 720 240 720 240 720 240 720 240 720 240 720 240 720 240 720 240 720 240 720 720 240 240 720 720 240 240 720 720 240 240 720 240 720 720 240 240 720 240 720 240 720 240 8160",
"S4_ON" => "239 717 717 239 239 717 717 239 239 717 239 717 717 239 239 717 717 239 717 239 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 717 239 717 239 717 239 239 717 239 717 717 239 239 717 239 717 239 717 239 717 717 239 239 717 239 8126",
"S4_OFF" => "239 717 717 239 239 717 717 239 239 717 239 717 717 239 239 717 717 239 717 239 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 717 239 717 239 239 717 239 717 717 239 239 717 239 717 717 239 239 717 717 239 239 717 239 8126",
"ALL_ON" => "240 720 720 240 240 720 720 240 240 720 240 720 720 240 240 720 720 240 720 240 240 720 240 720 240 720 240 720 240 720 240 720 240 720 240 720 240 720 240 720 240 720 720 240 240 720 240 720 240 720 720 240 240 720 240 720 720 240 240 720 240 720 720 240 240 8160",
"ALL_OFF" => "239 717 717 239 239 717 717 239 239 717 239 717 717 239 239 717 717 239 717 239 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 239 717 717 239 239 717 239 717 239 717 239 717 717 239 239 717 239 717 239 717 717 239 239 717 717 239 239 8126"
Anyone feel like pointing me in the right direction?