Created
February 22, 2017 21:47
-
-
Save cosmomill/fb2b6660b8ccdefc02e6e602b26b91e6 to your computer and use it in GitHub Desktop.
Switch back to native RF mode if needed. Patch created against rev 13196.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 10_IT.pm.orig 2017-02-22 11:53:15.520475979 +0100 | |
+++ 10_IT.pm 2017-02-22 21:43:23.000000000 +0100 | |
@@ -608,6 +608,16 @@ | |
my $ret = CallFn($io->{NAME}, "AttrFn", "set", ($io->{NAME}, "rfmode", "HomeMatic")); | |
} | |
} | |
+ | |
+ ## Do we need to enable native RFMode for e.g. LaCrosse?? | |
+ my $rfmode = CallFn($io->{NAME}, "GetFn", $io, (" ", "raw", "N")); | |
+ if($rfmode =~ m/raw => 01/) { | |
+ CallFn($io->{NAME}, "SetFn", $io, ($hash->{NAME}, "raw", "Nr1")); | |
+ } elsif($rfmode =~ m/raw => 02/) { | |
+ CallFn($io->{NAME}, "SetFn", $io, ($hash->{NAME}, "raw", "Nr2")); | |
+ } elsif($rfmode =~ m/raw => 03/) { | |
+ CallFn($io->{NAME}, "SetFn", $io, ($hash->{NAME}, "raw", "Nr3")); | |
+ } | |
} else { # SIGNALduino | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment