diff --git a/fhem/contrib/98_LW12.pm b/fhem/contrib/98_LW12.pm index 3046b9de6..4d6b5dd29 100644 --- a/fhem/contrib/98_LW12.pm +++ b/fhem/contrib/98_LW12.pm @@ -475,7 +475,7 @@ sub LW12_updateStatus( $ ) { return if IsDisabled($name); my $res = LW12_Write( $hash, "\x{EF}\x{01}\x{77}" ); - if ($res != 0){ + if (hex($res) != 0){ $res = uc($res); my @colors = ( $res =~ m/..?/g );