Aller au contenu

Commander L'hc2 (Et Hcl) Via Homekit Et Siri


kiwi

Messages recommandés

salut svp vous pouvez me confirmer :


{
    "bridge": {
        "name": "Homebridge",
        "username": "00:22:4d:ab:66:5c",
        "port": 51826,
        "pin": "031-45-154"
    },
 
    "description": "This is an example configuration file. You can use this as a template for creating your own configuration file.",
 
    "platforms": [
            {
            "platform": "FibaroHC2",
            "name": "FibaroHC2",
            "host": "192.168.0.47",
            "username": "admin",
            "password": "XXXXXXXXX"
        }
 
    ]

dans bridge : "Name" je ne touche pas. "Username" c'est le mac adresse de mon raspberry. "port" et "pin" je ne touche pas.

dans platforms : "platforms" je ne touche pas. "name" c'est ne nom de ma figaro. "host" c'est son adresse ip. "username" c'est le user que j'ai cree dans ma fibaro et "password" son password. c est ca ?

svp aider moi merci

Lien vers le commentaire
Partager sur d’autres sites

--
Loaded plugin: homebridge-http
Registering accessory 'homebridge-httpstatus.Http'
---
/usr/local/lib/node_modules/homebridge/lib/server.js:136
  var username = config.bridge.username;
                              ^

TypeError: Cannot read property 'username' of undefined
    at Server._loadConfig (/usr/local/lib/node_modules/homebridge/lib/server.js:136:31)
    at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:25:23)
    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:26:16)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Function.Module.runMain (module.js:467:10)
    at startup (node.js:134:18)

je fais quoi la c'est quoi mon erreur svp

Lien vers le commentaire
Partager sur d’autres sites

GG

j'ai réussi et j'ai une solution pour tout ce qui galère 

j'ai une image de sd card 8G deja installer et configure !

 

j'ai juste un problème avec eve ou siri :

je lui dit :

alume la lumiere de la cuisine

et siri répond :

désoler je n'ai pas pu trouver d'appareils dans la cuisine cette fois-ci.

 

je fais quoi ? svp help

Lien vers le commentaire
Partager sur d’autres sites

bon voila j'ai réussi !

tout celui qui a un problem pour l'installer

je suis la avec plaisir !

 

mais moi personnellement  j'ai un problem après :

apres 24h ~ tout les module de l'app eve de mon iPhone ne sont plus connecter

et impossible de les reconnecter hier j'ai tout réinstaller tout marcher et la (24h après ~) rebelote !

qui a une idee ou solution ?

svp merci

Lien vers le commentaire
Partager sur d’autres sites

Bonjour, bonsoir,

 

J'ai essayé d'installer sur mon sinology que j'ai pas réussi et non plus sur mon mac.

 

Message d'erreur sur le mac Couldn't find a config.json file at '/var/root/.homebridge/config.json'. Look at config-sample.json for examples of how to format your config.js and add your home accessories

 

Erreur sur le Synology failed durant l'installation de homebridge pour cause des droits.

 

Si quelqu'un pourrais m'aidé pour le Synology ou mac sa serrai sympa. 

 

Merci beaucoup

Lien vers le commentaire
Partager sur d’autres sites

Avec le code 

root# sudo npm install -g homebridge
/usr/local/bin/homebridge -> /usr/local/lib/node_modules/homebridge/bin/homebridge

> curve25519@1.1.0 install /usr/local/lib/node_modules/homebridge/node_modules/curve25519
> node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/var/root/.node-gyp/5.7.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/homebridge/node_modules/curve25519/.node-gyp"
  CXX(target) Release/obj.target/curve/node_curve.o
  SOLINK_MODULE(target) Release/curve.node

> ed25519@0.0.3 install /usr/local/lib/node_modules/homebridge/node_modules/ed25519
> node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/var/root/.node-gyp/5.7.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/homebridge/node_modules/ed25519/.node-gyp"
  CC(target) Release/obj.target/ed25519/src/ed25519/keypair.o
  CC(target) Release/obj.target/ed25519/src/ed25519/sign.o
  CC(target) Release/obj.target/ed25519/src/ed25519/open.o
  CC(target) Release/obj.target/ed25519/src/ed25519/crypto_verify_32.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_double_scalarmult.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_frombytes.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_scalarmult_base.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_precomp_0.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p2_0.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p2_dbl.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_0.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_dbl.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_to_p2.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_to_cached.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_tobytes.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_madd.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_add.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_msub.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_sub.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p1p1_to_p3.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p1p1_to_p2.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_tobytes.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_0.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_1.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_cmov.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_copy.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_neg.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_add.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_sub.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_mul.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_sq.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_sq2.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_invert.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_tobytes.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_isnegative.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_isnonzero.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_frombytes.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_pow22523.o
  CC(target) Release/obj.target/ed25519/src/ed25519/sc_reduce.o
  CC(target) Release/obj.target/ed25519/src/ed25519/sc_muladd.o
  CXX(target) Release/obj.target/ed25519/src/ed25519.o
  SOLINK_MODULE(target) Release/ed25519.node

