marcoraddatz / homebridge-docker

Dockerized Homebridge. No plugins pre-defined, hassle-free setup. Read instructions!
Apache License 2.0
127 stars 47 forks source link

Home App under iOS 11.2.1 does not find device #42

Closed drtp closed 6 years ago

drtp commented 6 years ago

Hello,

I am currently using the Homebridge on a Raspberry Pi 3 in combination with the following plugins:

homebridge-config-ui homebridge-homematic homebridge-broadlink-rm homebridge-http-simple-switch homebridge-fritz

Everything is up to date and works fine so far.

Now, I planned to move the Homebridge into a Docker container on my DS718+. The installation worked flawlessly and the Homebridge started without any error message (except from the well known warnings). See here and here for more details. However, my problem is that in contrast to the Raspi installation now the Home App under iOS 11.2.1 can not find the respective device anymore. I have installed no firewall under DSM 6.1. Do you have any idea what to do?

Cheers,

Thorsten

drtp commented 6 years ago

Hi again,

I just read something about problems with the Synology Bonjour Service here. The solution seems to be a modified .env file with respect to DS_HOSTNAME. I will try with this one and let you know, if it works:

# Options are all valid timezones.
# Get a list from here: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
# Default timezone is "Europe/Berlin"
HOMEBRIDGE_TIMEZONE=Europe/Berlin

# The value of the DS_HOSTNAME environment should exactly match the server name as shown under
# "Synology DSM Control Panel" -> "Info Centre" -> "Server name", it should contain no spaces or special characters.
# Default is unset.
# DO ONLY SET IF YOU GOT PROBLEMS RUNNING HOMEBRIDGE!
DS_HOSTNAME=DiskStation

CU,

Thorsten

marcoraddatz commented 6 years ago

That's what I wanted to suggest. Good luck!

drtp commented 6 years ago

Thank you Marco.

drtp commented 6 years ago

Unfortunately, neither modifying the .env file nor turning off Bonjour did help. I am still not able to find the Homebridge with the Home App, if it runs in a Docker container. Running the Homebridge with exactly the same config.json and plugins on a Raspi 3 immediately gives me access to the device. Here, I read something about possible issues with DiskStations having two ethernet ports. My DS718+ has two ports. Could this cause the problems?

deadbone commented 6 years ago

Hi drtp Did you check the checkbox in your homebridge's container to use the same network like the host ? (not very sure about my english lol) I've an old 713+ with 2 ethernet ports, all's good for me

yubiao commented 6 years ago

@drtp for the Bonjour service problem, some one has previously commented:

"I need to shutdown the docker image, disable Bonjour in DSM, start the docker image. Homekit devices are working fine. Afterwards I can activate Bonjour again and it keeps working. But as soon as the Docker image is restarted, it stops working and I need to repeat the process."

Try that see if it works for you.

drtp commented 6 years ago

Did you check the checkbox in your homebridge's container to use the same network like the host ?

Yes, I did. No success so far.

drtp commented 6 years ago

@drtp for the Bonjour service problem, some one has previously commented:

I know and I tried. Unfortunately, that did not have any influence on the behaviour either. In addition, I always deleted the persist folder and changed the username within the config.json file.

drtp commented 6 years ago

Unfortunately, I didn't manage it. Nothing, I tried, did help. Hence, I went back to my Raspi 3 installation. If someone has an idea how to solve the problem, I would be happy to know.

CU,

Thorsten

xking3 commented 6 years ago

Same problem here with iOS 11.2.5 It does not recognize the the Homebridge. Before the update it worked fine. Everthing was perfect. First i tought it was some miscofigruation or some other problem. I denistalled the docker container end did a fresh setup. Everthing seames to be ok. The protocol gives me only these errors: WARNING The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi... ... But on an other poste it was written that this is not to mention. Could you please help. I realy liked the option of using the docker to conntect to the homecenter. The solution is perfect!

marcoraddatz commented 6 years ago

I'm sorry to hear that, but unfortunately I cannot do anything about it: I tried to reproduce this bug without success. Had to re-install Homekit accessories yesterday, but all my devices got detected without any problems.

drtp commented 6 years ago

Meanwhile, I have tried so many things. For instance, I renamed the hostname of my DiskStation, I deactivated all my other Docker containers, I changed again the username und deleted several times the persist folder, I changed the IPv6 settings, and so on and so on. Unfortunately, nothing helped. My iPhone X is not able to find the Homebridge within the Docker container. Since it works flawlessly in combination with my Raspberry Pi 3 using the same settings, I changed back to it again. If anybody finds a way to cope with this problem, I would be happy to hear. In addition, I have started several similar threads here and here.

By the way, I believe that this issue has nothing to do with iOS but with some specialities of the docker and DS settings. Otherwise, it also should not work with the Homebridge installed on a Raspi.

Sweetgenius19 commented 6 years ago

Have you tried changing the PIN? You might want to change the pin by 1 in the config.json and start with a fresh container.

xking3 commented 6 years ago

I had the same though some day's ago but i could not test it so far. I will test that and report the result ASAP.

marcoraddatz commented 6 years ago

I changed the IPv6 settings

The container doesn't work well with IPv6. Is it disabled for you local lan?

xking3 commented 6 years ago

I will check that.

drtp commented 6 years ago

The container doesn't work well with IPv6. Is it disabled for you local lan?

I tried both disabling and enabling IPv6. Unfortunately, there has been no success in either case.

Someone wrote that the issue might result from the fact that the DS718+ has two Ethernet interfaces. However, I only use one of them. What about the other guys having the same issues? Does your DiskStation has two LAN ports as well?

marcoraddatz commented 6 years ago

My 415+ also has two lan ports. I use them with a bond and had no problems with it.

oechslein commented 6 years ago

Maybe it helps others: My iOS devices also could not find Homebridge (running in Docker on Synology). After I stopped the second docker image that was running ioBroker, all of them could find Homebridge.

Digging a bit into it, a network scan while running both docker images showed that my Synology was not found under its normal name "Diskstation" but under the ioBroker docker image name.

I was able to start ioBroker docker image afterwards without any problems to the Homebridge connection.