Je rencontre un problème après l’installation du plugin NETATMO, après avoir « Envoyer configuration au market » et associer mon compte, le message « 500 : Internal Server Error » apparait en rouge en bas à droite de l’écran et mes vannes thermostatiques ne remontent pas.
Si une personne peut m’aider j’ai regardé sur les forums mais sans résoudre mon problème. merci
Logs http error
Citation
0029|[Tue Apr 15 15:45:13.527166 2025] [php:error] [pid 2307:tid 2307] [client 192.168.31.214:59879] PHP Fatal error: Uncaught Error: Undefined constant « type » in /var/www/html/plugins/netatmo/core/class/netatmo_energy.class.php:88\nStack trace:\n#0 /var/www/html/plugins/netatmo/core/class/netatmo.class.php(266): netatmo_energy::sync()\n#1 /var/www/html/plugins/netatmo/core/ajax/netatmo.ajax.php(30): netatmo::sync()\n#2 {main}\n thrown in /var/www/html/plugins/netatmo/core/class/netatmo_energy.class.php on line 88, referer: http://192.168.31.120/index.php?v=d&m=netatmo&p=netatmo
Apres correction sur la Ligne 88 [type] → [‹ type ›],
$room_devices_list[] = $device['type'];
pour ceux qui sont sous PHP 8 et plus, une deuxième error apparait Ligne 82:
PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/www/html/plugins/netatmo/core/class/netatmo_energy.class.php:82
0002|[Sat Oct 11 10:14:22.514552 2025] [php:error] [pid 196810:tid 196810] [client 81.250.196.121:0] PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/www/html/plugins/netatmo/core/class/netatmo_energy.class.php:82\nStack trace:\n#0 /var/www/html/plugins/netatmo/core/class/netatmo.class.php(266): netatmo_energy::sync()\n#1 /var/www/html/plugins/netatmo/core/ajax/netatmo.ajax.php(30): netatmo::sync()\n#2 {main}\n thrown in /var/www/html/plugins/netatmo/core/class/netatmo_energy.class.php on line 82, referer: https://10bf1829.eu.jeedom.link/index.php?v=d&p=plugin&id=netatmo
ajouter (array) devant $room dans la Ligne 82
Comme ci-dessous: if(count((array)$room[‹ module_ids ›]) == 0){ continue; …