mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
38_netatmo:dead detection fix, 72_XiaomiDevice: loglevel change
git-svn-id: https://svn.fhem.de/fhem/trunk@16396 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a4ec9de44e
commit
58bb3ec026
@ -3480,7 +3480,13 @@ netatmo_parseReadings($$;$)
|
||||
{
|
||||
$hash->{status} = "error";
|
||||
}
|
||||
readingsSingleUpdate( $hash, "active", $hash->{status}, 1 ) if($hash->{status} ne "no data");
|
||||
|
||||
if($hash->{helper}{last_status_store} > 0 && $hash->{helper}{last_status_store} < (int(time) - $hash->{helper}{INTERVAL} - 7200) ) {
|
||||
readingsSingleUpdate( $hash, "active", "dead", 1 );
|
||||
} else {
|
||||
readingsSingleUpdate( $hash, "active", $hash->{status}, 1 ) if($hash->{status} ne "no data");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -151,7 +151,7 @@ sub XiaomiDevice_Define($$$) {
|
||||
};
|
||||
if(!$req3)
|
||||
{
|
||||
Log3 $name, 2, "$name: Crypt::Cipher::AES not found";
|
||||
Log3 $name, 4, "$name: Crypt::Cipher::AES not found";
|
||||
#$hash->{STATE} = "Crypt::Cipher::AES not found";
|
||||
} elsif(!defined($hash->{helper}{crypt}) || $hash->{helper}{crypt} ne "Rijndael") {
|
||||
$hash->{helper}{crypt} = "AES";
|
||||
@ -166,7 +166,7 @@ sub XiaomiDevice_Define($$$) {
|
||||
};
|
||||
if(!$req2)
|
||||
{
|
||||
Log3 $name, 3, "$name: Crypt::Rijndael_PP not found";
|
||||
Log3 $name, 4, "$name: Crypt::Rijndael_PP not found";
|
||||
#$hash->{STATE} = "Crypt::Rijndael_PP not found";
|
||||
} elsif(!defined($hash->{helper}{crypt}) || $hash->{helper}{crypt} ne "AES") {
|
||||
$hash->{helper}{crypt} = "Rijndael";
|
||||
@ -176,6 +176,7 @@ sub XiaomiDevice_Define($$$) {
|
||||
|
||||
if(!$hash->{helper}{crypt})
|
||||
{
|
||||
Log3 $name, 1, "$name: Crypt::Cipher::AES or Crypt::Rijndael_PP is required!";
|
||||
$hash->{STATE} = "Crypt::Cipher::AES or Crypt::Rijndael_PP is required!";
|
||||
$attr{$name}{disable} = "1";
|
||||
return undef;
|
||||
@ -203,7 +204,7 @@ sub XiaomiDevice_Define($$$) {
|
||||
};
|
||||
if(!$req3)
|
||||
{
|
||||
Log3 $name, 3, "$name: Crypt::ECB not found while attemting to use an encrypted token";
|
||||
Log3 $name, 2, "$name: Crypt::ECB not found while attempting to use an encrypted token";
|
||||
$hash->{STATE} = "Crypt::ECB not found";
|
||||
$attr{$name}{disable} = "1";
|
||||
return undef;
|
||||
|
Loading…
x
Reference in New Issue
Block a user