diff --git a/core/class/eqLogic.class.php b/core/class/eqLogic.class.php
index b38555d98a..5c677485fb 100644
--- a/core/class/eqLogic.class.php
+++ b/core/class/eqLogic.class.php
@@ -639,7 +639,7 @@ public function batteryWidget($_version = 'dashboard') {
}
$classAttr = $level . ' ' . $battery . ' ' . $plugins . ' ' . $object_name;
$idAttr = $level . '__' . $battery . '__' . $plugins . '__' . $object_name;
- $html .= '
';
+ $html .= '
';
$eqName = $this->getName();
if ($_version == 'mobile') {
diff --git a/core/js/eqLogic.class.js b/core/js/eqLogic.class.js
index 73a4c5099d..3c7ea9878a 100644
--- a/core/js/eqLogic.class.js
+++ b/core/js/eqLogic.class.js
@@ -472,6 +472,7 @@ jeedom.eqLogic.refreshValue = function(_params) {
eqLogics[_params[i].eqLogic_id] = {
eqLogic: eqLogic,
+ type: eqLogic?.classList.contains('battery-widget') ? 'battery' : 'default'
}
sends[_params[i].eqLogic_id] = {
version: ((version = eqLogic?.getAttribute('data-version')) != undefined) ? version : 'dashboard'
@@ -492,6 +493,9 @@ jeedom.eqLogic.refreshValue = function(_params) {
if (tile.childNodes.length == 0) {
continue
}
+ if (eqLogics[i].type === 'battery') {
+ continue
+ }
eqLogic = eqLogics[i].eqLogic
if (isElement_jQuery(eqLogic)) eqLogic = eqLogic[0]
if (eqLogic == null) {