2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

71_COE_Node: decimal for kWh fixed

git-svn-id: https://svn.fhem.de/fhem/trunk@20596 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
delmar 2019-11-26 08:11:08 +00:00
parent 7f4f5a3bfd
commit 86b9147e55
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: 71_COE_Node: decimal for kWh fixed
- change: 73_AutoShuttersControl: fix 'table with attributes' message then
commandref create
- new: 66_EseraAnalogInOut.pm: new modul

View File

@ -170,7 +170,7 @@ sub COE_Node_HandleAnalogValues {
if ($existingConfig) {
if ($type == 1) {
if ($type == 1 || $type == 10) {
$value = (substr $value, 0, (length $value)-1) . "." . (substr $value, -1);
} elsif ($type == 13) {
$value = (substr $value, 0, (length $value)-2) . "." . (substr $value, -2);