2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

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

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

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 );
}