2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

30_DUOFERN: fix SX5

git-svn-id: https://svn.fhem.de/fhem/trunk@20390 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Telekatz 2019-10-21 18:33:42 +00:00
parent b0c5f92578
commit 8834582552

View File

@ -628,13 +628,13 @@ DUOFERN_Set($@)
my $list = join(" ", sort keys %sets);
if(exists $sets{"position:slider,0,1,100"} && $cmd =~ m/^\d+/) {
if(exists $sets{"position:slider,0,1,100"} && $cmd =~ m/^\d*$/) {
$arg2 = $arg;
$arg = $cmd;
$cmd = "position";
}
if(exists $sets{"level:slider,0,1,100"} && $cmd =~ m/^\d+/) {
if(exists $sets{"level:slider,0,1,100"} && $cmd =~ m/^\d*$/) {
$arg2 = $arg;
$arg = $cmd;
$cmd = "level";
@ -1440,6 +1440,15 @@ DUOFERN_Parse($$)
}
Log3 $hash, 3, "DUOFERN error: $name MISSING ACK";
#NACK, Aktor nicht initialisiert
} elsif ($msg =~ m/81010C55.{36}/) {
readingsSingleUpdate($hash, "state", "NOT INITIALIZED", 1);
foreach (grep (/^channel_/, keys%{$hash})){
my $chnHash = $defs{$hash->{$_}};
readingsSingleUpdate($chnHash, "state", "NOT INITIALIZED", 1);
}
Log3 $hash, 3, "DUOFERN error: $name NOT INITIALIZED; reopen DUOFERNSTICK";
} else {
Log3 $hash, 3, "DUOFERN unknown msg: $msg";
}