Open fluxbeard opened 2 years ago
are there any log entries? is fhem already running at the point of homebridge start?
No log entries in Homebridge.log apart from the above entry. Fhem is running on a different Raspberry and until a few days ago there were no problems. I restarted both raspis (Homebridge and fhem) every night at 3am. and both found each other without problems. Now I have to restart the Homebridge Software and sometimes even the raspberry several times. The first attempts lead to the message which says that the plugin is preventing Homebridge from starting. that message is repeated and the Homebridge keeps saying: "Starting..". After several restarts the Homebridge starts fast without problems. Now I have stopped both raspis from restarting but when I add new devices or updating plugins I have tom restart the Homebridge and then everything stops again with the error message.
Is there a specific log from Homebridge-fhem which I can search for possible errors?
[37m[27/04/2022, 15:20:11][0m [36m[HB Supervisor][0m Homebridge Process Ended. Code: 143, Signal: null
[37m[27/04/2022, 15:20:16][0m [36m[HB Supervisor][0m Restarting Homebridge...
[37m[27/04/2022, 15:20:16][0m [36m[HB Supervisor][0m Starting Homebridge with extra flags: -I
[37m[27/04/2022, 15:20:16][0m [36m[HB Supervisor][0m Started Homebridge v1.4.0 with PID: 12238
[37m[27/04/2022, 15:20:20] [39mLoaded config.json with 0 accessories and 7 platforms.
[37m[27/04/2022, 15:20:21] [39mLoaded 27 cached accessories from cachedAccessories.
[37m[27/04/2022, 15:20:22] [39m---
[37m[27/04/2022, 15:20:34] [39mLoaded plugin: homebridge-broadlink-rm-pro@4.4.10
[37m[27/04/2022, 15:20:34] [39mRegistering platform 'homebridge-broadlink-rm-pro.BroadlinkRM'
[37m[27/04/2022, 15:20:34] [39m---
[37m[27/04/2022, 15:20:35] [39mLoaded plugin: homebridge-camera-ui@5.0.27
[37m[27/04/2022, 15:20:35] [39mRegistering platform 'homebridge-camera-ui.CameraUI'
[37m[27/04/2022, 15:20:35] [39m---
[37m[27/04/2022, 15:20:35] [39mLoaded plugin: homebridge-config-ui-x@4.43.1
[37m[27/04/2022, 15:20:35] [39mRegistering platform 'homebridge-config-ui-x.config'
[37m[27/04/2022, 15:20:35] [39m---
[37m[27/04/2022, 15:20:36] [39mLoaded plugin: homebridge-fhem@0.5.33
homebridge API version: 2.7
this is homebridge-fhem 0.5.33
[37m[27/04/2022, 15:20:43] [39mRegistering platform 'homebridge-fhem.FHEM'
[37m[27/04/2022, 15:20:43] [39m---
[37m[27/04/2022, 15:20:43] [39mLoaded plugin: homebridge-fritz-platform@6.0.19
[37m[27/04/2022, 15:20:47] [39mRegistering platform 'homebridge-fritz-platform.FritzPlatform'
[37m[27/04/2022, 15:20:47] [39m---
[37m[27/04/2022, 15:20:54] [39mLoaded plugin: homebridge-homematicip@0.7.2
[37m[27/04/2022, 15:20:54] [39mRegistering platform 'homebridge-homematicip.HomematicIP'
[37m[27/04/2022, 15:20:54] [39m---
[37m[27/04/2022, 15:20:54] [39mLoaded plugin: homebridge-magichome-dynamic-platform@1.9.7
[37m[27/04/2022, 15:20:54] [39mRegistering platform 'homebridge-magichome-dynamic-platform.homebridge-magichome-dynamic-platform'
[37m[27/04/2022, 15:20:54] [39m---
[37m[27/04/2022, 15:20:54] [39mLoaded plugin: homebridge-rpi@1.3.21
[37m[27/04/2022, 15:20:54] [39mRegistering platform 'homebridge-rpi.RPi'
[37m[27/04/2022, 15:20:54] [39m---
[37m[27/04/2022, 15:20:54] [39mLoading 7 platforms...
[37m[27/04/2022, 15:20:54] [39m[36m[Config][39m Initializing config platform...
[37m[27/04/2022, 15:20:54] [39m[36m[Config][39m Running in Service Mode
[37m[27/04/2022, 15:20:54] [39m[36m[homebridge-magichome-dynamic-platform][39m Initializing homebridge-magichome-dynamic-platform platform...
[37m[27/04/2022, 15:20:54] [39m[36m[homebridge-magichome-dynamic-platform][39m [33mFinished initializing homebridge-magichome-dynamic-platform '1.9.7'[39m
[37m[27/04/2022, 15:20:54] [39m[36m[homebridge-magichome-dynamic-platform][39m If this plugin brings you joy, consider visiting GitHub and giving it a ⭐.
[37m[27/04/2022, 15:20:54] [39m[36m[FritzPlatform][39m Initializing FritzPlatform platform...
[37m[27/04/2022, 15:21:01] [39m[36m[FritzPlatform][39m [33mCallmonitor: There is no or no valid IP address configured this device. This device will be skipped.[39m
[37m[27/04/2022, 15:21:01] [39m[36m[RPi][39m Initializing RPi platform...
[37m[27/04/2022, 15:21:01] [39m[36m[RPi][39m homebridge-rpi v1.3.21, node v16.14.2, homebridge v1.4.0, homebridge-lib v5.3.2
[37m[27/04/2022, 15:21:01] [39m[36m[CameraUI][39m Initializing CameraUI platform...
[37m[27/04/2022, 15:21:01] [39m[36m[FHEM][39m Initializing FHEM platform...
starting longpoll: https://192.168.1.169:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1651065662438
[37m[27/04/2022, 15:21:02] [39m[36m[HomematicIP][39m Initializing HomematicIP platform...
[37m[27/04/2022, 15:21:02] [39m[36m[HomematicIP][39m homebridge-homematicip v0.7.2
[37m[27/04/2022, 15:21:02] [39m[36m[HomematicIP][39m Loading accessory from cache: Home Security System
[37m[27/04/2022, 15:21:02] [39m[36m[HomematicIP][39m Loading accessory from cache: Wohnungstür
[37m[27/04/2022, 15:21:02] [39m[36m[HomematicIP][39m Loading accessory from cache: Küchenfenster
[37m[27/04/2022, 15:21:02] [39m[36m[HomematicIP][39m Loading accessory from cache: Fenster Kinderzimmer
[37m[27/04/2022, 15:21:02] [39m[36m[HomematicIP][39m Loading accessory from cache: Fenster Schlafzimmer
[37m[27/04/2022, 15:21:02] [39m[36m[HomematicIP][39m Loading accessory from cache: Fenster Badezimmer
[37m[27/04/2022, 15:21:02] [39m[36m[HomematicIP][39m Loading accessory from cache: Fenster Wohnzimmer
[37m[27/04/2022, 15:21:02] [39m[36m[CameraUI][39m Config changed through interface, saving...
Server listening on: http://
{ "name": "FHEM", "neverTimeout": true, "ssl": true, "server": "192.168.1.169", "port": 8083, "platform": "FHEM", "filter": "room=Homekit", "auth": { "user": "username", "pass": "password" }
if homebridge-fhem can not connect to fhem it used to retry this indefinitely. during this time homebridge basically waits for the connection and hangs.
but the homebridge-config-x requirements state that a plugin startup may only tage x number of seconds i had to limit the maximum waiting time at startup and give up after a while.
if you restart everything and the. homebridge side is slower than the fhem side this would result in the above behavior.
please try the following:
Could be that I have something in the same direction
I have also this, happening again and again. 37m[27/04/2022, 15:21:01] �[39m�[36m[FHEM]�[39m Initializing FHEM platform... starting longpoll: https://192.168.1.169:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=[1651065662438](tel:1651065662438)
It is Happening if my whole Docker containers are starting at the same time. Homebridge seem to be ready before FHEM is completely initialized. Restarting the Homebridge container a little bit later again fixes the problem.
yes. staggering the restarts or using neverTimeout to restore the old behavior should work here.
Hello, I am using homebridge-fhem 0.5.33 with Homebridge 1.4.0. For a few days now my Homebridge Setup suddenly does not start after server restart with following error Message:
[homebridge-fhem] This plugin is taking long time to load and preventing Homebridge from starting. See https://git.io/JtMGR for more info.
I have to restart Homebridge sometimes 2 times until the homebridge starts correctly.