diff --git a/core/class/z2m.class.php b/core/class/z2m.class.php index d334559..0cee785 100644 --- a/core/class/z2m.class.php +++ b/core/class/z2m.class.php @@ -1137,7 +1137,7 @@ public static function convertXYToRGB($x, $y, $bri = 255) { /* * *********************Methode d'instance************************* */ public function preSave(){ - if($this->getType() == 'action' && $this->getSubType() != 'color'){ + if($this->getType() == 'action' && $this->getSubType() != 'color' && $this->getLogicalId() != 'refresh'){ if(version_compare(jeedom::version(), '4.4.2') < 0){ $logicalId = $this->getConfiguration('logicalId',$this->getLogicalId()); }else{ @@ -1183,7 +1183,7 @@ public function preSave(){ // Exécution d'une commande public function execute($_options = array()) { $eqLogic = $this->getEqLogic(); - if($this->getLogicalId() == 'refresh'){ + if($this->getLogicalId() == 'refresh' || $this->getLogicalId() == 'json::{"refresh":null}'){ $eqLogic->refreshValue(); return; } diff --git a/docs/fr_FR/changelog.md b/docs/fr_FR/changelog.md index 28fa2e2..24758cc 100644 --- a/docs/fr_FR/changelog.md +++ b/docs/fr_FR/changelog.md @@ -4,6 +4,9 @@ > >S'il n'y a pas d'information sur la mise à jour, c'est que celle-ci concerne uniquement de la mise à jour de documentation, de traduction ou de texte. + +- Correction d'un bug avec la commande refresh + # 13/03/2024 - Limitation de la mise à jour du firmware zigbee à Luna sur les box Luna (évite de casser la puce Zigbee en cas de mauvais choix)