Page 13 sur 17

Re: Nouveau Plugin Freebox

Publié : 25 mai 2020, 11:20
par Le-Steph
J'ai bien mis le port https de ma freebox (qui n'est pas 443, j'ai mis le 1234).
Supermat a écrit : 25 mai 2020, 11:06 Sinon tu peux peut être essayer de passer ton lgin et mdp dans l'url avec https://login:mdp@nomdomaine.freeboxos.fr.
Marche pas non plus :
2020-05-25 11:17:52.193 (Freebox) OnStart error: <urlopen error [Errno -2] Name or service not known>

Re: Nouveau Plugin Freebox

Publié : 25 mai 2020, 11:26
par Le-Steph
Bizarre, j'ai remis comme avant et puis maintenant ça marche :? Est-ce que ça aurait débloqué un truc ?

Merci en tout cas pour votre aide :)

Re: Nouveau Plugin Freebox

Publié : 25 mai 2020, 13:54
par Supermat
Le-Steph a écrit : 25 mai 2020, 11:26 Bizarre, j'ai remis comme avant et puis maintenant ça marche :? Est-ce que ça aurait débloqué un truc ?

Merci en tout cas pour votre aide :)
C'est le principal !!

Re: Nouveau Plugin Freebox

Publié : 14 juil. 2020, 23:19
par Grum
Hello,

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?

Re: Nouveau Plugin Freebox

Publié : 20 juil. 2020, 15:04
par kaka83136
Bonjour,
J'essaye de paramétré ma Freebox V6 mais j'ai ce message d'erreur dans domoticz:

2020-07-20 15:04:11.336 Error: EventSystem: in Freebox: [string " ..."]:7: attempt to call a nil value (global 'log')

Merci

Re: Nouveau Plugin Freebox

Publié : 06 août 2020, 15:37
par GregB
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)

Re: Nouveau Plugin Freebox

Publié : 18 août 2020, 15:22
par Kyrille
Hello,

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 :

il faut remplacer http://mafreebox.free.fr par http://mafreebox.freebox.fr

Quand on tape "http://mafreebox.free.fr/" dans un navigateur, on a désormais :

Code : Tout sélectionner

unknown host, use ip address or mafreebox.freebox.fr
A mon avis, il faudrait mettre à jour les pages https://matdomotique.wordpress.com/2018 ... -domoticz/ et https://github.com/supermat/PluginDomoticzFreebox pour éviter que d'autres rencontrent le même souci quand ils suivent les recommandations d'une utilisation en réseau local.

Hope it helps.

PS : merci pour le plugin quoi qu'il en soit !

Re: Nouveau Plugin Freebox

Publié : 25 août 2020, 19:56
par jojomul1983
par Kyrille » 18 août 2020, 15:22

Hello,

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 :

il faut remplacer http://mafreebox.free.fr par http://mafreebox.freebox.fr

Quand on tape "http://mafreebox.free.fr/" dans un navigateur, on a désormais :
CODE : TOUT SÉLECTIONNER

unknown host, use ip address or mafreebox.freebox.fr
A mon avis, il faudrait mettre à jour les pages https://matdomotique.wordpress.com/2018 ... -domoticz/ et https://github.com/supermat/PluginDomoticzFreebox pour éviter que d'autres rencontrent le même souci quand ils suivent les recommandations d'une utilisation en réseau local.

Hope it helps.

PS : merci pour le plugin quoi qu'il en soit !
Un grand merci pour le changement d'adresse, j'étais bien embêté avec les présences des téléphones.

Re: Nouveau Plugin Freebox

Publié : 18 sept. 2020, 14:42
par Euton
Bonjour,

Chez moi le Reboot server n’a jamais fonctionné hors que le wifi on/off oui.
Voici mes logs :

Code : Tout sélectionner

 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

Re: Nouveau Plugin Freebox

Publié : 08 oct. 2020, 08:32
par inter-rupteur
Bonjour à tous,

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 :

freeboxURL = "http://mafreebox.free.fr" :?: :?: :?:

Je l'ai changé en ===> "http://mafreebox.freebox.fr", mais rien n'y fait....

Si le reste marche, donc cela ne peut pas venir de cela.... Donc...
une idée ?

Merci à vous
Inter-Rupteur