YAMAHA_AVR: don't request additional playback info, when zone is in standby (Forum: #60902)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@14178 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2017-05-03 19:29:19 +00:00
parent de38f0e5b6
commit 8afb427689

View File

@ -1634,7 +1634,7 @@ YAMAHA_AVR_ParseResponse($$$)
{
readingsBulkUpdate($hash, "input", YAMAHA_AVR_Param2Fhem(lc($1), 0));
if($data =~ /<Src_Name>(.+?)<\/Src_Name>/)
if($data =~ /<Power>On<\/Power>/ and $data =~ /<Src_Name>(.+?)<\/Src_Name>/)
{
$hash->{helper}{LAST_INPUT_TAG} = $hash->{helper}{CURRENT_INPUT_TAG} if(exists($hash->{helper}{CURRENT_INPUT_TAG}));
$hash->{helper}{CURRENT_INPUT_TAG} = $1;