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