diff --git a/fhem/CHANGED b/fhem/CHANGED index 51fde1801..b96e2db94 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,7 @@ # 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_AVR: fix max volume when using float values in + set command "volume" - bugfix: 93_DbRep: V5.8.6, don't limit length of attr reading/device if attr contains a list - feature: 70_KODI: added reading jsonResponse which contains the last diff --git a/fhem/FHEM/71_YAMAHA_AVR.pm b/fhem/FHEM/71_YAMAHA_AVR.pm index 5390c6fe9..4ab90ab07 100755 --- a/fhem/FHEM/71_YAMAHA_AVR.pm +++ b/fhem/FHEM/71_YAMAHA_AVR.pm @@ -457,9 +457,9 @@ YAMAHA_AVR_Set($@) { my $target_volume; - if($what eq "volume" and defined($a[2]) and $a[2] =~ /^\d{1,3}$/ and $a[2] >= 0 && $a[2] <= 100) + if($what eq "volume" and defined($a[2]) and $a[2] =~ /^\d{1,3}(?:\.\d)?$/ and $a[2] >= 0 && $a[2] <= 100) { - $target_volume = YAMAHA_AVR_volume_rel2abs($a[2]); + $target_volume = YAMAHA_AVR_volume_rel2abs(int($a[2])); } elsif($what eq "volumeDown" and defined(ReadingsVal($name, "volume", undef))) {