mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
46_TRX_WEATHER.pm: Added batteryState Reading
git-svn-id: https://svn.fhem.de/fhem/trunk@18095 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
80d2ca485e
commit
247eb07d64
@ -1677,8 +1677,9 @@ TRX_WEATHER_Parse($$)
|
||||
my @words = split(/\s+/,$i->{current});
|
||||
$val .= "BAT: ".$words[0]." "; #use only first word
|
||||
|
||||
$sensor = "battery";
|
||||
readingsBulkUpdate($def, $sensor, $i->{current});
|
||||
#$sensor = "battery";
|
||||
readingsBulkUpdate($def, "battery", $i->{current});
|
||||
readingsBulkUpdate($def, "batteryState", $i->{current});
|
||||
}
|
||||
elsif ($i->{type} eq "pressure") {
|
||||
Log3 $name, 5, "TRX_WEATHER: name=$name device=$device_name Luftdruck ".$i->{current}." ".$i->{units}." Vorhersage=".$i->{forecast};
|
||||
|
Loading…
Reference in New Issue
Block a user