Nouveau Plugin Freebox

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 <\>.
DIE
Messages : 2
Inscription : 04 oct. 2019, 22:22

Re: Nouveau Plugin Freebox

Message par DIE »

bonjour à tous

cela fait maintenant plusieurs jours que je cherche à faire fonctionner ce plugin mais rien à faire :(
après installation du plugin je lance la détection des nouveaux matériels pour 5 minutes puis
j'arrête et relance le plugin et là rien ne se passe et dans la log j'ai ces messages d'erreur

2019-10-31 23:02:33.643 Error: (Freebox Server) 'onStart' failed 'PermissionError'.
2019-10-31 23:02:33.643 Error: (Freebox Server) ----> Line 266 in '/config/plugins/PluginDomoticzFreebox/plugin.py', function onStart
2019-10-31 23:02:33.643 Error: (Freebox Server) ----> Line 131 in '/config/plugins/PluginDomoticzFreebox/plugin.py', function onStart
2019-10-31 23:02:33.643 Error: (Freebox Server) ----> Line 72 in '/config/plugins/PluginDomoticzFreebox/plugin.py', function getOrCreateUnitIdForDevice
2019-10-31 23:02:33.643 Error: (Freebox Server) ----> Line 50 in '/config/plugins/PluginDomoticzFreebox/plugin.py', function saveDicoUnitDevice
Supermat
Messages : 59
Inscription : 01 mai 2016, 11:34
Contact :

Re: Nouveau Plugin Freebox

Message par Supermat »

Comment as tu installé le plugin.
Celui ci a t il les droit d'écrire un fichier dans son répertoire?
'PermissionError' ==> visiblement pas
Ajoute les droit en écriture dans le répertoire du plugin
Raspberry avec Domoticz + RfLink, IR RM Mini 3, prise Wifi Maginon, Foscam, OWL, diverses sonde chinoise (température, inondation), station météo Lacrosse Technology, Hue, Volet Somfy, gateway Xiaomi + divers capteurs
DIE
Messages : 2
Inscription : 04 oct. 2019, 22:22

Re: Nouveau Plugin Freebox

Message par DIE »

c'est bon :)
le pb ne venait pas des droits sur le répertoires plugins et les sous répertoires car ils étaient déjà en 777.
Le plugin n'arrivait pas à créer les devices dans domoticz, ne sachant pas quel répertoire cibler j'ai
mis tous mes répertoires domoticz en 777 (pourriez-vous me préciser quel répertoire cibler afin de ne pas laisser tous les autres en 777) et là ça a fonctionné à part
"le dipositif de type PresenceDevice associé à n'a pas été créé dans Domoticz. Veuillez désactiver et réactiver le plugin, en autorisant l'ajout de nouveaux dispositifs."

Pour info je fais tourner domoticz sous docker avec l'image linuxserver/domoticz
Merci pour votre aide sur ce forum
bonne soirée
vrolland
Messages : 43
Inscription : 25 mars 2015, 16:35
Localisation : RP 78

Re: Nouveau Plugin Freebox

Message par vrolland »

Quelqu'un aurait il testé ce plugin avec la Freebox Delta ?
Pi3 - Raspbian wheezy 4.14.98-v7
Domoticz V4.10619
Supermat
Messages : 59
Inscription : 01 mai 2016, 11:34
Contact :

Re: Nouveau Plugin Freebox

Message par Supermat »

DIE a écrit : 10 nov. 2019, 00:34 pourriez-vous me préciser quel répertoire cibler afin de ne pas laisser tous les autres en 777
Le plugin écrit ce fichier là, sans précision de répertoire : devicemapping.json.
Si tu le trouves, tu sauras quel est le répertoire concerné. Et pourra mettre les bonnes restrictions.
Raspberry avec Domoticz + RfLink, IR RM Mini 3, prise Wifi Maginon, Foscam, OWL, diverses sonde chinoise (température, inondation), station météo Lacrosse Technology, Hue, Volet Somfy, gateway Xiaomi + divers capteurs
aachen_france
Messages : 10
Inscription : 04 juin 2019, 02:57

Re: Nouveau Plugin Freebox

Message par aachen_france »

Bonjour,

J'ai installé le plugin mais j'ai cette erreur:
'onHeartbeat' failed 'ZeroDivisionError'

voici les log:

2020-02-25 13:13:14.604 Status: (freebox) Started.
2020-02-25 13:13:15.293 Status: (freebox) Entering work loop.
2020-02-25 13:13:15.293 Status: (freebox) Initialized version 1.1.2, author 'supermat'
2020-02-25 13:13:20.301 (freebox) Token déjà présent. OK.
2020-02-25 13:13:20.955 Error: (freebox) 'onStart' failed 'ZeroDivisionError'.
2020-02-25 13:13:20.955 Error: (freebox) ----> Line 266 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/plugin.py'
2020-02-25 13:13:20.955 Error: (freebox) ----> Line 128 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/plugin.py'
2020-02-25 13:13:20.955 Error: (freebox) ----> Line 122 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/freebox.py'


J'ai lu le topic mais je ne retrouve pas ce probleme.

Une idée?

Merci
aachen
sphinxou
Messages : 231
Inscription : 03 déc. 2016, 13:37

Re: Nouveau Plugin Freebox

Message par sphinxou »

bonjour

depuis hier j'ai cette erreur :


2020-03-18 09:11:13.477 Error: fr hardware (10) thread seems to have ended unexpectedly

le hardware 10 est le plugin freebox

merci pour votre aide
Domoticz 4.9700/ rfxcom /sonde diy/raspberry pi3+HDD/cirusms/contact de porte diy
titis14
Messages : 171
Inscription : 22 juin 2018, 14:09

Re: Nouveau Plugin Freebox

Message par titis14 »

Tu n'as pas débranché un HDD externe par exemple ?

Supermat j'ai fait un article sur ton plugin: https://www.cachem.fr/domoticz-freebox-mini4k/
Lolo.78
Messages : 1
Inscription : 22 mars 2020, 12:31

Re: Nouveau Plugin Freebox

Message par Lolo.78 »

Bonjour,

Je viens de tester le script sur ma Freebox Delta.
La reconnaissance de la box et l'appairage se sont bien passé. Les dispositifs ne se créés pas.
dans les logs, j'ai les messages suivant :
2020-03-21 09:52:57.168 Status: (FreeBox Delta) Started.
2020-03-21 09:52:57.635 Status: (FreeBox Delta) Entering work loop.
2020-03-21 09:52:57.635 Status: (FreeBox Delta) Initialized version 1.1.2, author 'supermat'
2020-03-21 09:53:02.643 (FreeBox Delta) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2020-03-21 09:53:02.644 (FreeBox Delta) 'Language':'fr'
2020-03-21 09:53:02.644 (FreeBox Delta) 'DomoticzBuildTime':'2019-05-09 13:04:08'
2020-03-21 09:53:02.644 (FreeBox Delta) 'DomoticzHash':'MonHashxxxxx'
2020-03-21 09:53:02.644 (FreeBox Delta) 'Version':'1.1.2'
2020-03-21 09:53:02.644 (FreeBox Delta) 'Name':'FreeBox Delta'
2020-03-21 09:53:02.644 (FreeBox Delta) 'Author':'supermat'
2020-03-21 09:53:02.645 (FreeBox Delta) 'Database':'/home/pi/domoticz/domoticz.db'
2020-03-21 09:53:02.645 (FreeBox Delta) 'DomoticzVersion':'4.10717'
2020-03-21 09:53:02.645 (FreeBox Delta) 'Key':'Freebox'
2020-03-21 09:53:02.645 (FreeBox Delta) 'Mode6':'Debug'
2020-03-21 09:53:02.645 (FreeBox Delta) 'Port':'80'
2020-03-21 09:53:02.645 (FreeBox Delta) 'HardwareID':'20'
2020-03-21 09:53:02.646 (FreeBox Delta) 'HomeFolder':'/home/pi/domoticz/plugins/PluginDomoticzFreebox/'
2020-03-21 09:53:02.646 (FreeBox Delta) 'Mode1':'montokenxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
2020-03-21 09:53:02.646 (FreeBox Delta) 'UserDataFolder':'/home/pi/domoticz/'
2020-03-21 09:53:02.646 (FreeBox Delta) 'Address':'http://mafreebox.free.fr'
2020-03-21 09:53:02.646 (FreeBox Delta) 'StartupFolder':'/home/pi/domoticz/'
2020-03-21 09:53:02.646 (FreeBox Delta) Device count: 0
2020-03-21 09:53:02.647 (FreeBox Delta) Token déjà présent. OK.
2020-03-21 09:53:02.762 Error: (FreeBox Delta) 'onStart' failed 'ZeroDivisionError'.
2020-03-21 09:53:02.762 Error: (FreeBox Delta) ----> Line 266 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/plugin.py', function onStart
2020-03-21 09:53:02.762 Error: (FreeBox Delta) ----> Line 128 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/plugin.py', function onStart
2020-03-21 09:53:02.762 Error: (FreeBox Delta) ----> Line 122 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/freebox.py', function diskinfo


Ma config :
Freebox delta 3 DD interne, Pas de raid.
pour vous aider, voici le json pour : http://mafreebox.freebox.fr/api/v4/storage/disk/

{"success":true,"result":[{"type":"sata","total_bytes":1000000000000,"connector":0,"id":1000,"active_duration":2,"partitions":[{"fstype":"raid","total_bytes":0,"label":"Volume 1000Go","id":1000,"internal":false,"fsck_result":"no_run_yet","state":"umounted","disk_id":1000,"free_bytes":0,"used_bytes":0,"path":"L1ZvbHVtZSAxMDAwR28="}],"idle_duration":0,"state":"disabled","idle":false,"spinning":true,"model":"WDC WD10JUCX-56WPNY0","table_type":"raid","temp":48,"serial":"WD-WXD1A6820C9E","firmware":"02.01A02"},{"type":"raid","total_bytes":1000000000000,"connector":0,"id":2000,"active_duration":0,"partitions":[{"fstype":"ext4","total_bytes":984340000000,"label":"Freebox","id":2000,"internal":false,"fsck_result":"no_run_yet","state":"mounted","disk_id":2000,"free_bytes":160520000000,"used_bytes":823800000000,"path":"L0ZyZWVib3g="}],"idle_duration":0,"state":"enabled","idle":false,"spinning":false,"model":"","table_type":"superfloppy","temp":0,"serial":"","firmware":""},{"type":"sata","total_bytes":1000000000000,"connector":1,"id":3000,"active_duration":0,"partitions":[{"fstype":"ext4","total_bytes":984370000000,"label":"FreeBoxDD3","id":3001,"internal":false,"fsck_result":"no_run_yet","state":"mounted","disk_id":3000,"free_bytes":984280000000,"used_bytes":75120000,"path":"L0ZyZWVCb3hERDM="}],"idle_duration":99112,"state":"enabled","idle":true,"spinning":false,"model":"HGST HTS541010A9E680","table_type":"gpt","temp":40,"serial":"150411JA1042Z6008YZG","firmware":"JA0OA5M0"},{"type":"sata","total_bytes":2000000000000,"connector":2,"id":4000,"active_duration":0,"partitions":[{"fstype":"ntfs","total_bytes":2000000000000,"label":"FreeBoxDD2","id":4001,"internal":false,"fsck_result":"no_run_yet","state":"mounted","disk_id":4000,"free_bytes":533540000000,"used_bytes":1460000000000,"path":"L0ZyZWVCb3hERDI="}],"idle_duration":98934,"state":"enabled","idle":true,"spinning":false,"model":"ST2000LM015-2E8174","table_type":"msdos","temp":38,"serial":"WDZJPLPD","firmware":"0001"}]}

Vous pouvez me contacter si besoin.
Merci de votre aide.
Pepee64
Messages : 11
Inscription : 26 mars 2020, 09:25

Re: Nouveau Plugin Freebox

Message par Pepee64 »

Bonjour tout le monde,
Diq moi Supermat : une idée dans ta todolist : 2 devices pour les appels entrants et sortants (un peu comme avec jeedom).
Sinon, excellent, tout Ok. Merci
Répondre