Page 7 sur 11

Re: Domoticz, Homebridge et Homekit

Publié : 06 mai 2017, 15:05
par TroisSix
Chez moi:
/usr/lib
└── homebridge@0.4.16

As-tu bien installé systemd pour pouvoir lancer systemctl? et reprends les étapes du post de Marci ;)

Re: Domoticz, Homebridge et Homekit

Publié : 06 mai 2017, 15:07
par schwinny
tu confond de personne , Chez moi ça fonctionne :)

Re: Domoticz, Homebridge et Homekit

Publié : 06 mai 2017, 15:17
par TroisSix
C'était une réponse pour fab0030 ;)

Re: Domoticz, Homebridge et Homekit

Publié : 06 mai 2017, 15:42
par fab0030

Code : Tout sélectionner

pi@raspberrypi ~ $ sudo systemctl start homebridge
Failed to get D-Bus connection: No connection to service manager.
et pour info j'ai

Code : Tout sélectionner

@raspberrypi ~ $ sudo npm ls -g homebridge
/usr/lib
âââ homebridge@0.0.0

Re: Domoticz, Homebridge et Homekit

Publié : 06 mai 2017, 17:01
par TroisSix
Reprends les tutos d'install from scratch en suivant le tuto que je t'ai filé plus haut, ça te permettra de lancer homebridge.
Et "sudo service homebridge start" donne quoi?

Re: Domoticz, Homebridge et Homekit

Publié : 07 mai 2017, 23:35
par fab0030
Tout d'abord un grand merci à @schwinny et @TroisSix pour m'avoir accorder un peu de leur temps !!
Ensuite grosse galère...pas mal d'heures à fouiller sur le net!! Mais ça fonctionne!
En fait probablement parce que je suis sous Wheezy il y a une bidouille à faire que j'ai trouvé ici
https://github.com/cflurin/homebridge-p ... spberry-Pi

partie :

Code : Tout sélectionner

Check gcc version (4.8 is required)

gcc --version
gcc (Raspbian 4.8.2-21~rpi3rpi1) 4.8.2

Install gcc 4.8 if necessary

sudo apt-get install gcc-4.8 g++-4.8

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 20
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 20
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50

Reboot the Raspberry Pi.
peut être simple pour les linuxiens avertis moins pour moi...

Re: Domoticz, Homebridge et Homekit

Publié : 08 mai 2017, 08:11
par schwinny
pas de quoi, sur les forum l'entraide est la règle et j'ai eu pas mal de coup de main sur ce meme forum :)

Content que ça fonctionne pour toi, je pense que je vais l'intégrer au wiki quand j'aurais un moment

Re: Domoticz, Homebridge et Homekit

Publié : 08 mai 2017, 15:27
par TroisSix
Good news, amuse-toi bien maintenant ;)

Re: Domoticz, Homebridge et Homekit

Publié : 27 mai 2017, 19:04
par xavierlp
Bonjour à tous

J'ai suivi le tuto du site
https://www.domoticz.com/wiki/Homekit_Siri

L’installation se passe bien. Par contre lorsque je lance homebridge ou même sudo homebridge j'ai un retour 401

pi@raspberrypi:~ $ homebridge
*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs>
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdn ... ceRegister>
[2017-5-27 18:42:17] Loaded plugin: homebridge-edomoticz
[2017-5-27 18:42:18] Registering accessory 'homebridge-edomoticz.eDomoticz'
[2017-5-27 18:42:18] Registering platform 'homebridge-edomoticz.eDomoticz'
[2017-5-27 18:42:18] ---
[2017-5-27 18:42:18] Loaded config.json with 0 accessories and 1 platforms.
[2017-5-27 18:42:18] ---
[2017-5-27 18:42:18] Loading 1 platforms...
[2017-5-27 18:42:18] [eDomoticz] Initializing eDomoticz platform...
[2017-5-27 18:42:18] Loading 0 accessories...
[2017-5-27 18:42:18] [eDomoticz] There was a problem connecting to Domoticz. (HTTP Status code 401)

<html><head><title>Unauthorized</title></head><body><h1>401 Unauthorized</h1></body></html>

Mon fichier config.json ressemble à çà


{
"bridge": {
"name": "homebridge",
"username": "B8:27:EB:4F:22:F9",
"port": 51826,
"pin": "031-45-154"
},
"description": "Configuration file for (e)xtended Domoticz platform.",
"platforms": [
{
"platform": "eDomoticz",
"name": "eDomoticz",
"server": "192.168.0.19",
"port": "8084",
"ssl": 0,
"roomid": 2,
"mqttenable": 1,
"mqttuser": "xxxxxxxx",
"mqttpass": "xxxxxxxxx"
}
],
"accessories": []
}


Domoticz est configuré sur le port 8084 et l'ip de la machine est 192.168.0.9

Re: Domoticz, Homebridge et Homekit

Publié : 27 mai 2017, 21:53
par xavierlp
Bon il suffit d'ajouter le bon masque d'adresse ip dans les paramètres de domoticz et çà fonctionne très bien