HomeBridge Plugin supplémentaires

C’est fait comme cela :

{
    "platform": "BroadlinkRM",
    "name": "Broadlink RM",
    "accessories": {
        "name": "TV",
        "type": "switch",
        "data": {
             "Eteindre": "260050000001279512141114111412381213123911391213123812391114123813131139113913121213133812131213133713121313121312381312133713381213133713371338130005280001284a13000d050000000000000000",
            "Allumer": "2600500000012596121410151015103a1114113a11391015103a113a1015113911141139113a11141015103a11141115103a101511141114113a1015103a11391114113a103a11391200052a0001254c12000d050000000000000000"
        }
 }
}

Par contre le log me dis :

[3/16/2021, 11:08:48 AM] Your config.json contains an illegal accessory configuration object at position 1. Missing property ‹ accessory ›. Skipping entry…

Et quand je veux rajouter le terme « accessory » dans platform je ne peux pas …

non aucun problème :
image

c’est une plateforme !! donc tu dois mettre dans les plateformes supplémentaires

mais là oui le plugin en question met des accessories dans une plateforme c’est un peu déroutant :wink:

C’est bien ce que j’ai fais actuellement :

Onglet Platforms :

{
    "platform": "BroadlinkRM",
    "name": "Broadlink RM",
    "accessories": {
        "name": "TV",
        "type": "switch",
        "data": {
            "Eteindre": "260050000001279512141114111412381213123911391213123812391114123813131139113913121213133812131213133713121313121312381312133713381213133713371338130005280001284a13000d050000000000000000",
            "Allumer": "2600500000012596121410151015103a1114113a11391015103a113a1015113911141139113a11141015103a11141115103a101511141114113a1015103a11391114113a103a11391200052a0001254c12000d050000000000000000"
        }
    }
}

Onglet Accessoire : (je ne peux pas le laisser vide sinon je peux pas le sauvegarder donc)

{
}

Et du coups les logs :

