Open allwyn007 opened 4 years ago
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
But you previously said that it contains:
docker restart homebridge
i thought so but now iam trying to nano its not showing... is it possible to create again
You must create the .config
Folder before with mkdir /storage/.config
it says like this mkdir: cannot create directory ‘/storage/.config’: Permission denied
i tried with sudo its created
use sudo mkdir /storage/.config
its created ... can you tell me the next step
sudo nano /storage/.config/autostart.sh
i did it and i pasted the sleep 300 docker restart homebridge but still the problem exists
i mean the homebridge is not getting restarted
with respect to 300
Did you put th 2 commands into 2 different lines?
yes... still not working
Did you restart the raspbian machine ?
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