2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 04:36:36 +00:00

10_ZWave.pm: change patteryPercent back to previous behavior (Forum #110964)

git-svn-id: https://svn.fhem.de/fhem/trunk@21911 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-05-10 13:18:12 +00:00
parent 6fd4d445be
commit 0874944b75

View File

@ -3333,7 +3333,7 @@ ZWave_battery($) # Forum #87575
push @ret, "battery:". ($val eq "ff" ? "low" : hex($val)." %");
push @ret, "batteryState:" .(($val eq "ff" || $val eq "00") ? "low":"ok");
push @ret, "batteryPercent:".($val eq "ff" ? 0 : hex($val)); #110964
push @ret, "batteryPercent:".hex($val) if($val ne "ff"); #110964
return @ret;
}