Skip to content

Commit

Permalink
signalduino_protocols.pm
Browse files Browse the repository at this point in the history
Specify package of methods

test/test_modulematch_1-definition.txt

Load pm instead of .hash file
  • Loading branch information
sidey79 committed Feb 24, 2019
1 parent 02f95af commit d54a49f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions FHEM/lib/signalduino_protocols.pm
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
###########################################################################################################################################
package SD_Protocols;
{

our $VERSION = '1.00';
my %signalduino_protocols = (
"0" => ## various weather sensors (500 | 9100)
# CUL_TCM97001 Typ - Prologue
Expand Down Expand Up @@ -387,7 +387,7 @@ package SD_Protocols;
modulematch => '^(3[8-9A-F]|[4-6][0-9A-F]|7[0-8]).*',
length_min => '64',
length_max => '220',
method => \&SIGNALduino_OSV2, # Call to process this message
method => \&main::SIGNALduino_OSV2, # Call to process this message
polarity => 'invert',
},
"11" => ## Arduino Sensor
Expand All @@ -403,7 +403,7 @@ package SD_Protocols;
modulematch => '^P2#.{7,8}',
length_min => '52',
length_max => '56',
method => \&SIGNALduino_AS # Call to process this message
method => \&main::SIGNALduino_AS # Call to process this message
},
"12" => ## Hideki
# MC;LL=-1040;LH=904;SL=-542;SH=426;D=A8C233B53A3E0A0783;C=485;L=72;R=213;
Expand All @@ -419,7 +419,7 @@ package SD_Protocols;
modulematch => '^P12#75.+',
length_min => '71',
length_max => '128',
method => \&SIGNALduino_Hideki, # Call to process this message
method => \&main::SIGNALduino_Hideki, # Call to process this message
#polarity => 'invert',
},
"13" => ## FLAMINGO FA21
Expand Down Expand Up @@ -603,7 +603,7 @@ package SD_Protocols;
length_min => '32',
length_max => '32',
polarity => 'invert', # invert bits
method => \&SIGNALduino_OSV1 # Call to process this message
method => \&main::SIGNALduino_OSV1 # Call to process this message
},
"19" => ## minify Funksteckdose
# https://github.com/RFD-FHEM/RFFHEM/issues/114
Expand Down Expand Up @@ -1119,7 +1119,7 @@ package SD_Protocols;
modulematch => '^Ys[0-9A-F]{14}',
length_min => '56',
length_max => '57',
method => \&SIGNALduino_SomfyRTS, # Call to process this message
method => \&main::SIGNALduino_SomfyRTS, # Call to process this message
msgIntro => 'SR;P0=-2560;P1=2560;P3=-640;D=10101010101010113;',
#msgOutro => 'SR;P0=-30415;D=0;',
frequency => '10AB85550A',
Expand Down Expand Up @@ -1211,7 +1211,7 @@ package SD_Protocols;
modulematch => '^P47#[569A]{12}.*',
length_min => '100',
length_max => '108',
method => \&SIGNALduino_Maverick, # Call to process this message
method => \&main::SIGNALduino_Maverick, # Call to process this message
#polarity => 'invert'
},
"48" => ## Joker Dostmann TFA 30.3055.01
Expand Down Expand Up @@ -1318,7 +1318,7 @@ package SD_Protocols;
preamble => 'u52#',
length_min => '30',
length_max => '30',
method => \&SIGNALduino_OSPIR, # Call to process this message
method => \&main::SIGNALduino_OSPIR, # Call to process this message
polarity => 'invert',
},
"55" => ## QUIGG GT-1000
Expand Down Expand Up @@ -1371,7 +1371,7 @@ package SD_Protocols;
preamble => 'P57#',
length_min => '21',
length_max => '24',
method => \&SIGNALduino_MCRAW, # Call to process this message
method => \&main::SIGNALduino_MCRAW, # Call to process this message
polarity => 'invert',
},
"58" => ## TFA 30.3208.0
Expand All @@ -1388,7 +1388,7 @@ package SD_Protocols;
preamble => 'W58#',
length_min => '52', # 54
length_max => '52', # 136
method => \&SIGNALduino_MCTFA, # Call to process this message
method => \&main::SIGNALduino_MCTFA, # Call to process this message
polarity => 'invert',
},
"59" => ## AK-HD-4 remote | 4 Buttons
Expand Down
2 changes: 1 addition & 1 deletion test/test_modulematch_1-definition.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
defmod test_modulematch_1 UnitTest dummyDuino (
{
my %ProtocolListTest = SIGNALduino_LoadProtocolHash("$attr{global}{modpath}/FHEM/lib/test_loadprotohash-ok.hash");
my %ProtocolListTest = SIGNALduino_LoadProtocolHash("$attr{global}{modpath}/FHEM/lib/test_loadprotohash-ok.pm");
is($ProtocolListTest{error},undef,"load test protocol hash ");


Expand Down

0 comments on commit d54a49f

Please sign in to comment.