Bonjour,
J’ai réinstallé from scratch mon serveur pour passer de debian 11 à debian 12 avec jeedom 4.5 hier soir (+ restauration sauvegarde jeedom 4.5).
J’ai ce message qui apparait dans le fichier http.error plusieurs fois:
0081|[Wed Dec 10 11:21:42.457283 2025] [php:warn] [pid 243950:tid 243950] [client 127.0.0.1:36298] PHP Warning: Undefined array key "stay" in /var/www/html/plugins/wifilightV2/3rdparty/sonoff.php on line 162
Cela correspond a ce code :
158 if( isset($OutStr["startup"])==true && $OutStr["startup"]!="") {
159 //log::add($this->_logName,'debug',' Startup : '.$OutStr["startup"]);
160 if ($OutStr["startup"] =="on") $this->_return['StartState'] = 1;
161 if ($OutStr["startup"] =="off") $this->_return['StartState'] = 0;
162 if ($OutStr["stay"] =="on") $this->_return['StartState'] = 2;
163 }
En attendant un correctif j’ai juste fixé la ligne 160 à 162 pour tester en mettant :
if (isset($OutStr["startup"]) == true && $OutStr["startup"] == "on") $this->_return['StartState'] = 1;
if (isset($OutStr["startup"]) == true && $OutStr["startup"] == "off") $this->_return['StartState'] = 0;
if (isset($OutStr["stay"]) == true && $OutStr["stay"] == "on") $this->_return['StartState'] = 2;
Informations Jeedom
Core : 4.5 (master)
DNS Jeedom : non
Plugin : wifilightV2
Version : 2025-10-20 14:50:29 (stable)
Statut Démon : Démarré - (2025-12-09 21:09:44)