lukasroegner / homebridge-apple-tv-remote

Plugin for controlling Apple TVs in homebridge.
MIT License
131 stars 13 forks source link

Apple TV not found #82

Closed RamBumBada closed 3 years ago

RamBumBada commented 3 years ago

Hi Lukas,

i hope you can give an advice, because my Apple TV was not found after the installation of your Plugin.

I use the official Homebridge Image and first installed npm install -g node-appletv-x. But this installation failed due to missing rights, so i tried sudo npm install -g node-appletv-x and it installed properly.

After this i launched the pairing process in the terminal with appletv pair. I selected my ATV and entered the Code shown on my TV. At last i copied the Credentials.

pi@homebridge:/var/lib/homebridge $ appletv pair ? Which Apple TV would you like to pair with? Apple TV Wohnzimmer (192.xxx.xxx.xxx:YYYYY) ✔ Connecting to Apple TV Wohnzimmer ✔ Initiating Pairing ? Enter the 4-digit pin that's currently being displayed on Apple TV Wohnzimmer 3705 ✔ Completing Pairing Credentials: FBF2F118-4638-47D4-B7BA-608717BC8EAF:623630656662653<...>

Then I installed your plugin via the Homebridge UI, give the ATV a unique name and entered the Credentials. After this i ticked the box to expose the On/Off switch and named it.

After restarting the Plugins i get permanent following message...

[06/12/2020, 10:35:00] [Apple TV Platform] [Apple TV] Error while connecting for heartbeat: Error: Apple TV not found while scanning. [06/12/2020, 10:35:04] [Apple TV Platform] [Apple TV] Error while connecting: Error: Apple TV not found while scanning. [06/12/2020, 10:35:11] [Apple TV Platform] [Apple TV] Error while connecting: Error: Apple TV not found while scanning. [06/12/2020, 10:35:18] [Apple TV Platform] [Apple TV] Error while connecting: Error: Apple TV not found while scanning. [06/12/2020, 10:35:25] [Apple TV Platform] [Apple TV] Error while connecting: Error: Apple TV not found while scanning. [06/12/2020, 10:35:32] [Apple TV Platform] [Apple TV] Error while connecting: Error: Apple TV not found while scanning. [06/12/2020, 10:35:39] [Apple TV Platform] [Apple TV] Error while connecting: Error: Apple TV not found while scanning. [06/12/2020, 10:35:46] [Apple TV Platform] [Apple TV] Error while connecting: Error: Apple TV not found while scanning. [06/12/2020, 10:35:53] [Apple TV Platform] [Apple TV] Error while connecting: Error: Apple TV not found while scanning. [06/12/2020, 10:35:57] [Apple TV Platform] [Apple TV] Error while connecting: Error: Apple TV not found while scanning. [06/12/2020, 10:36:00] [Apple TV Platform] [Apple TV] Error while connecting: Error: Apple TV not found while scanning. [06/12/2020, 10:36:00] [Apple TV Platform] [Apple TV] Error while connecting for heartbeat: Error: Apple TV not found while scanning.

Homebridge, Node and your Plugin are Up to Date, so i have no further ideas.

Thanx in advance! Thomas

lukasroegner commented 3 years ago

There are 2 things you can check:

RamBumBada commented 3 years ago

Thank you for your really quick reply.

Of course, both point was checked. But i‘ve found the mistake... It‘s an really anoying one!

I copied the Credentials from the Terminal on my iPad with a Magic Keyboard. If i paste the Credentials via the Plugin Settings, following happend.

FBF2F118-4638-47D4-B7BA-608717BC8EAF:623630656662653<...>

becomes

fbf2f118-4638-47d4-b7ba-608717bc8Eaf:623630656662653<...>

All uppercase characters are converted into lowercase ones. This does‘nt happend if i copy the Credentials ito the *.json file.

Thanx again for your reply and the tipp.

Kind regards Thomas

P.S. Is it possible to start e.g. Netflix via this plugin!?

LukasDuitmann commented 2 years ago

Hey guys, I have a similar problem..

A few weeks ago, anything works. Yesterday all was over. I will install it again, but then comes this:

When I type the code "appletv pair", there is a loading message "Connecting to Apple TV Wohnzimmer" - but nothing happened..

How can I find the Credentials?

Kind regards, Lukas