homebridge-people
homebridge-people copied to clipboard
Ping does not work
Webhook looks good and triggers work as expected. But the frequent pings do not work. Does anyone has some suggestion what I can try so solve this?
I use homebridge via Synology Docker.
[2018-1-30 14:04:46] Loaded plugin: homebridge-people
[2018-1-30 14:04:46] Registering platform 'homebridge-people.People'
[2018-1-30 14:04:46] Registering accessory 'homebridge-people.PeopleAccessory'
[2018-1-30 14:04:46] Registering accessory 'homebridge-people.PeopleAllAccessory' [2018-1-30 14:04:47] [People] Initializing People platform...
[2018-1-30 14:04:47] [People] Initializing platform accessory 'user1'...
[2018-1-30 14:04:47] [People] Initializing platform accessory 'user2'...
[2018-1-30 14:04:47] [People] Initializing platform accessory 'Anyone'...
[2018-1-30 14:04:47] [People] Initializing platform accessory 'No One'...
[2018-1-30 14:04:47] [People] WebHook: Started server on port '51828'
I am having the same issue. Also on Synology Docker
I am having the same problem too. Also on Synology Docker
Same issue, running Synology Docker.
I have the same problem but I run homebridge on a raspberry pi with docker
I’m having the same issue with homebridge on an unRAID docker.
I did a little digging and it looks like there is no ping utility installed by default with the docker container I was using. As a temporary fix, I opened a bash shell in the container and installed a ping utility manually:
docker exec -it HomeBridgewithwebGUI /bin/bash
then:
sudo apt-get install inetutils-ping
Hopefully this can help others on this thread who are using Homebridge in a docker. I suspect ping will need to be reinstalled after any update to the container, unless the container developer(s) address this directly.
I did a little digging and it looks like there is no ping utility installed by default with the docker container I was using. As a temporary fix, I opened a bash shell in the container and installed a ping utility manually:
docker exec -it HomeBridgewithwebGUI /bin/bash
then:
sudo apt-get install inetutils-ping
Hopefully this can help others on this thread who are using Homebridge in a docker. I suspect ping will need to be reinstalled after any update to the container, unless the container developer(s) address this directly.
Any suggestions for windows? It looks like I am not getting pings either therefore not getting occupancy changes.
any solutions for homebridge on macOS?
If you've installed the Synology package to run docker homebridge, then this creates a startup.sh file in the volume you choose during the setup wizard. The Homebridge UI does not provide a way to edit this file so you'll need to do this using DSM or your own computer's editor. Add the following line to the bottom of the startup.sh file:
apk add iputils --no-cache
To apply the changes made to the startup.sh file you need to restart the entire container using the Docker app in DSM.
If you've installed the [Synology package../..
apk add iputils --no-cache
This fixed my issue! Thanks for your help!
If you've installed the Synology package to run docker homebridge, then this creates a startup.sh file in the volume you choose during the setup wizard. The Homebridge UI does not provide a way to edit this file so you'll need to do this using DSM or your own computer's editor. Add the following line to the bottom of the startup.sh file:
apk add iputils --no-cache
To apply the changes made to the startup.sh file you need to restart the entire container using the Docker app in DSM.
Thank you! fixed mine aswell.
For anyone else - you can run this in the terminal as well (tried from windows tbh)
sudo apt-get install inetutils-ping apk add iputils --no-cache
Both of these packages have been added to the base oznu/homebridge docker image.
@oznu Having ping helps, but the container user ‘abc’ still gets this trying to execute it :
ping: socket: Operation not permitted
So you might want to add this into your startup.sh too,
setcap 'cap_net_raw+ep' $(which ping)
Which then allows non-root user to use ping successfully, assuming no other docker restrictions on capabilities being set.
@oznu any chance you would make the non-root user able to run the ping command within the homebridge docker image? Running homebridge on DSM with docker-compose, the "homebridge-people-guest-mode" plugin seems not to be working correctly because of this issue.
I tried to add
apt-get install inetutils-ping
setcap 'cap_net_raw+ep' $(which ping)
to the startup.sh script, as suggested by @tomtastic but without any success. :(