Guten Abend zusammen. Ich versuche gerade den Autostart ans laufen zu bringen. Laut pi@raspberrypi:~ $ sudo systemctl status homebridge
● homebridge.service - Node.js HomeKit Server
Loaded: loaded (/etc/systemd/system/homebridge.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2019-07-13 20:41:08 CEST; 662ms ago
Main PID: 30161 (homebridge)
CGroup: /system.slice/homebridge.service
└─30161 homebridge
Jul 13 20:41:08 raspberrypi systemd[1]: homebridge.service: Service hold-off time over, scheduling restart.
Jul 13 20:41:08 raspberrypi systemd[1]: Stopped Node.js HomeKit Server.
Jul 13 20:41:08 raspberrypi systemd[1]: Started Node.js HomeKit Server.
sollte das auch so sein. Auf dem iPad bekomme ich aber die Bridge nicht zum koppeln angezeigt. Meine config.json sieht so aus {
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "xxx-xx-xxx"
},
"platforms": [
{
"platform": "FHEM",
"name": "FHEM",
"server": "127.0.0.1",
"port": "8083",
"filter": "room=Homekit"
}
],
"accessories": []
}
und liegt unter /usr/local/lib/node_modules/homebridge. Die homebridge Datei liegt unter /etc/default/homebridge und hat den folgenden Inhalt # Defaults / Configuration options for homebridge
# The following settings tells homebridge where to find the config.json file and where to persist the data (i.e. pairing and others)
HOMEBRIDGE_OPTS=-U /var/lib/homebridge
# If you uncomment the following line, homebridge will log more
# You can display this via systemd's journalctl: journalctl -f -u homebridge
# DEBUG=*
Die homebridge.service Datei liegt mit dem Inhalt [Unit]
Description=Node.js HomeKit Server
After=syslog.target network-online.target
[Service]
Type=simple
User=pi
EnvironmentFile=/etc/default/homebridge
# Adapt this to your specific setup (could be /usr/bin/homebridge)
# See comments below for more information
ExecStart=/usr/local/bin/homebridge $HOMEBRIDGE_OPTS
Restart=on-failure
RestartSec=10
KillMode=process
[Install]
WantedBy=multi-user.target
unter /etc/systemd/system
Sieht einer mein Problem ?
ZitatMeine config.json sieht so aus und liegt unter /usr/local/lib/node_modules/homebridge
(...)
# The following settings tells homebridge where to find the config.json file and where to persist the data (i.e. pairing and others)
HOMEBRIDGE_OPTS=-U /var/lib/homebridge
Danke. Läuft