homebridge-Fibaro-HC2
homebridge-Fibaro-HC2 copied to clipboard
homebridge for fibaro doesnt get connected when the homecenter lite controller restarts
my home bridge gets disconnected with fibaro hcl controller whenever the controller restarts... please suggests a way that whenver fibaro homecenter lite restart after 5 minutes homebridge(raspberry pi)should also restart
There's no "state" between homebridge and hc, so it shouldn't care if hc/hcl restart. By the way how often do you need to restart hc ?
once power goes off, both hc and homebridge(raspberry pi) gets off. once power comeback fibaro needs atleast 2-3 minutes to get started at the same time homebridge starts and is not able to get connected with hc. so i have to restart the homebridge whenever there is power outage and then only its get connected with hc and thus works with homekit..
I can suggest to insert a 5 minutes delay in your homebridge startup script. What are you using for the homebridge management?
docker
how are you starting it?
Start Homebridge
Run this command to start Homebridge
docker run -d --restart=always --net=host
--name=homebridge
-v /storage/homebridge:/homebridge
-e HOMEBRIDGE_CONFIG_UI=1
-e HOMEBRIDGE_CONFIG_UI_PORT=8581
oznu/homebridge:raspberry-pi
Homebridge Starts on Boot Open /storage/.config/autostart.sh for editing in nano: nano /storage/.config/autostart.sh
@ilcato can you please suggest script.. i am new to coding
show me the /storage/.config/autostart.sh file
docker restart homebridge
this command is added to the bottom of the line /storage/.config/autostart.sh file
insert sleep 300
before it
so the command will be 'sleep 300 docker restart homebridge'
sleep 300 && docker restart homebridge & is this command okay!?
No:
sleep 300
docker restart homebridge
i tried to add but it says no such file or directory
In wich operating system are you running the script?
raspbian
Try with sudo
before the nano command
i tried still it says same
https://github.com/oznu/docker-homebridge/wiki/Homebridge-on-LibreELEC
i followed the above to setup homebridge
Did you try the approach described in the last 2 pages?
in which last 2 pages?
You posted another to a pdf page before the previous one
yes i tried that but that was not working
Please execute: ls /storage/.config/autostart.sh
it says la command not found
Sorry ls
it says like this ls: cannot access '/storage/.config/autostart.sh': No such file or directory