mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 01:14:19 +00:00
new protocols added: AC, HomeEasy EU and ANSLUT
git-svn-id: https://svn.fhem.de/fhem/trunk@1429 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8cc7bbeb25
commit
014d2eb71f
@ -58,7 +58,7 @@ TRX_Initialize($)
|
||||
my %mc = (
|
||||
"1:TRX_WEATHER" => "^..(50|52|54|55|56).*",
|
||||
"2:TRX_SECURITY" => "^..(20).*",
|
||||
"3:TRX_LIGHT" => "^..(10).*",
|
||||
"3:TRX_LIGHT" => "^..(10|11|12).*",
|
||||
"4:TRX_ELSE" => "^..(0|3|4|6|7|8|9).*",
|
||||
);
|
||||
$hash->{MatchList} = \%mc;
|
||||
@ -226,13 +226,6 @@ TRX_DoInit($)
|
||||
my $char = undef ;
|
||||
|
||||
|
||||
# Reset
|
||||
my $init = pack('H*', "0D00000000000000000000000000");
|
||||
DevIo_SimpleWrite($hash, $init, 0);
|
||||
DevIo_TimeoutRead($hash, 0.5);
|
||||
|
||||
TRX_Clear($hash);
|
||||
|
||||
if(defined($attr{$name}) && defined($attr{$name}{"do_not_init"})) {
|
||||
Log 1, "TRX: defined with noinit. Do not send init string to device.";
|
||||
$hash->{STATE} = "Initialized" if(!$hash->{STATE});
|
||||
@ -244,6 +237,13 @@ TRX_DoInit($)
|
||||
return undef;
|
||||
}
|
||||
|
||||
# Reset
|
||||
my $init = pack('H*', "0D00000000000000000000000000");
|
||||
DevIo_SimpleWrite($hash, $init, 0);
|
||||
DevIo_TimeoutRead($hash, 0.5);
|
||||
|
||||
TRX_Clear($hash);
|
||||
|
||||
#
|
||||
# Get Status
|
||||
$init = pack('H*', "0D00000102000000000000000000");
|
||||
|
Loading…
x
Reference in New Issue
Block a user