mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
10_FBDECT.pm: add batteryPercent (Forum #96302)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@18371 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
67c4a38a25
commit
52eda5fd9a
@ -309,6 +309,8 @@ FBDECT_ParseHttp($$$)
|
|||||||
readingsBulkUpdate($hash, $ptyp, $pyld);
|
readingsBulkUpdate($hash, $ptyp, $pyld);
|
||||||
readingsBulkUpdate($hash, "batteryState", $pyld ? "low" : "ok")
|
readingsBulkUpdate($hash, "batteryState", $pyld ? "low" : "ok")
|
||||||
if($ptyp eq "batterylow");
|
if($ptyp eq "batterylow");
|
||||||
|
readingsBulkUpdate($hash, "batteryPercent", $pyld) # 87575/96302
|
||||||
|
if($ptyp eq "battery");
|
||||||
}
|
}
|
||||||
readingsEndUpdate($hash, 1);
|
readingsEndUpdate($hash, 1);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user