diff --git a/Bat_EV_SDL/form.json b/Bat_EV_SDL/form.json index baa9566..946beb9 100644 --- a/Bat_EV_SDL/form.json +++ b/Bat_EV_SDL/form.json @@ -19,7 +19,7 @@ { "caption":"Leistung in W", "name":"powerbat", - "width":"300px", + "width":"200px", "add":5000, "edit":{ "type":"NumberSpinner" @@ -28,7 +28,7 @@ { "caption":"Kapazität in kWh", "name":"capazity", - "width":"400px", + "width":"200px", "add":60, "edit":{ "type":"NumberSpinner" @@ -37,7 +37,25 @@ { "caption":"SoC", "name":"soc", - "width":"400px", + "width":"200px", + "add":0, + "edit":{ + "type":"SelectVariable" + } + }, + { + "caption":"Batterieleistung", + "name":"powerbat_laden", + "width":"200px", + "add":0, + "edit":{ + "type":"SelectVariable" + } + }, + { + "caption":"Batterieleistung", + "name":"powerbat_entladen", + "width":"200px", "add":0, "edit":{ "type":"SelectVariable" diff --git a/Bat_EV_SDL/module.php b/Bat_EV_SDL/module.php index aa98b0c..aaa440f 100644 --- a/Bat_EV_SDL/module.php +++ b/Bat_EV_SDL/module.php @@ -352,10 +352,6 @@ class Bat_EV_SDL extends IPSModule $soc = (float)$v; - // 0..1 -> 0..100 - if ($soc >= 0.0 && $soc < 1.0) { - $soc *= 100.0; - } if ($soc < 0.0) $soc = 0.0; if ($soc > 100.0) $soc = 100.0;