diff --git a/fhem/CHANGED b/fhem/CHANGED index 5550ccd22..8a30db5a4 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 71_YAMAHA_NP: fixed 'timerRepeat' - new: 76_SMAPortal: new module to integrate the SMA Sunny Portal (comes with 76_SMAPortalSPG graphic device and a widget for FTUI), special thanks to Wzut and Xguide ! diff --git a/fhem/FHEM/71_YAMAHA_NP.pm b/fhem/FHEM/71_YAMAHA_NP.pm index f5aff4f1a..679932ae7 100644 --- a/fhem/FHEM/71_YAMAHA_NP.pm +++ b/fhem/FHEM/71_YAMAHA_NP.pm @@ -210,9 +210,9 @@ sub YAMAHA_NP_Attr } elsif($attrName eq "timerRepeat") { - if ($cmd eq "set" && $attrVal !~ /^(once|every)$/) + if ($cmd eq "set" && lc($attrVal) !~ /^(once|every)$/) { - return "Use 'once' or 'every'"; + return "'timerRepeat' must be 'once' or 'every'."; } } elsif($attrName eq "timerHour") @@ -1553,7 +1553,7 @@ desiredListNloop: YAMAHA_NP_SendCmd($hash, "PUT:System,Misc,Timer,Param:" ."".sprintf("%02d", $timerHour).":".sprintf("%02d", $timerMinute)."" ."$timerVolume" - ."$timerRepeat", $what, $a[2], 0); + ."".ucfirst(lc($timerRepeat))."", $what, $a[2], 0); } else {