mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 19:32:42 +00:00
10_FBDECT.pm: add batteryState (Forum #87575)
git-svn-id: https://svn.fhem.de/fhem/trunk@16798 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5dd92dd1d7
commit
496e970438
@ -297,6 +297,8 @@ FBDECT_ParseHttp($$$)
|
||||
my ($ptyp,$pyld) = split(":", eval $fbhttp_readings{$n}, 2);
|
||||
readingsBulkUpdate($hash, "state", "$ptyp: $pyld") if($n eq "tsoll");
|
||||
readingsBulkUpdate($hash, $ptyp, $pyld);
|
||||
readingsBulkUpdate($hash, "batteryState", $pyld ? "low" : "ok")
|
||||
if($ptyp eq "batterylow");
|
||||
}
|
||||
readingsEndUpdate($hash, 1);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user