37_echodevice.pm: bugfixes

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@22937 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
michael.winkler 2020-10-07 18:04:47 +00:00
parent 82b6e38d7d
commit b1738ed443

View File

@ -2,6 +2,9 @@
#
##############################################
#
# 2020.10.07 v0.2.1
# - BUG: Not a HASH reference at ./FHEM/37_echodevice.pm line 2975
#
# 2020.10.05 v0.2.0
# - BUG: Not a HASH reference at ./FHEM/37_echodevice.pm line 3532
#
@ -398,7 +401,7 @@ use Time::Piece;
use lib ('./FHEM/lib', './lib');
use MP3::Info;
my $ModulVersion = "0.2.0";
my $ModulVersion = "0.2.1";
my $AWSPythonVersion = "0.0.3";
my $NPMLoginTyp = "unbekannt";
@ -2972,6 +2975,7 @@ sub echodevice_Parse($$$) {
my $iFrom ;
my $HelperNotifyID ;
if (ref($json) eq "HASH") {
foreach my $device (@{$json->{notifications}}) {
#next if ($device->{status} eq "OFF" && (lc($device->{type}) ne "reminder" || lc($device->{type}) ne "timer"));
@ -3195,10 +3199,10 @@ sub echodevice_Parse($$$) {
}
else {last;}
}
readingsEndUpdate($echohash,1);
}
}
}
elsif($msgtype eq "homegroup") {
$hash->{helper}{HOMEGROUP} = $json->{homeGroupId} if(defined($json->{homeGroupId}));