2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

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

git-svn-id: https://svn.fhem.de/fhem/trunk@18371 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-01-22 10:35:55 +00:00
parent 9e34033a26
commit 0a62a4addc

View File

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