mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
removed bat temp info (no measuring hardware available)
added total capacity git-svn-id: https://svn.fhem.de/fhem/trunk@6366 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a79c9fdd2f
commit
1ae7e9a6c2
@ -2003,14 +2003,13 @@ sub SYSMON_PowerBatInfo($$)
|
|||||||
my $d_capacity = trim(SYSMON_execute($hash, $base."capacity"));
|
my $d_capacity = trim(SYSMON_execute($hash, $base."capacity"));
|
||||||
my $d_status = trim(SYSMON_execute($hash, $base."status"));
|
my $d_status = trim(SYSMON_execute($hash, $base."status"));
|
||||||
my $d_health = trim(SYSMON_execute($hash, $base."health"));
|
my $d_health = trim(SYSMON_execute($hash, $base."health"));
|
||||||
my $d_temp = trim(SYSMON_execute($hash, $base."temp"));
|
my $d_energy_full_design = trim(SYSMON_execute($hash, $base."energy_full_design"));
|
||||||
if(defined $d_temp) {$d_temp/=10;}
|
|
||||||
|
|
||||||
$map->{"power_".$type."_info"}=$type." info: ".$d_technology." , capacity: ".$d_capacity." %, status: ".$d_status." , health: ".$d_health." , temperatur: ".$d_temp." C";
|
$map->{"power_".$type."_info"}=$type." info: ".$d_technology." , capacity: ".$d_capacity." %, status: ".$d_status." , health: ".$d_health." , total capacity: ".$d_energy_full_design." mAh";
|
||||||
|
|
||||||
# ggf. noch irgendwann: model_name, voltage_max_design, voltage_min_design
|
# ggf. noch irgendwann: model_name, voltage_max_design, voltage_min_design
|
||||||
} else {
|
} else {
|
||||||
$map->{"power_".$type."_info"}=$type." info: n/a , capacity: n/a %, status: n/a , health: n/a , temperatur: n/a C";
|
$map->{"power_".$type."_info"}=$type." info: n/a , capacity: n/a %, status: n/a , health: n/a , total capacity: n/a mAh";
|
||||||
}
|
}
|
||||||
|
|
||||||
return $map;
|
return $map;
|
||||||
@ -2245,9 +2244,9 @@ If one (or more) of the multiplier is set to zero, the corresponding readings is
|
|||||||
</li>
|
</li>
|
||||||
<br>
|
<br>
|
||||||
<li>power_battery_info<br>
|
<li>power_battery_info<br>
|
||||||
human readable additional information to the battery (if installed): technology, capacity, status, health, temperatur<br>
|
human readable additional information to the battery (if installed): technology, capacity, status, health, total capacity<br>
|
||||||
Example:<br>
|
Example:<br>
|
||||||
<code>power_battery_info: battery info: Li-Ion , capacity: 100 %, status: Full , health: Good , temperatur: 30 C</code><br>
|
<code>power_battery_info: battery info: Li-Ion , capacity: 100 %, status: Full , health: Good , total capacity: 2100 mAh</code><br>
|
||||||
</li>
|
</li>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
@ -2752,9 +2751,9 @@ If one (or more) of the multiplier is set to zero, the corresponding readings is
|
|||||||
</li>
|
</li>
|
||||||
<br>
|
<br>
|
||||||
<li>power_battery_info<br>
|
<li>power_battery_info<br>
|
||||||
Menschenlesbare Zusatzinformationen für die Batterie (wenn vorhanden): Technologie, Kapazität, Status, Zustand, Temperatur<br>
|
Menschenlesbare Zusatzinformationen für die Batterie (wenn vorhanden): Technologie, Kapazität, Status, Zustand, Gesamtkapazität<br>
|
||||||
Beispiel:<br>
|
Beispiel:<br>
|
||||||
<code>power_battery_info: battery info: Li-Ion , capacity: 100 %, status: Full , health: Good , temperatur: 30 C</code><br>
|
<code>power_battery_info: battery info: Li-Ion , capacity: 100 %, status: Full , health: Good , total capacity: 2100 mAh</code><br>
|
||||||
</li>
|
</li>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
Loading…
Reference in New Issue
Block a user