Skip to content

Commit

Permalink
Added an (untested) option to pair as master
Browse files Browse the repository at this point in the history
  • Loading branch information
ole1986 committed Dec 15, 2019
1 parent 0671303 commit 8ab81d3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion centronic-stick.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@


def showhelp():
print('%s [-hlit] [--checksum <code>] [--device <device>] [--send <UP|UP2|DOWN|DOWN2|HALT|PAIR> --channel <channel>]' % sys.argv[0])
print('%s [-hlit] [--checksum <code>] [--device <device>] [--send <UP|UP2|DOWN|DOWN2|HALT|PAIR|PAIRMASTER> --channel <channel>]' % sys.argv[0])
print('')
print('This script is used send command codes to CC11/CC51 compatible receivers through the CentronicControl USB Stick')
print('It is necessary to own such USB device and to PAIR it first, before using commands like UP and DOWN')
Expand Down Expand Up @@ -135,6 +135,11 @@ def send(self, cmd, channel, test=False):
codes.append(self.generatecode(ch, COMMAND_PAIR))
self.num_file.inc(test)
codes.append(self.generatecode(ch, COMMAND_PAIR2))
elif cmd == "PAIRMASTER":
# untested variant to pair the stick as master sender
codes.append(self.generatecode(ch, COMMAND_PAIR))
self.num_file.inc(test)
codes.append(self.generatecode(ch, COMMAND_PAIR4))

self.num_file.inc(test)

Expand Down

0 comments on commit 8ab81d3

Please sign in to comment.