YAMAHA_AVR: erase current-Readings when switching to non-supported inputs; added apostrophe html entity

git-svn-id: https://svn.fhem.de/fhem/trunk@5814 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch
2014-05-10 18:07:03 +00:00
parent 0ad2c0f356
commit 72d2bce16b

View File

@@ -231,6 +231,14 @@ YAMAHA_AVR_GetStatus($;$)
}
}
else
{
readingsBulkUpdate($hash, "currentAlbum", "", 0);
readingsBulkUpdate($hash, "currentTitle", "", 0);
readingsBulkUpdate($hash, "currentChannel", "", 0);
readingsBulkUpdate($hash, "currentStation", "", 0);
readingsBulkUpdate($hash, "currentArtist", "", 0);
}
}
# input name as it is displayed on the receivers front display
@@ -1122,6 +1130,7 @@ sub YAMAHA_AVR_html2txt($)
$string =~ s/ / /g;
$string =~ s/&/&/g;
$string =~ s/'/'/g;
$string =~ s/(\xe4|&auml;)/<2F>/g;
$string =~ s/(\xc4|&Auml;)/<2F>/g;
$string =~ s/(\xf6|&ouml;)/<2F>/g;