New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Cannot read property 'id' of undefined" in SoundTouchPlatform.HomebridgePlatform.accessoryFromDevice #9
Comments
Same problem for me with Soundtouch 20 |
I'm having the same issue. Even thought, I try to stick to simple setup; { my error is here; [SoundTouch] TypeError: Cannot read property 'length' of undefined |
`{ |
[6/17/2019, 8:09:48 PM] [SoundTouch] Error: Can't find device using the name 'SoundTouch Kr' on your network |
For me the plugin runs without problems. Here's my config on which you can orient or adapt. Ps. I would leave "discoverAllAccessories": true and manually create the speakers as with me. "accessories": [], "platforms": [{ |
Hey @Nastras, Thanks for pasting an example that should work. I adapted it like the following (Badlautsprecher being a soundtouch 10 and Kuechenlautsprecher the soundtouch 20). Names and IPs are correct. Rest was left untouched. Next try for me would be to physically disconnect one device and see if it stems from a specific one of them. Or afterwards do a factory reset of the soundtouch devices. However I still suspect this to be a small issue in the code - after all it's just a nullpointer, right @bbriatte? ;) { |
Thanks for your help, but it still gives me the same error. [SoundTouch] TypeError: Cannot read property 'id' of undefined |
Hallo
Ist das korrekt für einen Lautsprecher?
Is this correct for a speaker?
{
"platform": "SoundTouchPlatform",
"name": "Bose SoundTouch", Name is the device name you assigned in the Soundtouch app for your speaker. This one or
"accessories": [{
"name": "Badlautsprecher", This one?
"ip": "192.168.178.35",
"onVolume": 10,
"unmuteVolume": 10,
"source": "true",
"volume": {
"mode": "speaker"
},
"presets": [{
"name": "Sender 1",
"index": 1
},
{
"name": "Sender 2",
"index": 2
},
{
"name": "Sender 3",
"index": 3
},
{
"name": "Sender 4",
"index": 4
},
{
"name": "Sender 5",
"index": 5
},
{
"name": "Sender 6",
"index": 6
}
]
},
{
],
"global": {
"sources": [{
"source": "QPLAY",
"enabled": false
}]
}
},
Von: -Nastra- [mailto:notifications@github.com]
Gesendet: Dienstag, 18. Juni 2019 05:15
An: bbriatte/homebridge-soundtouch-platform <homebridge-soundtouch-platform@noreply.github.com>
Cc: REvilo82 <O_Kriegerow@web.de>; Comment <comment@noreply.github.com>
Betreff: Re: [bbriatte/homebridge-soundtouch-platform] "Cannot read property 'id' of undefined" in SoundTouchPlatform.HomebridgePlatform.accessoryFromDevice (#9)
Name is the device name you assigned in the Soundtouch app for your speaker.
<https://user-images.githubusercontent.com/27686185/59650899-fe071400-9187-11e9-9cc3-77d74b41dae2.jpeg>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#9?email_source=notifications&email_token=AMMFSGUZOZ7J7SVMKKCWTRLP3BHMDA5CNFSM4HYRHT22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX5BMUI#issuecomment-502928977> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AMMFSGQDBIONEQNAXVJB253P3BHMDANCNFSM4HYRHT2Q> . <https://github.com/notifications/beacon/AMMFSGUJPGMQ3QKYZXS6NP3P3BHMDA5CNFSM4HYRHT22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX5BMUI.gif>
|
Hi @gerritfries @sebro83 @paewrblue, Check the new release 1.2.4 on npm, and tell me if it works |
Hi @bbriatte It works like a charm now. |
Thank you @bbriatte, works perfectly now! |
I'm running a Soundtouch 10 and 20 with the following config:
Even a more specific config, defining name, IP etc. results in the same error in the log and the devices not being available via homebridge:
Jun 16 15:36:29 homebridge homebridge[9496]: [2019-6-16 15:36:29] [SoundTouch] Initializing SoundTouchPlatform platform...
Jun 16 15:36:29 homebridge homebridge[9496]: [2019-6-16 15:36:29] [SoundTouch] Searching accessories...
...
Jun 16 15:36:30 homebridge homebridge[9496]: [2019-6-16 15:36:30] Homebridge is running on port 51826.
Jun 16 15:36:34 homebridge homebridge[9496]: [2019-6-16 15:36:34] [SoundTouch] [Kitchen] Found device
Jun 16 15:36:34 homebridge homebridge[9496]: [2019-6-16 15:36:34] [SoundTouch] [Badlautsprecher] Found device
Jun 16 15:36:34 homebridge homebridge[9496]: [2019-6-16 15:36:34] [SoundTouch] [Kitchen] Found preset n°1 '...' on device
...
Jun 16 15:36:34 homebridge homebridge[9496]: [2019-6-16 15:36:34] [SoundTouch] [Kitchen] Found preset n°6 '...' on device
Jun 16 15:36:35 homebridge homebridge[9496]: [2019-6-16 15:36:35] [SoundTouch] [Badlautsprecher] Found preset n°1 '...' on device
...
Jun 16 15:36:35 homebridge homebridge[9496]: [2019-6-16 15:36:35] [SoundTouch] [Badlautsprecher] Found preset n°6 '...' on device
Jun 16 15:36:35 homebridge homebridge[9496]: [2019-6-16 15:36:35] [SoundTouch] [Badlautsprecher] Found local source 'AUX' with account 'AUX' on device
Jun 16 15:36:35 homebridge homebridge[9496]: [2019-6-16 15:36:35] [SoundTouch] [Badlautsprecher] Found local source 'QPLAY' with account 'QPlay1UserName' on device
Jun 16 15:36:35 homebridge homebridge[9496]: [2019-6-16 15:36:35] [SoundTouch] [Badlautsprecher] Found local source 'QPLAY' with account 'QPlay2UserName' on device
Jun 16 15:36:35 homebridge homebridge[9496]: [2019-6-16 15:36:35] [SoundTouch] [Badlautsprecher] Found local source 'BLUETOOTH' with account '' on device
Jun 16 15:36:35 homebridge homebridge[9496]: [2019-6-16 15:36:35] [SoundTouch] [Kitchen] Found local source 'AUX' with account 'AUX' on device
Jun 16 15:36:35 homebridge homebridge[9496]: [2019-6-16 15:36:35] [SoundTouch] [Kitchen] Found local source 'BLUETOOTH' with account '' on device
Jun 16 15:36:35 homebridge homebridge[9496]: [2019-6-16 15:36:35] [SoundTouch] [Kitchen] Found local source 'QPLAY' with account 'QPlay1UserName' on device
Jun 16 15:36:35 homebridge homebridge[9496]: [2019-6-16 15:36:35] [SoundTouch] [Kitchen] Found local source 'QPLAY' with account 'QPlay2UserName' on device
Jun 16 15:36:35 homebridge homebridge[9496]: [2019-6-16 15:36:35] [SoundTouch] TypeError: Cannot read property 'id' of undefined
Jun 16 15:36:35 homebridge homebridge[9496]: at SoundTouchPlatform.HomebridgePlatform.accessoryFromDevice (/usr/lib/node_modules/homebridge-soundtouch-platform/node_modules/homebridge-base-platform/dist/platform.js:108:
Jun 16 15:36:35 homebridge homebridge[9496]: at /usr/lib/node_modules/homebridge-soundtouch-platform/node_modules/homebridge-base-platform/dist/platform.js:97:84
Jun 16 15:36:35 homebridge homebridge[9496]: at Array.map ()
Jun 16 15:36:35 homebridge homebridge[9496]: at SoundTouchPlatform. (/usr/lib/node_modules/homebridge-soundtouch-platform/node_modules/homebridge-base-platform/dist/platform.js:97:47)
Jun 16 15:36:35 homebridge homebridge[9496]: at step (/usr/lib/node_modules/homebridge-soundtouch-platform/node_modules/homebridge-base-platform/dist/platform.js:45:23)
Jun 16 15:36:35 homebridge homebridge[9496]: at Object.next (/usr/lib/node_modules/homebridge-soundtouch-platform/node_modules/homebridge-base-platform/dist/platform.js:26:53)
Jun 16 15:36:35 homebridge homebridge[9496]: at fulfilled (/usr/lib/node_modules/homebridge-soundtouch-platform/node_modules/homebridge-base-platform/dist/platform.js:17:58)
Do you have an idea how to resolve that issue?
The text was updated successfully, but these errors were encountered: