From 62a2041e153cb79b9b83f61cf83e50c8a2e3b1e5 Mon Sep 17 00:00:00 2001 From: Leugi <> Date: Sat, 16 Jan 2021 17:51:41 +0000 Subject: [PATCH] 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 --- fhem/FHEM/71_YAMAHA_MC.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/71_YAMAHA_MC.pm b/fhem/FHEM/71_YAMAHA_MC.pm index 7dfd9c39d..fdb2ec73f 100644 --- a/fhem/FHEM/71_YAMAHA_MC.pm +++ b/fhem/FHEM/71_YAMAHA_MC.pm @@ -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 ); }