diff --git a/desktop/js/HomeWizard.js b/desktop/js/HomeWizard.js index 814d9ca..b558629 100644 --- a/desktop/js/HomeWizard.js +++ b/desktop/js/HomeWizard.js @@ -61,6 +61,9 @@ function printEqLogic(_eqLogic) { info = "{{L'équipement n'annonce pas l'API v2 : mettez son firmware à jour}}"; } $('#span_apiInfo').text(info); + // Plug-In Battery, ou compteur qui pilote un groupe de batteries : fonctions encore en beta + var batteries = v2Only || (_eqLogic.cmd || []).some(function(cmd) { return cmd.logicalId == 'batteries_mode'; }); + $('#div_hwBatteryBeta').toggle(batteries); $('#bt_migrateEqLogic').toggle(supported && (conf.v2Available == 1 || v2Only) && (!isV2 || conf.tokenInvalid == 1)); } diff --git a/desktop/modal/migration.php b/desktop/modal/migration.php index 3aed835..6cae723 100644 --- a/desktop/modal/migration.php +++ b/desktop/modal/migration.php @@ -276,7 +276,11 @@ function renderList() { html += ''; html += ''; html += '' + eq.name + ''; // getHumanName : déjà du html Jeedom - html += '' + esc(eq.type) + ''; + html += '' + esc(eq.type) + ''; + if (eq.type == 'HWE-BAT') { + html += ' beta'; + } + html += ''; html += '' + esc(eq.apiVersion || 'v1') + ''; if (eq.canApiV1 && eq.apiV1 === 0) { html += '
{{API v1 coupée}}'; diff --git a/desktop/php/HomeWizard.php b/desktop/php/HomeWizard.php index cf29daf..bf37daf 100644 --- a/desktop/php/HomeWizard.php +++ b/desktop/php/HomeWizard.php @@ -154,6 +154,12 @@ +