Forum dédié aux problématiques concernant les scripts pour DomoticZ.
Entourez votre code et les logs avec les balises nommées code grâce au bouton <\>.
depuis la mise à jour 4.2 de la box, les périphériques changent de status très régulièrement et passent donc de connecté à déconnecté toutes les deux trois minutes. Je suis le seul à avoir ce soucis?
Bonjour à tous,
tout d'abord, merci pour le partage et le travail sur Domoticz ! Je viens de l'installer sur une VM de mon serveur et je le découvre tout doucement.
Je vous écris car suite à l'installation du plugin Freebox, qui s'est très bien déroulée, je ne parviens pas finalement à contrôler ma box : ni le wifi, ni le redemarrage.
Les deux boutons existent bien dans Domoticz, mais cliquer dessus ne change rien...
Avant que l'on me le demande, car j'ai parcouru un peu le forum, je vous partage le résultat de mon Log sur le sujet.
Si vous avez des idées.. Je vous remercie par avance.
2020-08-06 13:22:06.503 (FreeBox) Pas de token défini.
2020-08-06 13:22:14.738 (FreeBox) onStop called
2020-08-06 13:22:14.721 Status: (FreeBox) Stop directive received.
2020-08-06 13:22:14.721 Status: (FreeBox) Exiting work loop.
2020-08-06 13:22:14.821 Status: (FreeBox) Stopping threads.
2020-08-06 13:22:14.821 Status: (FreeBox) Stopped.
2020-08-06 13:22:14.821 Status: (FreeBox) Started.
2020-08-06 13:22:15.196 Status: (FreeBox) Initialized version 1.1.2, author 'supermat'
2020-08-06 13:22:15.197 Status: (FreeBox) Entering work loop.
2020-08-06 13:22:20.199 (FreeBox) Token déjà présent. OK.
2020-08-06 13:22:21.166 (FreeBox) Création du dispositif Utilisation Disque dur
2020-08-06 13:22:21.240 (FreeBox) Création du dispositif System temp_cpub
2020-08-06 13:22:21.287 (FreeBox) Création du dispositif System temp_sw
2020-08-06 13:22:21.290 (FreeBox) Création du dispositif System temp_cpum
2020-08-06 13:22:21.325 (FreeBox) Etat WIFI : 1
2020-08-06 13:22:21.328 (FreeBox) Création du dispositif WIFI On/Off
2020-08-06 13:22:21.345 (FreeBox) Création du dispositif Reboot Server
2020-08-06 13:23:21.505 Status: EventSystem: reset all device statuses...
2020-08-06 13:23:26.725 Status: EventSystem: reset all device statuses...
2020-08-06 13:23:34.208 Status: EventSystem: reset all device statuses...
2020-08-06 13:24:47.776 Status: EventSystem: reset all device statuses...
2020-08-06 13:24:51.885 Status: EventSystem: reset all device statuses...
2020-08-06 13:24:55.574 Status: EventSystem: reset all device statuses...
2020-08-06 13:26:08.745 (FreeBox) onHeartbeat error: HTTP Error 404: Not Found
2020-08-06 13:27:08.793 (FreeBox) onHeartbeat error: HTTP Error 404: Not Found
Lorsque je lance une commande,, comme le redemarrage de la Freebox via son bouton Domoticz, j'obtiens ceci :
2020-08-06 15:42:28.355 Status: User: admin1 initiated a switch command (6/FreeBox - Reboot Server/On)
2020-08-06 15:42:28.477 Error: (FreeBox) 'onCommand' failed 'HTTPError'.
2020-08-06 15:42:28.477 Error: (FreeBox) ----> Line 294 in '/home/admingreg/domoticz/plugins/PluginDomoticzFreebox/plugin.py', function onCommand
2020-08-06 15:42:28.477 Error: (FreeBox) ----> Line 221 in '/home/admingreg/domoticz/plugins/PluginDomoticzFreebox/plugin.py', function onCommand
2020-08-06 15:42:28.477 Error: (FreeBox) ----> Line 90 in '/home/admingreg/domoticz/plugins/PluginDomoticzFreebox/freebox.py', function __init__
2020-08-06 15:42:28.477 Error: (FreeBox) ----> Line 73 in '/home/admingreg/domoticz/plugins/PluginDomoticzFreebox/freebox.py', function _mksession
2020-08-06 15:42:28.477 Error: (FreeBox) ----> Line 41 in '/home/admingreg/domoticz/plugins/PluginDomoticzFreebox/freebox.py', function _com
2020-08-06 15:42:28.477 Error: (FreeBox) ----> Line 222 in '/usr/lib/python3.7/urllib/request.py', function urlopen
2020-08-06 15:42:28.477 Error: (FreeBox) ----> Line 531 in '/usr/lib/python3.7/urllib/request.py', function open
2020-08-06 15:42:28.477 Error: (FreeBox) ----> Line 641 in '/usr/lib/python3.7/urllib/request.py', function http_response
2020-08-06 15:42:28.477 Error: (FreeBox) ----> Line 569 in '/usr/lib/python3.7/urllib/request.py', function error
2020-08-06 15:42:28.477 Error: (FreeBox) ----> Line 503 in '/usr/lib/python3.7/urllib/request.py', function _call_chain
2020-08-06 15:42:28.477 Error: (FreeBox) ----> Line 649 in '/usr/lib/python3.7/urllib/request.py', function http_error_default
2020-08-06 15:42:33.555 (FreeBox) onCommand called for Unit 6: Parameter 'On', Level: 0
2020-08-06 15:42:33.543 Status: User: admin1 initiated a switch command (6/FreeBox - Reboot Server/On)
Pour info, alors que le plugin fonctionnait parfaitement bien sur ma Freebox Revolution jusqu'à hier, il s'est arrêté de fonctionner quand le Freebox server m'a imposé une mise à jour.
Après avoir creusé longuement, il s'avère que l'adresse de ma box que j'utilisais dans le plugin (celle du parametre "URL de la Box avec http devant") n'est plus la bonne :
Pi 4 (8Go) sous buster avec Conbee II / Z-Stick Gen 5 / RFXCOM 433 XL / Domoticz 2022.01
Pi 3B+ sous bullseye avec ZDongle-E; et Pi zéro 2W pour octoprint :-)
Pour info, alors que le plugin fonctionnait parfaitement bien sur ma Freebox Revolution jusqu'à hier, il s'est arrêté de fonctionner quand le Freebox server m'a imposé une mise à jour.
Après avoir creusé longuement, il s'avère que l'adresse de ma box que j'utilisais dans le plugin (celle du parametre "URL de la Box avec http devant") n'est plus la bonne :
2020-09-18 14:39:07.496 Status: User: Admin initiated a switch command (86/Etat Reboot Server/On)
2020-09-18 14:39:08.258 Error: (Plugin Freebox) 'onCommand' failed 'HTTPError'.
2020-09-18 14:39:08.258 Error: (Plugin Freebox) ----> Line 294 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/plugin.py', function onCommand
2020-09-18 14:39:08.258 Error: (Plugin Freebox) ----> Line 222 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/plugin.py', function onCommand
2020-09-18 14:39:08.258 Error: (Plugin Freebox) ----> Line 254 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/freebox.py', function reboot
2020-09-18 14:39:08.258 Error: (Plugin Freebox) ----> Line 97 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/freebox.py', function com
2020-09-18 14:39:08.258 Error: (Plugin Freebox) ----> Line 41 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/freebox.py', function _com
2020-09-18 14:39:08.258 Error: (Plugin Freebox) ----> Line 222 in '/usr/lib/python3.7/urllib/request.py', function urlopen
2020-09-18 14:39:08.258 Error: (Plugin Freebox) ----> Line 531 in '/usr/lib/python3.7/urllib/request.py', function open
2020-09-18 14:39:08.258 Error: (Plugin Freebox) ----> Line 641 in '/usr/lib/python3.7/urllib/request.py', function http_response
2020-09-18 14:39:08.259 Error: (Plugin Freebox) ----> Line 569 in '/usr/lib/python3.7/urllib/request.py', function error
2020-09-18 14:39:08.259 Error: (Plugin Freebox) ----> Line 503 in '/usr/lib/python3.7/urllib/request.py', function _call_chain
2020-09-18 14:39:08.259 Error: (Plugin Freebox) ----> Line 649 in '/usr/lib/python3.7/urllib/request.py', function http_error_default
Domoticz version : 2024.7 (build 16178)
dzVents Version: 3.1.8
Python version : 3.11.2
j'ai exactement le même problème. Tout marche sauf le reboot... Les erreurs :
2020-10-08 08:27:36.403 Status: User: Admin initiated a switch command (32/FREEBOX - Reboot Server/On)
2020-10-08 08:27:37.044 Error: (FREEBOX) 'onCommand' failed 'HTTPError'.
2020-10-08 08:27:37.044 Error: (FREEBOX) ----> Line 294 in 'C:\Program Files (x86)\Domoticz\plugins\PluginDomoticzFreebox\plugin.py', function onCommand
2020-10-08 08:27:37.044 Error: (FREEBOX) ----> Line 222 in 'C:\Program Files (x86)\Domoticz\plugins\PluginDomoticzFreebox\plugin.py', function onCommand
2020-10-08 08:27:37.044 Error: (FREEBOX) ----> Line 254 in 'C:\Program Files (x86)\Domoticz\plugins\PluginDomoticzFreebox\freebox.py', function reboot
2020-10-08 08:27:37.044 Error: (FREEBOX) ----> Line 97 in 'C:\Program Files (x86)\Domoticz\plugins\PluginDomoticzFreebox\freebox.py', function com
2020-10-08 08:27:37.044 Error: (FREEBOX) ----> Line 41 in 'C:\Program Files (x86)\Domoticz\plugins\PluginDomoticzFreebox\freebox.py', function _com
2020-10-08 08:27:37.044 Error: (FREEBOX) ----> Line 163 in 'C:\Program Files (x86)\Python35-32\Lib\urllib\request.py', function urlopen
2020-10-08 08:27:37.044 Error: (FREEBOX) ----> Line 472 in 'C:\Program Files (x86)\Python35-32\Lib\urllib\request.py', function open
2020-10-08 08:27:37.044 Error: (FREEBOX) ----> Line 582 in 'C:\Program Files (x86)\Python35-32\Lib\urllib\request.py', function http_response
2020-10-08 08:27:37.044 Error: (FREEBOX) ----> Line 510 in 'C:\Program Files (x86)\Python35-32\Lib\urllib\request.py', function error
2020-10-08 08:27:37.044 Error: (FREEBOX) ----> Line 444 in 'C:\Program Files (x86)\Python35-32\Lib\urllib\request.py', function _call_chain
2020-10-08 08:27:37.044 Error: (FREEBOX) ----> Line 590 in 'C:\Program Files (x86)\Python35-32\Lib\urllib\request.py', function http_error_default
J'ai suivi ce qui a été dit, c'est à dire, suppression du plugin puis reinstall, Suppression du token puis ré-enregistrement, mais rien n'y fait... J'ai recherché un peu partout et j'ai remarqué dans les fichiers "plugin.py" et "freebox.py" qu'au niveau de freeboxURL, j'avais cela :