Erreur avec les appareils Freebox sur Homebridge

Hello !

J’essaie désespérement de faire fonctionner Homebridge depuis 2 mois, il a toujours fonctionné correctement mais un jour j’ai du changer de domicile sur l’application Maison d’Apple, et à partir de là tout est parti en cacahuete, résultat, aujourd’hui, j’ai tout reinstallé le plugin Freebox_OS et Homebridge, c’est pire qu’avant.

J’obtiens à chaque démarrage du daemon de Homebridge des erreurs en lien avec mes objets, je précise : je n’ai pas touché à la configuration de ceux-ci, elle est par défaut et elle fonctionne depuis Jeedom directement.

Voici les logs :

[5/5/2022, 7:43:22 PM] [Jeedom Delta] ┌──── Chambre 1 > Volet de la chambre (31)
[5/5/2022, 7:43:22 PM] [Jeedom Delta] [ERROR] Erreur de la fonction AccessoireCreateHomebridge : TypeError: Cannot read property 'invertBinary' of undefined
    at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:521:36
    at Array.forEach (<anonymous>)
    at JeedomPlatform.AccessoireCreateHomebridge (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:497:26)
    at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:281:11
    at Array.map (<anonymous>)
    at JeedomPlatform.JeedomDevices2HomeKitAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:275:12)
    at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:144:12
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
TypeError: Cannot read property 'invertBinary' of undefined
    at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:521:36
    at Array.forEach (<anonymous>)
    at JeedomPlatform.AccessoireCreateHomebridge (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:497:26)
    at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:281:11
    at Array.map (<anonymous>)
    at JeedomPlatform.JeedomDevices2HomeKitAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:275:12)
    at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:144:12
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
[5/5/2022, 7:43:22 PM] [Jeedom Delta] [ERROR] Erreur de la fonction JeedomDevices2HomeKitAccessories : TypeError: Cannot read property 'UUID' of undefined
    at JeedomPlatform.AccessoireCreateHomebridge (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:2709:114)
    at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:281:11
    at Array.map (<anonymous>)
    at JeedomPlatform.JeedomDevices2HomeKitAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:275:12)
    at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:144:12
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
TypeError: Cannot read property 'UUID' of undefined
    at JeedomPlatform.AccessoireCreateHomebridge (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:2709:114)
    at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:281:11
    at Array.map (<anonymous>)
    at JeedomPlatform.JeedomDevices2HomeKitAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:275:12)
    at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:144:12
    at processTicksAndRejections (internal/process/task_queues.js:95:5)

Au début j’avais cette erreur (Erreur de la fonction AccessoireCreateHomebridge : TypeError: Cannot read property ‹ invertBinary › of undefined) sur le 5ème ou 6ème accessoire, mais maintenant c’est dès le premier et je ne sais pas quoi faire.

Merci par avance pour vos lumières :slight_smile:

Bonjour, pouvez vous donner un peu plus du log ? Genre les 10 lignes précédant l’erreur en mode debug ?

