71_YAMAHA_MC: added toggleShuffle and REadings for Repeat,Shuffle,TotalTime, PlayTime

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@23534 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Leugi 2021-01-16 17:51:41 +00:00
parent 51e60d880c
commit 3bb1a95d49

View File

@ -4023,8 +4023,11 @@ sub YAMAHA_MC_httpRequestParse($$$) {
Log3 $name, 4, "$type: $name YAMAHA_MC_httpRequestParse toggleRepeat Current=$currentRepeat";
if ( $currentRepeat eq "off" ) {
readingsSingleUpdate( $hash, "repeat_status", "on", 1 );
readingsSingleUpdate( $hash, "repeat_status", "all", 1 );
}
elsif ( $currentRepeat eq "all" ) {
readingsSingleUpdate( $hash, "repeat_status", "one", 1 );
}
else {
readingsSingleUpdate( $hash, "repeat_status", "off", 1 );
}