[3/16/2021, 11:23:20 AM] Got SIGTERM, shutting down Homebridge...
[3/16/2021, 11:23:34 AM] Loaded config.json with 1 accessories and 3 platforms.
[3/16/2021, 11:23:34 AM] ---
[3/16/2021, 11:23:35 AM] Loaded plugin: homebridge-jeedom@1.5.0
[3/16/2021, 11:23:38 AM] Registering platform 'homebridge-jeedom.Jeedom'
[3/16/2021, 11:23:38 AM] ---
[3/16/2021, 11:23:42 AM] Loaded plugin: homebridge-alexa@0.5.26
[3/16/2021, 11:23:42 AM] Registering platform 'homebridge-alexa.Alexa'
[3/16/2021, 11:23:42 AM] ---
[3/16/2021, 11:23:42 AM] Loaded plugin: homebridge-broadlink-rm-pro@4.4.1
[3/16/2021, 11:23:42 AM] Registering platform 'homebridge-broadlink-rm-pro.BroadlinkRM'
[3/16/2021, 11:23:42 AM] ---
[3/16/2021, 11:23:43 AM] Loaded plugin: homebridge-camera-ffmpeg@3.0.3
[3/16/2021, 11:23:43 AM] Registering platform 'homebridge-camera-ffmpeg.Camera-ffmpeg'
[3/16/2021, 11:23:43 AM] ---
[3/16/2021, 11:23:43 AM] Loaded plugin: homebridge-config-ui-x@4.38.0
[3/16/2021, 11:23:43 AM] Registering platform 'homebridge-config-ui-x.config'
[3/16/2021, 11:23:43 AM] ---
[3/16/2021, 11:23:43 AM] Loaded plugin: homebridge-gsh@2.0.1
[3/16/2021, 11:23:43 AM] Registering platform 'homebridge-gsh.google-smarthome'
[3/16/2021, 11:23:43 AM] ---
[3/16/2021, 11:23:43 AM] Loading 3 platforms...
[3/16/2021, 11:23:43 AM] [Jeedom] Initializing Jeedom platform...
[3/16/2021, 11:23:43 AM] [Jeedom] debugLevel:400
[3/16/2021, 11:23:43 AM] [Config] Initializing config platform...
[3/16/2021, 11:23:43 AM] [Config] Spawning homebridge-config-ui-x with PID 25606
[3/16/2021, 11:23:43 AM] [Broadlink RM] Initializing BroadlinkRM platform...
[3/16/2021, 11:23:43 AM] [Broadlink RM] e[35m[INFO]e[0m Automatically discovering Broadlink RM devices.
[3/16/2021, 11:23:43 AM] Loading 1 accessories...
[3/16/2021, 11:23:43 AM] Your config.json contains an illegal accessory configuration object at position 1. Missing property 'accessory'. Skipping entry...
[3/16/2021, 11:23:43 AM] [Jeedom] Synchronisation Jeedom <> Homebridge...
(node:25128) UnhandledPromiseRejectionWarning: TypeError: config.accessories.forEach is not a function
    at BroadlinkRMPlatform.addAccessories (/usr/lib/node_modules/homebridge-broadlink-rm-pro/platform.js:71:24)
    at BroadlinkRMPlatform.accessories (/usr/lib/node_modules/homebridge-broadlink-rm-pro/base/platform.js:28:16)
    at /var/www/html/plugins/homebridge/resources/node_modules/homebridge/src/server.ts:415:24
    at new Promise (<anonymous>)
    at Server.loadPlatformAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge/src/server.ts:414:12)
    at /var/www/html/plugins/homebridge/resources/node_modules/homebridge/src/server.ts:402:28
    at Array.forEach (<anonymous>)
    at Server.loadPlatforms (/var/www/html/plugins/homebridge/resources/node_modules/homebridge/src/server.ts:374:27)
    at Server.start (/var/www/html/plugins/homebridge/resources/node_modules/homebridge/src/server.ts:153:29)
    at cli (/var/www/html/plugins/homebridge/resources/node_modules/homebridge/src/cli.ts:80:10)
(node:25128) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:25128) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
e[35m[INFO]e[0m Adding RF Support to device 780f77633d0f with type 279d
[3/16/2021, 11:23:44 AM] [Broadlink RM] e[35m[INFO]e[0m Discovered Broadlink RM3 Pro Plus (279d) at 192.168.1.68 (78:0f:77:63:3d:0f)
[3/16/2021, 11:23:45 AM] [Broadlink RM] 
[3/16/2021, 11:23:45 AM] [Broadlink RM] **************************************************************************************************************
[3/16/2021, 11:23:45 AM] [Broadlink RM] ** Welcome to version e[32m4.4.1e[0m of the e[34mHomebridge Broadlink RM Plugine[0m!
[3/16/2021, 11:23:45 AM] [Broadlink RM] ** 
[3/16/2021, 11:23:45 AM] [Broadlink RM] ** Find out what's in the latest release here: e[4mhttps://github.com/kiwi-cam/homebridge-broadlink-rm/blob/master/CHANGELOG.mde[0m
[3/16/2021, 11:23:45 AM] [Broadlink RM] ** 
[3/16/2021, 11:23:45 AM] [Broadlink RM] ** If you like this plugin then please star it on GitHub or better yet
[3/16/2021, 11:23:45 AM] [Broadlink RM] ** buy me a drink using Paypal e[4mhttps://paypal.me/kiwicamRMe[0m.
[3/16/2021, 11:23:45 AM] [Broadlink RM] **
[3/16/2021, 11:23:45 AM] [Broadlink RM] ** You can disable this message by adding "hideWelcomeMessage": true to the config (see config-sample.json).
[3/16/2021, 11:23:45 AM] [Broadlink RM] **
[3/16/2021, 11:23:45 AM] [Broadlink RM] **************************************************************************************************************
[3/16/2021, 11:23:45 AM] [Broadlink RM] 
[3/16/2021, 11:23:47 AM] [Jeedom] ┌────RAMASSE-MIETTES─────
[3/16/2021, 11:23:47 AM] [Jeedom] │ (Suppression des accessoires qui sont dans le cache mais plus dans jeedom (peut provenir de renommage ou changement de pièce))
[3/16/2021, 11:23:47 AM] [Jeedom] │ Rien à supprimer
[3/16/2021, 11:23:47 AM] [Jeedom] └────────────────────────
[3/16/2021, 11:23:47 AM] [Jeedom] --== Homebridge est démarré et a intégré 21 accessoires ! (Si vous avez un Warning Avahi, ne pas en tenir compte) ==--

Pas possible de sauvegarder…

et si tu effaces ca dit quoi ?

cas si c’est vide tu dois pas avoir de problème… le problème a été réglé le 9 février en stable…

t’es probablement pas à jour

La même chose, la seule possibilité pour enregistrer est de mettre des {}

t’es pas à jour alors

Effectivement je n’étais pas à jour,

Donc config identique sur platform
Et vide dans accessoire.

Pas d’améliorations dans les logs :

[2021-3-16 11:41:33] Got SIGTERM, shutting down Homebridge...
[3/16/2021, 11:41:45 AM] Loaded config.json with 0 accessories and 3 platforms.
[3/16/2021, 11:41:45 AM] ---
[3/16/2021, 11:41:47 AM] Loaded plugin: homebridge-jeedom@1.5.0
[3/16/2021, 11:41:50 AM] Registering platform 'homebridge-jeedom.Jeedom'
[3/16/2021, 11:41:50 AM] ---
[3/16/2021, 11:41:53 AM] Loaded plugin: homebridge-alexa@0.5.26
[3/16/2021, 11:41:53 AM] Registering platform 'homebridge-alexa.Alexa'
[3/16/2021, 11:41:53 AM] ---
[3/16/2021, 11:41:53 AM] Loaded plugin: homebridge-broadlink-rm-pro@4.4.1
[3/16/2021, 11:41:53 AM] Registering platform 'homebridge-broadlink-rm-pro.BroadlinkRM'
[3/16/2021, 11:41:53 AM] ---
[3/16/2021, 11:41:54 AM] Loaded plugin: homebridge-camera-ffmpeg@3.0.3
[3/16/2021, 11:41:54 AM] Registering platform 'homebridge-camera-ffmpeg.Camera-ffmpeg'
[3/16/2021, 11:41:54 AM] ---
[3/16/2021, 11:41:54 AM] Loaded plugin: homebridge-config-ui-x@4.38.0
[3/16/2021, 11:41:54 AM] Registering platform 'homebridge-config-ui-x.config'
[3/16/2021, 11:41:54 AM] ---
[3/16/2021, 11:41:54 AM] Loaded plugin: homebridge-gsh@2.0.1
[3/16/2021, 11:41:54 AM] Registering platform 'homebridge-gsh.google-smarthome'
[3/16/2021, 11:41:54 AM] ---
[3/16/2021, 11:41:54 AM] Loading 3 platforms...
[3/16/2021, 11:41:54 AM] [Jeedom] Initializing Jeedom platform...
[3/16/2021, 11:41:54 AM] [Jeedom] debugLevel:400
[3/16/2021, 11:41:54 AM] [Config] Initializing config platform...
[3/16/2021, 11:41:55 AM] [Config] Spawning homebridge-config-ui-x with PID 30922
[3/16/2021, 11:41:55 AM] [Broadlink RM] Initializing BroadlinkRM platform...
[3/16/2021, 11:41:55 AM] [Broadlink RM] e[35m[INFO]e[0m Automatically discovering Broadlink RM devices.
[3/16/2021, 11:41:55 AM] [Jeedom] Synchronisation Jeedom <> Homebridge...
(node:30542) UnhandledPromiseRejectionWarning: TypeError: config.accessories.forEach is not a function
    at BroadlinkRMPlatform.addAccessories (/usr/lib/node_modules/homebridge-broadlink-rm-pro/platform.js:71:24)
    at BroadlinkRMPlatform.accessories (/usr/lib/node_modules/homebridge-broadlink-rm-pro/base/platform.js:28:16)
    at /var/www/html/plugins/homebridge/resources/node_modules/homebridge/src/server.ts:415:24
    at new Promise (<anonymous>)
    at Server.loadPlatformAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge/src/server.ts:414:12)
    at /var/www/html/plugins/homebridge/resources/node_modules/homebridge/src/server.ts:402:28
    at Array.forEach (<anonymous>)
    at Server.loadPlatforms (/var/www/html/plugins/homebridge/resources/node_modules/homebridge/src/server.ts:374:27)
    at Server.start (/var/www/html/plugins/homebridge/resources/node_modules/homebridge/src/server.ts:153:29)
    at cli (/var/www/html/plugins/homebridge/resources/node_modules/homebridge/src/cli.ts:80:10)
(node:30542) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:30542) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
e[35m[INFO]e[0m Adding RF Support to device 780f77633d0f with type 279d
[3/16/2021, 11:41:55 AM] [Broadlink RM] e[35m[INFO]e[0m Discovered Broadlink RM3 Pro Plus (279d) at 192.168.1.68 (78:0f:77:63:3d:0f)
[3/16/2021, 11:41:58 AM] [Jeedom] ┌────RAMASSE-MIETTES─────
[3/16/2021, 11:41:58 AM] [Jeedom] │ (Suppression des accessoires qui sont dans le cache mais plus dans jeedom (peut provenir de renommage ou changement de pièce))
[3/16/2021, 11:41:58 AM] [Jeedom] │ Rien à supprimer
[3/16/2021, 11:41:58 AM] [Jeedom] └────────────────────────
[3/16/2021, 11:41:58 AM] [Jeedom] --== Homebridge est démarré et a intégré 21 accessoires ! (Si vous avez un Warning Avahi, ne pas en tenir compte) ==--
[3/16/2021, 11:41:58 AM] [Broadlink RM] 
[3/16/2021, 11:41:58 AM] [Broadlink RM] **************************************************************************************************************
[3/16/2021, 11:41:58 AM] [Broadlink RM] ** Welcome to version e[32m4.4.1e[0m of the e[34mHomebridge Broadlink RM Plugine[0m!
[3/16/2021, 11:41:58 AM] [Broadlink RM] ** 
[3/16/2021, 11:41:58 AM] [Broadlink RM] ** Find out what's in the latest release here: e[4mhttps://github.com/kiwi-cam/homebridge-broadlink-rm/blob/master/CHANGELOG.mde[0m
[3/16/2021, 11:41:58 AM] [Broadlink RM] ** 
[3/16/2021, 11:41:58 AM] [Broadlink RM] ** If you like this plugin then please star it on GitHub or better yet
[3/16/2021, 11:41:58 AM] [Broadlink RM] ** buy me a drink using Paypal e[4mhttps://paypal.me/kiwicamRMe[0m.
[3/16/2021, 11:41:58 AM] [Broadlink RM] **
[3/16/2021, 11:41:58 AM] [Broadlink RM] ** You can disable this message by adding "hideWelcomeMessage": true to the config (see config-sample.json).
[3/16/2021, 11:41:58 AM] [Broadlink RM] **
[3/16/2021, 11:41:58 AM] [Broadlink RM] **************************************************************************************************************
[3/16/2021, 11:41:58 AM] [Broadlink RM] 
e[0;37m[3/16/2021, 11:42:05 AM] e[0me[0;36m[Homebridge UI]e[0m e[0;33mHomebridge Config UI X v4.38.0 is listening on :: port 33221e[0m

t’as pas sauvé

J’ai sauvé les deux, platforms et accessoire avant de relancer le deamon

met qqch dans accessoire (par ex : []) puis vide le, il faut le forcer à réécrire

J’ai fais mais toujours les mêmes logs,
du coup j’ai supprimé tout dans platform et accessoire plus d’erreurs et j’ai juste remis platforms et du coup retour des logs.
J’ai l’impression que le " « accessories »: { " n’est pas apprécié au vu des logs, non ?

tu as cassé un truc en utilisant une version pas à jour oui…

ajoute un accessoire quelconque dans les accessoires :

{"accessory":"test"}

tu sauvegarde les changements dans les accessoires supplémentaires puis relance le démon

puis tu retires ca et sauvegarde les changements et relance le démon

si ca marche pas, je pousserai une version en stable pour toi qui corrige

Ca fait pareil,

Par contre quand je retire le bloc :

    "accessories": {
        "name": "TV",
        "type": "switch",
        "data": {
            "Eteindre": "260050000001279512141114111412381213123911391213123812391114123813131139113913121213133812131213133713121313121312381312133713381213133713371338130005280001284a13000d050000000000000000",
            "Allumer": "2600500000012596121410151015103a1114113a11391015103a113a1015113911141139113a11141015103a11141115103a101511141114113a1015103a11391114113a103a11391200052a0001254c12000d050000000000000000"
        }
    }

plus d’erreurs dans les logs :

[3/16/2021, 11:59:30 AM] Got SIGTERM, shutting down Homebridge...
[3/16/2021, 11:59:43 AM] Loaded config.json with 0 accessories and 3 platforms.
[3/16/2021, 11:59:43 AM] ---
[3/16/2021, 11:59:44 AM] Loaded plugin: homebridge-jeedom@1.5.0
[3/16/2021, 11:59:47 AM] Registering platform 'homebridge-jeedom.Jeedom'
[3/16/2021, 11:59:47 AM] ---
[3/16/2021, 11:59:50 AM] Loaded plugin: homebridge-alexa@0.5.26
[3/16/2021, 11:59:50 AM] Registering platform 'homebridge-alexa.Alexa'
[3/16/2021, 11:59:50 AM] ---
[3/16/2021, 11:59:50 AM] Loaded plugin: homebridge-broadlink-rm-pro@4.4.1
[3/16/2021, 11:59:50 AM] Registering platform 'homebridge-broadlink-rm-pro.BroadlinkRM'
[3/16/2021, 11:59:50 AM] ---
[3/16/2021, 11:59:51 AM] Loaded plugin: homebridge-camera-ffmpeg@3.0.3
[3/16/2021, 11:59:51 AM] Registering platform 'homebridge-camera-ffmpeg.Camera-ffmpeg'
[3/16/2021, 11:59:51 AM] ---
[3/16/2021, 11:59:51 AM] Loaded plugin: homebridge-config-ui-x@4.38.0
[3/16/2021, 11:59:51 AM] Registering platform 'homebridge-config-ui-x.config'
[3/16/2021, 11:59:51 AM] ---
[3/16/2021, 11:59:51 AM] Loaded plugin: homebridge-gsh@2.0.1
[3/16/2021, 11:59:51 AM] Registering platform 'homebridge-gsh.google-smarthome'
[3/16/2021, 11:59:51 AM] ---
[3/16/2021, 11:59:51 AM] Loading 3 platforms...
[3/16/2021, 11:59:51 AM] [Jeedom] Initializing Jeedom platform...
[3/16/2021, 11:59:51 AM] [Jeedom] debugLevel:400
[3/16/2021, 11:59:52 AM] [Config] Initializing config platform...
[3/16/2021, 11:59:52 AM] [Config] Spawning homebridge-config-ui-x with PID 5952
[3/16/2021, 11:59:52 AM] [Broadlink RM] Initializing BroadlinkRM platform...
[3/16/2021, 11:59:52 AM] [Broadlink RM] e[35m[INFO]e[0m Automatically discovering Broadlink RM devices.
[3/16/2021, 11:59:52 AM] [Jeedom] Synchronisation Jeedom <> Homebridge...
[3/16/2021, 11:59:52 AM] [Broadlink RM] No accessories have been added to the "Broadlink RM" platform config.
[3/16/2021, 11:59:52 AM] Initializing platform accessory 'Learn'...
[3/16/2021, 11:59:52 AM] Initializing platform accessory 'Scan Frequency'...
Setup Payload:
X-HM://0023ISYWYDC8A 
                       
[3/16/2021, 11:59:52 AM] Homebridge is running on port 51826.
e[35m[INFO]e[0m Adding RF Support to device 780f77633d0f with type 279d
[3/16/2021, 11:59:52 AM] [Broadlink RM] e[35m[INFO]e[0m Discovered Broadlink RM3 Pro Plus (279d) at 192.168.1.68 (78:0f:77:63:3d:0f)
[3/16/2021, 11:59:57 AM] [Jeedom] ┌────RAMASSE-MIETTES─────
[3/16/2021, 11:59:57 AM] [Jeedom] │ (Suppression des accessoires qui sont dans le cache mais plus dans jeedom (peut provenir de renommage ou changement de pièce))
[3/16/2021, 11:59:57 AM] [Jeedom] │ Rien à supprimer
[3/16/2021, 11:59:57 AM] [Jeedom] └────────────────────────
[3/16/2021, 11:59:57 AM] [Jeedom] --== Homebridge est démarré et a intégré 21 accessoires ! (Si vous avez un Warning Avahi, ne pas en tenir compte) ==--
[3/16/2021, 11:59:57 AM] [Broadlink RM] 
[3/16/2021, 11:59:57 AM] [Broadlink RM] **************************************************************************************************************
[3/16/2021, 11:59:57 AM] [Broadlink RM] ** Welcome to version e[32m4.4.1e[0m of the e[34mHomebridge Broadlink RM Plugine[0m!
[3/16/2021, 11:59:57 AM] [Broadlink RM] ** 
[3/16/2021, 11:59:57 AM] [Broadlink RM] ** Find out what's in the latest release here: e[4mhttps://github.com/kiwi-cam/homebridge-broadlink-rm/blob/master/CHANGELOG.mde[0m
[3/16/2021, 11:59:57 AM] [Broadlink RM] ** 
[3/16/2021, 11:59:57 AM] [Broadlink RM] ** If you like this plugin then please star it on GitHub or better yet
[3/16/2021, 11:59:57 AM] [Broadlink RM] ** buy me a drink using Paypal e[4mhttps://paypal.me/kiwicamRMe[0m.
[3/16/2021, 11:59:57 AM] [Broadlink RM] **
[3/16/2021, 11:59:57 AM] [Broadlink RM] ** You can disable this message by adding "hideWelcomeMessage": true to the config (see config-sample.json).
[3/16/2021, 11:59:57 AM] [Broadlink RM] **
[3/16/2021, 11:59:57 AM] [Broadlink RM] **************************************************************************************************************
[3/16/2021, 11:59:57 AM] [Broadlink RM]

met à jour déjà…

mais tu t’es trompé pour tes accessories …

"accessories": [{
    "name": "TV",
    "type": "switch",
    "data": {
        "Eteindre": "260050000001279512141114111412381213123911391213123812391114123813131139113913121213133812131213133713121313121312381312133713381213133713371338130005280001284a13000d050000000000000000",
        "Allumer": "2600500000012596121410151015103a1114113a11391015103a113a1015113911141139113a11141015103a11141115103a101511141114113a1015103a11391114113a103a11391200052a0001254c12000d050000000000000000"
    }
}]

tu dois avoir [] autour, c’est un tableau… voir ma capture plus haut

image

Merci beaucoup.
Effectivement tant que j’étais pas à jour pas moyen de mettre le tableau en place.
Maintenant tout roule !

Merci encore, je vais pouvoir m’amuser maintenant :slight_smile:

EDIT : les HEX codes ne sont pas lu mais je pense que ça n’a rien a voir avec homebridge , je vais relire la doc du plugin a ce propos … :frowning:

1 « J'aime »