no message

This commit is contained in:
belevo\mh
2026-01-23 13:38:45 +01:00
parent 010f6c5785
commit 5b57f2637a
2 changed files with 21 additions and 7 deletions

View File

@@ -19,7 +19,7 @@
{ {
"caption":"Leistung in W", "caption":"Leistung in W",
"name":"powerbat", "name":"powerbat",
"width":"300px", "width":"200px",
"add":5000, "add":5000,
"edit":{ "edit":{
"type":"NumberSpinner" "type":"NumberSpinner"
@@ -28,7 +28,7 @@
{ {
"caption":"Kapazität in kWh", "caption":"Kapazität in kWh",
"name":"capazity", "name":"capazity",
"width":"400px", "width":"200px",
"add":60, "add":60,
"edit":{ "edit":{
"type":"NumberSpinner" "type":"NumberSpinner"
@@ -37,7 +37,25 @@
{ {
"caption":"SoC", "caption":"SoC",
"name":"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, "add":0,
"edit":{ "edit":{
"type":"SelectVariable" "type":"SelectVariable"

View File

@@ -352,10 +352,6 @@ class Bat_EV_SDL extends IPSModule
$soc = (float)$v; $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 < 0.0) $soc = 0.0;
if ($soc > 100.0) $soc = 100.0; if ($soc > 100.0) $soc = 100.0;