Homebridge beenden sich wenn ich Terminal schließe

Begonnen von santiago0211, 31 Juli 2017, 19:43:19

Vorheriges Thema - Nächstes Thema

santiago0211

Hi Forum,

Ich habe mir vor 2 Wochen mit einem Rasp 3 und einer homematic ccu2 homebridge eingerichtet, soweit läuft auch alles super nur habe ich das Problem das homebridge immer stoppt sobald ich auf meinen Macbook "Terminal" schließe oder Ihn ausschalte (Habe es die ganze Zeit nicht bemerkt weil das Macbook immer im Standby ist)

habe ich die homebridge vielleicht falsch gestartet? (Homebridge in SSH eingegeben)

pi@raspberrypi:~ $ homebridge
*** WARNING *** The program 'node' 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=node>
*** WARNING *** The program 'node' 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=libdns_sd&e=node&f=DNSServiceRegister>
[2017-7-31 19:35:41] Loaded plugin: homebridge-homematic
[2017-7-31 19:35:41] Registering platform 'homebridge-homematic.HomeMatic'
[2017-7-31 19:35:41] ---
[2017-7-31 19:35:42] Loaded plugin: homebridge-sonos
[2017-7-31 19:35:42] Registering accessory 'homebridge-sonos.Sonos'
[2017-7-31 19:35:42] ---
[2017-7-31 19:35:42] Loaded config.json with 2 accessories and 1 platforms.
[2017-7-31 19:35:42] ---
[2017-7-31 19:35:42] Loading 1 platforms...
[2017-7-31 19:35:42] [HomeMatic CCU2] Initializing HomeMatic platform...
[2017-7-31 19:35:42] [HomeMatic CCU2] Homematic Plugin Version 0.0.76
[2017-7-31 19:35:42] [HomeMatic CCU2] Plugin by thkl  https://github.com/thkl
[2017-7-31 19:35:42] [HomeMatic CCU2] Homematic is a registered trademark of the EQ-3 AG
[2017-7-31 19:35:42] [HomeMatic CCU2] Please report any issues to https://github.com/thkl/homebridge-homematic/issues
[2017-7-31 19:35:42] [HomeMatic CCU2] will connect to your ccu at 192.168.1.20
[2017-7-31 19:35:42] [HomeMatic CCU2] using binrpc for communication with BidCos-RF
[2017-7-31 19:35:42] [HomeMatic CCU2] init RPC for BidCos-RF.
[2017-7-31 19:35:42] [HomeMatic CCU2] Fetching Homematic devices...
[2017-7-31 19:35:42] Loading 2 accessories...
[2017-7-31 19:35:42] [Badezimmer Lautsprecher] Initializing Sonos accessory...
[2017-7-31 19:35:42] [Wohnzimmer Lautsprecher] Initializing Sonos accessory...
[2017-7-31 19:35:42] [HomeMatic CCU2] RPC server for interface BidCos-RF. is listening on port 9090.
[2017-7-31 19:35:42] [HomeMatic CCU2] Creating Local HTTP Client for CCU RPC Events
[2017-7-31 19:35:42] [HomeMatic CCU2] if PONG is PONG CCU is alive
[2017-7-31 19:35:43] [Badezimmer Lautsprecher] Found a playable coordinator device at 192.168.1.52 in zone 'Bad' for accessory 'Badezimmer Lautsprecher' in accessory room 'Bad'
[2017-7-31 19:35:43] [HomeMatic CCU2] Fetch Response
[2017-7-31 19:35:43] [HomeMatic CCU2] Initializing platform accessory 'HM LC Bl1PBU FM OEQ0361804 1'...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 031-45-154 │     
    └────────────┘     
                       
[2017-7-31 19:35:43] [HomeMatic CCU2] Number of mapped devices : 1
[2017-7-31 19:35:43] Homebridge is running on port 40949.
[2017-7-31 19:35:43] [HomeMatic CCU2] will cache ccu response ...
[2017-7-31 19:35:43] [Wohnzimmer Lautsprecher] Found a playable coordinator device at 192.168.1.18 in zone 'Wohnzimmer' for accessory 'Wohnzimmer Lautsprecher' in accessory room 'Wohnzimmer'
[2017-7-31 19:35:45] [HomeMatic CCU2] NPM 0.0.76 vs Local 0.0.76

MadMax-FHEM

#1
Wenn du ein Programm/Dienst was auch immer in einem Terminal-Fenster startest, dann wird das Programm/Dienst beendet, wenn die "Hülle" (also das Terminal) beendet wird...

Das ist ganz normal so...

Also entweder mittels "nohup" starten (google suche anwerfen)...
Oder viel besser: sauber als Dienst starten (gibt bestimmt was im Wiki dazu bzw. hier im Forum oder halt auch google)...

Allerdings wenn der Rechner in Standby/Hibernate/... geht ändert auch der Start als Dienst nix daran...

EDIT: dann besser homebridge gleich als Dienst auf dem PI (der ja durchlaufen sollte)...

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

santiago0211

Sorry, bin ein anfänger auf dem Gebiet und beschäftige mich erst seid 3 Wochen damit 


Aber aufjedenfall danke für die Hilfe MadMax, jetzt hab ich wieder was gelernt  ;)