2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-06 06:08:44 +00:00

10_FBDECT.pm: fix batteryPercent (Forum #96302)

git-svn-id: https://svn.fhem.de/fhem/trunk@18392 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-01-23 20:29:57 +00:00
parent 341990a6f5
commit ff2536df16

View File

@ -309,7 +309,7 @@ FBDECT_ParseHttp($$$)
readingsBulkUpdate($hash, $ptyp, $pyld);
readingsBulkUpdate($hash, "batteryState", $pyld ? "low" : "ok")
if($ptyp eq "batterylow");
readingsBulkUpdate($hash, "batteryPercent", $pyld) # 87575/96302
readingsBulkUpdate($hash, "batteryPercent", $val) # 87575/96302
if($ptyp eq "battery");
}
readingsEndUpdate($hash, 1);