Page 15 sur 17

Re: Nouveau Plugin Freebox

Publié : 21 janv. 2021, 13:42
par manuloup
Le-Steph a écrit : 19 oct. 2020, 11:46 C'est quoi ce jeton ? Car les données qu'il récupère sont intéressantes !
Désolé pour la réponse tardive. C'est le nom du jeton à utiliser créé par le plugin. Tu peux retrouver mon script dans le forum.

Si besoin je peux te fournir les infos.

Re: Nouveau Plugin Freebox

Publié : 21 janv. 2021, 14:21
par Le-Steph
Je n'ai pas trouvé ton script :oops: Je veux bien des infos :)

Re: Nouveau Plugin Freebox

Publié : 15 avr. 2021, 00:55
par doum
Bonjour à tous,

je viens d'installer le plugin. Le On/Off du wifi fonctionne très bien par contre j'ai des erreurs lors du reboot du serveur:

Code : Tout sélectionner

2021-04-15 00:22:18.305 Error: (Freebox) 'onCommand' failed 'HTTPError'.
2021-04-15 00:22:18.306 Error: (Freebox) ----> Line 294 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/plugin.py', function onCommand
2021-04-15 00:22:18.306 Error: (Freebox) ----> Line 222 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/plugin.py', function onCommand
2021-04-15 00:22:18.306 Error: (Freebox) ----> Line 254 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/freebox.py', function reboot
2021-04-15 00:22:18.306 Error: (Freebox) ----> Line 97 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/freebox.py', function com
2021-04-15 00:22:18.306 Error: (Freebox) ----> Line 41 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/freebox.py', function _com
2021-04-15 00:22:18.306 Error: (Freebox) ----> Line 222 in '/usr/lib/python3.7/urllib/request.py', function urlopen
2021-04-15 00:22:18.306 Error: (Freebox) ----> Line 531 in '/usr/lib/python3.7/urllib/request.py', function open
2021-04-15 00:22:18.306 Error: (Freebox) ----> Line 641 in '/usr/lib/python3.7/urllib/request.py', function http_response
2021-04-15 00:22:18.306 Error: (Freebox) ----> Line 569 in '/usr/lib/python3.7/urllib/request.py', function error
2021-04-15 00:22:18.306 Error: (Freebox) ----> Line 503 in '/usr/lib/python3.7/urllib/request.py', function _call_chain
2021-04-15 00:22:18.306 Error: (Freebox) ----> Line 649 in '/usr/lib/python3.7/urllib/request.py', function http_error_default
Quelqu'un a déjà eu ces erreurs? Une idée de là où ça peut venir?

Re: Nouveau Plugin Freebox

Publié : 15 avr. 2021, 06:59
par Keros
Il semblerait que les erreurs soient liées à Python.

Quel est ton système et quelle est ta version de Python ?

Re: Nouveau Plugin Freebox

Publié : 15 avr. 2021, 14:18
par doum
Je suis sur la version 2020.2 de domoticz sur raspberry et ma version de python est 3.7.3.

Re: Nouveau Plugin Freebox

Publié : 15 avr. 2021, 17:29
par doum
Je viens de voir que la version 3.9.4 de python existait. Mettre à jour la dernière version peut résoudre le problème?

Re: Nouveau Plugin Freebox

Publié : 05 janv. 2022, 20:57
par garycooper
Bonjour, j'ai une Freebox Revolution et depuis plusiquers jours le plugin ne fonctionne plus. J'ai tenté de le relancer mais j'ai l'erreur suivante
Freebox: (Freebox) OnStart error: HTTP Error 403: Forbidden
alors que la TOKEN est présent
Je n'ai pas fait de mise à jour de python ni de Domoticz (je suis sur la version stable 2021.1).

Le plugin n'apparaît pas dans les applications autorisées sur l'interface de la freebox. J'ai dû le supprimer par erreur ...
J'ai tenté de refaire une installation mais je n'ai pas la demande d'autorisation qui apparait sur la freebox et
cette fois j'ai le message d'erreur
OnStart error: HTTP Error 404: Not Found