e[0;37m[5/5/2022, 7:43:25 PM] e[0me[0;36m[Homebridge UI]e[0m e[0;33mHomebridge Config UI X v4.43.2 is listening on :: port 33221e[0m
e[0;37m[5/6/2022, 1:10:51 AM] e[0me[0;36m[Homebridge UI]e[0m Running job to cleanup config.json backup files older than 60 days...
[5/6/2022, 8:53:36 PM] Got SIGTERM, shutting down Homebridge...
2022-05-06T20:53:53.478Z ciao:init Loading ciao v1.1.4...
2022-05-06T20:53:55.536Z HAP-NodeJS:Advertiser Initializing HAP-NodeJS v0.10.0 ...
[5/6/2022, 8:53:56 PM] Loaded config.json with 0 accessories and 2 platforms.
[5/6/2022, 8:53:57 PM] Loaded 6 cached accessories from cachedAccessories.
[5/6/2022, 8:53:57 PM] ---
[5/6/2022, 8:53:59 PM] Loaded plugin: @nebz/homebridge-jeedom@v1.6.0
[5/6/2022, 8:54:03 PM] Plugin '@nebz/homebridge-jeedom' tried to register with an incorrect plugin identifier: 'homebridge-jeedom'. Please report this to the developer!
[5/6/2022, 8:54:03 PM] Registering platform '@nebz/homebridge-jeedom.Jeedom'
[5/6/2022, 8:54:03 PM] ---
[5/6/2022, 8:54:08 PM] Loaded plugin: homebridge-alexa@0.5.63
[5/6/2022, 8:54:08 PM] Registering platform 'homebridge-alexa.Alexa'
[5/6/2022, 8:54:08 PM] ---
[5/6/2022, 8:54:08 PM] Loaded plugin: homebridge-camera-ffmpeg@3.1.4
[5/6/2022, 8:54:08 PM] Registering platform 'homebridge-camera-ffmpeg.Camera-ffmpeg'
[5/6/2022, 8:54:08 PM] ---
[5/6/2022, 8:54:09 PM] Loaded plugin: homebridge-config-ui-x@4.43.2
[5/6/2022, 8:54:09 PM] Registering platform 'homebridge-config-ui-x.config'
[5/6/2022, 8:54:09 PM] ---
[5/6/2022, 8:54:09 PM] Loaded plugin: homebridge-gsh@2.2.0
[5/6/2022, 8:54:09 PM] Registering platform 'homebridge-gsh.google-smarthome'
[5/6/2022, 8:54:09 PM] ---
[5/6/2022, 8:54:09 PM] Loading 2 platforms...
[5/6/2022, 8:54:09 PM] [Jeedom Delta] Initializing Jeedom platform...
[5/6/2022, 8:54:09 PM] [Jeedom Delta] debugLevel:100
[5/6/2022, 8:54:09 PM] [Jeedom Delta] [INFO] Adresse Jeedom bien configurée :http://192.168.0.40
[5/6/2022, 8:54:11 PM] [Config] Initializing config platform...
[5/6/2022, 8:54:11 PM] [Config] Spawning homebridge-config-ui-x with PID 6433
[5/6/2022, 8:54:11 PM] [Jeedom Delta] [DEBUG] Accessoire en cache: Volet de la chambre du haut
[5/6/2022, 8:54:11 PM] [Jeedom Delta] [DEBUG] Accessoire en cache: Volet de la chambre du bas
[5/6/2022, 8:54:11 PM] [Jeedom Delta] [DEBUG] Accessoire en cache: Volet de la chambre de AAA
[5/6/2022, 8:54:11 PM] [Jeedom Delta] [DEBUG] Accessoire en cache: Détecteur de fermeture
[5/6/2022, 8:54:11 PM] [Jeedom Delta] [DEBUG] Accessoire en cache: Garage
[5/6/2022, 8:54:11 PM] [Jeedom Delta] [DEBUG] Accessoire en cache: Système d'alarme
[5/6/2022, 8:54:11 PM] [Jeedom Delta] Synchronisation Jeedom <> Homebridge...
[5/6/2022, 8:54:11 PM] Publishing bridge accessory (name: Jeedom Delta, publishInfo: {
  username: 'DB:3D:46:FE:A1:B3',
  port: 51826,
  pincode: '***-**-***',
  category: 2,
  bind: undefined,
  mdns: undefined,
  addIdentifyingMaterial: true,
  advertiser: 'bonjour-hap',
  setupID: 'A1B3'
}).
2022-05-06T20:54:11.207Z HAP-NodeJS:Advertiser Preparing Advertiser for 'Jeedom Delta 2623' using bonjour-hap backend!
Setup Payload:
X-HM://0023ISYWYA1B3
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 031-45-154 │     
    └────────────┘     
                       
2022-05-06T20:54:11.220Z HAP-NodeJS:EventedHTTPServer Server listening on [::]:51826
2022-05-06T20:54:11.221Z HAP-NodeJS:Advertiser Starting to advertise 'Jeedom Delta 2623' using bonjour-hap backend!
[5/6/2022, 8:54:11 PM] Homebridge v1.4.0 (HAP v0.10.0) (Jeedom Delta) is running on port 51826.
[5/6/2022, 8:54:11 PM] [Jeedom Delta] [DEBUG] Enumération des objets Jeedom (Pièces)...
[5/6/2022, 8:54:11 PM] [Jeedom Delta] [DEBUG] Pièce > Maison
[5/6/2022, 8:54:11 PM] [Jeedom Delta] [DEBUG] Pièce > Chambre 1
[5/6/2022, 8:54:11 PM] [Jeedom Delta] [DEBUG] Pièce > Chambre 2
[5/6/2022, 8:54:11 PM] [Jeedom Delta] [DEBUG] Pièce > Chambre 3
[5/6/2022, 8:54:11 PM] [Jeedom Delta] [DEBUG] Pièce > Salon
[5/6/2022, 8:54:11 PM] [Jeedom Delta] Enumération des scénarios Jeedom...
[5/6/2022, 8:54:11 PM] [Jeedom Delta] Enumération des périphériques Jeedom...
[5/6/2022, 8:54:11 PM] [Jeedom Delta] [DEBUG] eqLogic > {"id":"31","name":"Volet de la chambre","logicalId":"44","generic_type":null,"object_id":"2","eqType_name":"Freebox_OS","isVisible":0,"isEnable":1,"order":"1","comment":null,"tags":null,"status":{"lastCommunication":"2022-05-06 22:50:02","timeout":0,"warning":0,"danger":0},"sendToHomebridge":1,"services":{"flap":[{"state":{"id":"317","logicalId":"3","generic_type":"FLAP_STATE","eqType":"Freebox_OS","name":"Etat","order":"0","type":"info","subType":"binary","eqLogic_id":"31","isVisible":1,"currentValue":0,"configuration":{"phpType":"integer"}}},null,{"up":{"id":"318","logicalId":"0","generic_type":"FLAP_UP","eqType":"Freebox_OS","name":"Haut","order":"2","type":"action","subType":"other","eqLogic_id":"31","value":null,"isVisible":1}},{"stop":{"id":"319","logicalId":"1","generic_type":"FLAP_STOP","eqType":"Freebox_OS","name":"Stop","order":"3","type":"action","subType":"other","eqLogic_id":"31","value":null,"isVisible":1}},{"down":{"id":"320","logicalId":"2","generic_type":"FLAP_DOWN","eqType":"Freebox_OS","name":"Bas","order":"4","type":"action","subType":"other","eqLogic_id":"31","value":null,"isVisible":1}}]},"numSwitches":0}
[5/6/2022, 8:54:11 PM] [Jeedom Delta] ┌──── Chambre 1 > Volet de la chambre (31)
[5/6/2022, 8:54:11 PM] [Jeedom Delta] [ERROR] Erreur de la fonction AccessoireCreateHomebridge : TypeError: Cannot read property 'invertBinary' of undefined
    at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:521:36
    at Array.forEach (<anonymous>)
    at JeedomPlatform.AccessoireCreateHomebridge (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:497:26)
    at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:281:11
    at Array.map (<anonymous>)
    at JeedomPlatform.JeedomDevices2HomeKitAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:275:12)
    at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:144:12
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
TypeError: Cannot read property 'invertBinary' of undefined
    at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:521:36
    at Array.forEach (<anonymous>)
    at JeedomPlatform.AccessoireCreateHomebridge (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:497:26)
    at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:281:11
    at Array.map (<anonymous>)
    at JeedomPlatform.JeedomDevices2HomeKitAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:275:12)
    at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:144:12
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
[5/6/2022, 8:54:11 PM] [Jeedom Delta] [ERROR] Erreur de la fonction JeedomDevices2HomeKitAccessories : TypeError: Cannot read property 'UUID' of undefined
    at JeedomPlatform.AccessoireCreateHomebridge (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:2709:114)
    at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:281:11
    at Array.map (<anonymous>)
    at JeedomPlatform.JeedomDevices2HomeKitAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:275:12)
    at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:144:12
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
TypeError: Cannot read property 'UUID' of undefined
    at JeedomPlatform.AccessoireCreateHomebridge (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:2709:114)
    at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:281:11
    at Array.map (<anonymous>)
    at JeedomPlatform.JeedomDevices2HomeKitAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:275:12)
    at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:144:12
    at processTicksAndRejections (internal/process/task_queues.js:95:5)

Bonsoir,

Voici les logs DEBUG dès le démarrage :slight_smile:

Merci !

Je crois avoir trouvé le responsable, mais je ne sais pas comment corriger le problème.

Avec le mode débug, j’ai récupéré le cache de Homebridge, et j’ai repéré ça :

Il n’a clairement rien à faire ici ce null, et au niveau de sa position, il correspond à la commande Rafraichir, qui en effet ne sert à rien pour Homebridge.

Sauf qu’elle n’apparait pas à l’endroit où je peux supprimer les commandes :

Et quand je vais dans Configuration avancée de l’objet, je l’ai mais aucun bouton supprimer… :

Si quelqu’un pouvait m’éclairer, ça serait super !

Merci.

Non aucun rapport, relancez vos dépendances c’est resolu

Le problème venait de ceci qui était manquant sur l’autre volet « Volet de la chambre » (sur votre capture vous n’êtes pas sur le bon volet)

Normalement c’est sensé être là pour toute commande binaire mais j’ai modifié mon code pour juste ne pas planter s’il n’est pas là…

Volet de la chambre = Volet de la chambre du haut, je l’ai renommé sur Homebridge en fait.

Je relance pour essayer.

Ok tenez moi au courant

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.