Skip to content

Instantly share code, notes, and snippets.

@cosmomill
Created February 22, 2017 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cosmomill/fb2b6660b8ccdefc02e6e602b26b91e6 to your computer and use it in GitHub Desktop.
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.
--- 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