Re: Nouveau Plugin Freebox

Publié : 05 janv. 2022, 23:13
par Supermat
De mémoire, pour redemander l’autorisation à la Freebox, il faut passer par la création d’un nouveau token et donc simplement l’aider Le champs token vide.

Re: Nouveau Plugin Freebox

Publié : 06 janv. 2022, 06:47
par garycooper
Bonjour Supermat, j'ai tenté en recréant un matériel avec le plugin Freebox (après avoir désactivé le premier) mais sans succès : erreur 404. J'ai vérifié l'interface Freebox et j'ai bien coché l'autorisation d'applications.

Re: Nouveau Plugin Freebox

Publié : 18 juin 2022, 08:29
par rbn31
Bonjour,
Tout d'abord super ce plugins ;)
S'installe sans soucis...
Par contre sur la mini, la fonction reboot ne fonctionne pas :

Code : Tout sélectionner

2022-06-18 06:20:59.825 Error: freebox: Call to function 'onCommand' failed, exception details:
2022-06-18 06:20:59.828 Error: freebox: Traceback (most recent call last):                 
2022-06-18 06:20:59.829 Error: freebox: File "/opt/domoticz/userdata/plugins/PluginDomoticzFreebox/plugin.py", line 322, in onCommand                                                 
2022-06-18 06:20:59.829 Error: freebox: _plugin.onCommand(Unit, Command, Level, Hue)       
2022-06-18 06:20:59.829 Error: freebox: File "/opt/domoticz/userdata/plugins/PluginDomoticzFreebox/plugin.py", line 243, in onCommand                                                 
2022-06-18 06:20:59.829 Error: freebox: f.reboot()                                         
2022-06-18 06:20:59.829 Error: freebox: File "/opt/domoticz/userdata/plugins/PluginDomoticzFreebox/freebox.py", line 287, in reboot                                                   
2022-06-18 06:20:59.829 Error: freebox: v_result = self.com("system/reboot/")              
2022-06-18 06:20:59.829 Error: freebox: File "/opt/domoticz/userdata/plugins/PluginDomoticzFreebox/freebox.py", line 97, in com                                                       
2022-06-18 06:20:59.829 Error: freebox: return self._com(method,data,{"X-Fbx-App-Auth": self.session})                                                                                
2022-06-18 06:20:59.829 Error: freebox: File "/opt/domoticz/userdata/plugins/PluginDomoticzFreebox/freebox.py", line 41, in _com                                                      
2022-06-18 06:20:59.829 Error: freebox: res = urlopen(request,timeout=4).read()            
2022-06-18 06:20:59.829 Error: freebox: File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
2022-06-18 06:20:59.829 Error: freebox: return opener.open(url, data, timeout)             
2022-06-18 06:20:59.830 Error: freebox: File "/usr/lib/python3.7/urllib/request.py", line 531, in open                                                                                2022-06-18 06:20:59.830 Error: freebox: response = meth(req, response)                     
2022-06-18 06:20:59.830 Error: freebox: File "/usr/lib/python3.7/urllib/request.py", line 641, in http_response                                                                       
2022-06-18 06:20:59.830 Error: freebox: 'http', request, response, code, msg, hdrs)        
2022-06-18 06:20:59.830 Error: freebox: File "/usr/lib/python3.7/urllib/request.py", line 569, in error                                                                               2022-06-18 06:20:59.830 Error: freebox: return self._call_chain(*args)                     
2022-06-18 06:20:59.830 Error: freebox: File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain                                                                         2022-06-18 06:20:59.830 Error: freebox: result = func(*args)                               
2022-06-18 06:20:59.831 Error: freebox: File "/usr/lib/python3.7/urllib/request.py", line 649, in http_error_default                                                                  
2022-06-18 06:20:59.831 Error: freebox: raise HTTPError(req.full_url, code, msg, hdrs, fp) 
2022-06-18 06:20:59.831 Error: freebox: urllib.error.HTTPError: HTTP Error 404: Not Found
Je vais essaye de debugger... PB de droit apparemment.

Cordialement.