> mdns@2.2.11 install /usr/local/lib/node_modules/homebridge/node_modules/mdns
> node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/var/root/.node-gyp/5.7.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/homebridge/node_modules/mdns/.node-gyp"
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_browse.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_enumerate_domains.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_get_addr_info.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_process_result.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref_deallocate.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref_sock_fd.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_register.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_resolve.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_update_record.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/mdns_utils.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/network_interface.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/socket_watcher.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_ref.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_create.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_deallocate.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_set_value.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_get_length.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_buffer_to_object.o
  SOLINK_MODULE(target) Release/dns_sd_bindings.node
/usr/local/lib
└─┬ homebridge@0.2.19 
  └─┬ hap-nodejs@0.2.5
    ├── curve25519@1.1.0  (git://github.com/KhaosT/node-curve25519.git#922eae612bb379fa84e8deb29f80c53d57c8be7b)
    ├── ed25519@0.0.3  (git://github.com/KhaosT/ed25519.git#6356bc9e6e4643d56020293c14920ac12bcaa1ac)
    ├── mdns@2.2.11  (git://github.com/KhaosT/node_mdns.git#8ff4d603197a92c3cc829ddd37ddfac5bfe21332)
    └── srp@0.2.0  (git://github.com/KhaosT/node-srp.git#7feff53254897a0b1b9f0667ad17a8beb78acbb9)

Mac-Pro-de-Bruno-De-Almeida-2:~ root# $ homebridge
-sh: $: command not found
Mac-Pro-de-Bruno-De-Almeida-2:~ root# homebridge
Loaded plugin: homebridge-fibaro-hc2
Registering platform 'homebridge-fibaro-hc2.FibaroHC2'
---
Loaded plugin: homebridge-lockitron
Registering accessory 'homebridge-lockitron.Lockitron'
---
Couldn't find a config.json file at '/var/root/.homebridge/config.json'. Look at config-sample.json for examples of how to format your config.js and add your home accessories.
Mac-Pro-de-Bruno-De-Almeida-2:~ root#  sudo apt-get update
sudo: apt-get: command not found
Mac-Pro-de-Bruno-De-Almeida-2:~ root# git clone https://github.com/nfarina/homebridge.git
Cloning into 'homebridge'...
remote: Counting objects: 2868, done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 2868 (delta 3), reused 0 (delta 0), pack-reused 2858
Receiving objects: 100% (2868/2868), 1.36 MiB | 793.00 KiB/s, done.
Resolving deltas: 100% (1764/1764), done.
Checking connectivity... done.
Mac-Pro-de-Bruno-De-Almeida-2:~ root# cd homebridge
Mac-Pro-de-Bruno-De-Almeida-2:homebridge root# git submodule init
Mac-Pro-de-Bruno-De-Almeida-2:homebridge root# git submodule update
Mac-Pro-de-Bruno-De-Almeida-2:homebridge root# npm install

> mdns@2.2.11 install /private/var/root/homebridge/node_modules/mdns
> node-gyp rebuild

  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_browse.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_enumerate_domains.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_get_addr_info.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_process_result.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref_deallocate.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref_sock_fd.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_register.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_resolve.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_update_record.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/mdns_utils.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/network_interface.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/socket_watcher.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_ref.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_create.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_deallocate.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_set_value.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_get_length.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_buffer_to_object.o
  SOLINK_MODULE(target) Release/dns_sd_bindings.node

> ed25519@0.0.3 install /private/var/root/homebridge/node_modules/ed25519
> node-gyp rebuild

  CC(target) Release/obj.target/ed25519/src/ed25519/keypair.o
  CC(target) Release/obj.target/ed25519/src/ed25519/sign.o
  CC(target) Release/obj.target/ed25519/src/ed25519/open.o
  CC(target) Release/obj.target/ed25519/src/ed25519/crypto_verify_32.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_double_scalarmult.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_frombytes.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_scalarmult_base.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_precomp_0.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p2_0.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p2_dbl.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_0.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_dbl.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_to_p2.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_to_cached.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_tobytes.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_madd.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_add.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_msub.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_sub.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p1p1_to_p3.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p1p1_to_p2.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_tobytes.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_0.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_1.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_cmov.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_copy.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_neg.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_add.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_sub.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_mul.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_sq.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_sq2.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_invert.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_tobytes.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_isnegative.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_isnonzero.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_frombytes.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_pow22523.o
  CC(target) Release/obj.target/ed25519/src/ed25519/sc_reduce.o
  CC(target) Release/obj.target/ed25519/src/ed25519/sc_muladd.o
  CXX(target) Release/obj.target/ed25519/src/ed25519.o
  SOLINK_MODULE(target) Release/ed25519.node

> curve25519@1.1.0 install /private/var/root/homebridge/node_modules/curve25519
> node-gyp rebuild

  CXX(target) Release/obj.target/curve/node_curve.o
  SOLINK_MODULE(target) Release/curve.node

> bignum@0.11.0 install /private/var/root/homebridge/node_modules/bignum
> node-gyp configure build

  CXX(target) Release/obj.target/bignum/bignum.o
  SOLINK_MODULE(target) Release/bignum.node
homebridge@0.2.19 /private/var/root/homebridge
├─┬ chalk@1.1.1 
│ ├─┬ ansi-styles@2.2.0 
│ │ └── color-convert@1.0.0 
│ ├── escape-string-regexp@1.0.5 
│ ├─┬ has-ansi@2.0.0 
│ │ └── ansi-regex@2.0.0 
│ ├── strip-ansi@3.0.1 
│ └── supports-color@2.0.0 
├─┬ commander@2.8.1 
│ └── graceful-readlink@1.0.1 
├─┬ hap-nodejs@0.2.5 
│ ├─┬ curve25519@1.1.0  (git://github.com/KhaosT/node-curve25519.git#922eae612bb379fa84e8deb29f80c53d57c8be7b)
│ │ ├── bindings@1.2.1 
│ │ └── nan@2.2.0 
│ ├─┬ debug@2.2.0 
│ │ └── ms@0.7.1 
│ ├── ed25519@0.0.3  (git://github.com/KhaosT/ed25519.git#6356bc9e6e4643d56020293c14920ac12bcaa1ac)
│ ├─┬ mdns@2.2.11  (git://github.com/KhaosT/node_mdns.git#8ff4d603197a92c3cc829ddd37ddfac5bfe21332)
│ │ └── nan@2.1.0 
│ ├─┬ node-persist@0.0.8 
│ │ ├── mkdirp@0.3.5 
│ │ └── q@1.1.2 
│ └─┬ srp@0.2.0  (git://github.com/KhaosT/node-srp.git#7feff53254897a0b1b9f0667ad17a8beb78acbb9)
│   └── bignum@0.11.0 
└── semver@5.0.3 

npm WARN homebridge@0.2.19 No license field.
Mac-Pro-de-Bruno-De-Almeida-2:homebridge root# cd ~/homebridge/
Mac-Pro-de-Bruno-De-Almeida-2:homebridge root# npm run start
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v5.7.0
npm ERR! npm  v3.6.0

npm ERR! missing script: start
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /private/var/root/homebridge/npm-debug.log
Mac-Pro-de-Bruno-De-Almeida-2:homebridge root# hoimebridge
-sh: hoimebridge: command not found
Mac-Pro-de-Bruno-De-Almeida-2:homebridge root# homebridge
Loaded plugin: homebridge-fibaro-hc2
Registering platform 'homebridge-fibaro-hc2.FibaroHC2'
---
Loaded plugin: homebridge-lockitron
Registering accessory 'homebridge-lockitron.Lockitron'
---
Couldn't find a config.json file at '/var/root/.homebridge/config.json'. Look at config-sample.json for examples of how to format your config.js and add your home accessories.
Lien vers le commentaire
Partager sur d’autres sites

@Pocket998

concernant le fichier config tu peux le créer tout simplement :

nano /var/root/.homebridge/config.json

puis tu colles à  l'intérieur :

 

{

    "bridge": {

        "name": "Homebridge",

        "username": "CC:22:3D:E3:CE:30",

        "port": 51826,

        "pin": "031-45-154"

    },

 

"platforms": [{

                        "platform": "FibaroHC2",

                        "name": "FibaroHC2",

                        "host": "192.168.0.100",

                        "username": "ton login",

                        "password": "to pass"

                } ]

}

 

ou tu renommes le config-sample.json :

mv config-sample.json config.json

ctrl + o pour l'enregistrer

ctrl + x pour sortir

 

attention les fichiers/dossiers commençant par un "point" sont invisible !

Pour les voir il faut utiliser la commande :

ls -a 

Lien vers le commentaire
Partager sur d’autres sites

Bonsoir,

 

@maconly34

 

Merci pour ton aide.

 

C'est bon homebridge fonctionne je vois mes modules depuis l'application MyHome.

 

Pour faire fonctionner Siri faut'il configurer dans les modules de la HC2 Lili ou autre chose ?

 

Que faut'il dire à  Siri ?

 

Pour pour votre aide.

Lien vers le commentaire
Partager sur d’autres sites

×
×
  • Créer...