mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 16:59:18 +00:00
12_HMS.pm: add batteryState (Forum #87575)
git-svn-id: https://svn.fhem.de/fhem/trunk@16797 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8b52f5fdd9
commit
5dd92dd1d7
@ -228,6 +228,8 @@ HMS_Parse($$)
|
||||
my $max = int(@txt);
|
||||
for( my $i = 0; $i < $max; $i++) {
|
||||
readingsBulkUpdate($def, $txt[$i], $v[$i]);
|
||||
readingsBulkUpdate($def, "batteryState", $v[$i] eq "empty" ? "low" : "ok")
|
||||
if($txt[$i] eq "battery");
|
||||
}
|
||||
readingsBulkUpdate($def, "type", $type);
|
||||
readingsBulkUpdate($def, "state", $val);
|
||||
|
Loading…
x
Reference in New Issue
Block a user