Comments (15)
How exactly to you get the credentials manually? I am facing the same issue, and would like to use the plugin until this gets resolved.
Thanks.
from homebridge-apple-tv.
Using the appletv command line tool, check the referenced issue.
from homebridge-apple-tv.
Sorry, where do you set the option to disable automatic discovery?
config.json of Homebridge? Should be in the AppleTV platform section right?
EDIT
Sorry, it was to early yesterday.
Pair devices manually and add them to the config in advance. Also set the "showPairSwitches" option to false after platform and name in the platform section. The auto discovery will still run, but it will not try to add the switches so it will not crash because of two same named switches.
from homebridge-apple-tv.
I had a similar problem and resolved it by adding "showPairSwitches": false to my config.json
from homebridge-apple-tv.
Hi @normen: "Using the appletv command line tool, check the referenced issue.". Can you please add a link? Thanks in advance ..
from homebridge-apple-tv.
Hi @MsCopernic, can you look at the first post for the link? Thanks in advance...
from homebridge-apple-tv.
Hi @normen, thanks, after installing the command tool, I'm getting the following error:
iMac-de-Jorge:~ jorgelperez$ appletv pair
? Which Apple TV would you like to pair with? Alcoba (192.168.1.57:49154)
✔ Connecting to Alcoba
✔ Initiating Pairing
? Enter the 4-digit pin that's currently being displayed on Alcoba 0864
✖ Completing Pairing
Cannot read property 'toString' of undefined
iMac-de-Jorge:~ jorgelperez$
Any idea?
Regards
from homebridge-apple-tv.
Hi @MsCopernic, it looks like it can't read the property "toString" of a nullpointer.
from homebridge-apple-tv.
Yup, that's clear for me @normen, but from where and why? How do I fix this problem?
from homebridge-apple-tv.
Hi @normen, I tried again today and it worked ??? I have made no changes. Thanks anyway.
from homebridge-apple-tv.
As said before or some where else, the AppleTV responds so fast, that they is/are detected twice:
❯ Alcoba (192.168.1.57:49154)
Estudio Merce (192.168.1.53:49154)
Alcoba (192.168.1.57:49154)
Estudio Merce (192.168.1.53:49154)
The only difference from what I did yesterday, is that this time I selected the ones from the second detection. I assume that if you choose the first ones, the information from that detection is gone, that may conduce to the null pointer error.
Regards
from homebridge-apple-tv.
I also encountered this issue on my Pi and resolved it via the suggestions above. I found the manual pairing process to be a bit confusing at first, so if it helps anyone:
First I found the file location of the plugin on my Pi. For me it was: /usr/lib/node_modules/homebridge-apple-tv/node_modules/node-appletv/bin
Then I opened up a terminal window from that folder location and ran: cd node_modules/node-appletv/bin
Then I ran: ./appletv pair
My AppleTV popped up twice - I chose to pair with the second one and followed the on-screen prompts.
Lastly, I added "showPairSwitches": false
to my config file directly under the "platforms" section and pasted the pairing code I got above into the appropriate credentials place.
from homebridge-apple-tv.
So I'm getting this error and Homebridge not starting I have followed the above posts and paired my ATV manually but HB still will not start. Here is the error message and the part of my config file:
[3/13/2019, 9:23:25 PM] [Apple TV] [INFO] Discovered Apple TV (Crox Apple TV 4K) at 192.168.0.25
[3/13/2019, 9:23:25 PM] [Apple TV] [INFO] Discovered Apple TV (Crox Apple TV 4K) at 192.168.0.25
[3/13/2019, 9:23:25 PM] [Apple TV] [INFO] Connecting to "Apple TV 4K"
[3/13/2019, 9:23:25 PM] [Apple TV] [INFO] Connected to "Apple TV 4K"
(node:4142) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'split' of undefined
at connectToDevices (/usr/local/lib/node_modules/homebridge-apple-tv/helpers/devices.js:31:29)
(node:4142) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:4142) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
{
"platform": "AppleTV",
"showPairSwitches": false,
"name": "Apple TV",
"hideWelcomeMessage": true,
"devices": [{
"id": "lounge",
"name": "Apple TV 4K",
"credentials": "2ECA59F4-7BE6-441B-9F82-8CD602C5A657:30323445354434432d384630412d343342442d423044432d354235364535334635303236:33336133643661352d383663392d343961322d393365322d316139316438346666383064:0a885827cf204e1ae151a4530cf4b91fad22ee0b9c3b0290823fb6e3839ae72f:6295837a2dd0d0d34cc05af55bf69e41e9f64632c1d9e691b69a47db291da41c"
},
Any more ideas please?
from homebridge-apple-tv.
Fixed it, changed the name of Apple TV and now working
from homebridge-apple-tv.
Which name did you change @Crox77 ? The name under “devices”:[] or the name under “platform”: ?
Thanks!
from homebridge-apple-tv.
Related Issues (20)
- Multiple ATV and "defaultSwitchesIncludeATVName": true results in wrong labeling
- Install on Windows? HOT 2
- Credentials
- Cannot install Error: [email protected] HOT 44
- How to Remove ‘Pair TV’ Accessories HOT 2
- libsodium
- Always get long press with simple command. HOT 3
- Typo in documentation
- Cant install HOT 21
- can't find witch case for change audio source with long press on play/pause HOT 6
- I've succesfully installed the plugin but can't seem to work out the config
- Single On/Off Switch?
- Device discovered twice HOT 1
- Not able to configure keyboard for type something to Apple Tv.
- Plugin is *very* broken
- Sleep command not working anymore with TVOS 13
- Plugin Breaks with Homebridge V1.0.0-1.0.1 HOT 2
- Apple TV plugin installation HOT 1
- Errors towards a r
- Errors installing o Homebridge 18.12.1 unable to complete please help
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-apple-tv.