Skip to content
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

TypeError: Cannot read properties of undefined (reading 'id') #282

Open
coreTech51 opened this issue Nov 12, 2022 · 10 comments
Open

TypeError: Cannot read properties of undefined (reading 'id') #282

coreTech51 opened this issue Nov 12, 2022 · 10 comments

Comments

@coreTech51
Copy link

Plugin not functioning. (See attachment) I'm running homebridge-platform-insteonlocal v0.5.4-3
It will start, state "Loading accessory from cache", then say the number found, then "Restoring existing accessory from cache", then state "Homebridge v1.5.1 (HAP v0.10.4) (InsteonLocal) is running on port 56513.
[11/12/2022, 8:34:30 AM] [InsteonUI] Hub/PLM info is {
raw: '02603C98480333A5',
type: '60',
id: '3C9848',
deviceCategory: { id: 3, name: 'Network Bridges' },
deviceSubcategory: { id: 51 },
firmwareVersion: 'A5'
}"
and then list "error getting power states".

Next it will state: [homebridge-platform-insteonlocal] This plugin generated a warning from the characteristic 'On': characteristic value expected boolean and received undefined. See https://homebridge.io/w/JtMGR for more info.
[homebridge-platform-insteonlocal] This plugin generated a warning from the characteristic 'Rotation Speed': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.

Next this will happen:
/var/lib/homebridge/node_modules/homebridge-platform-insteonlocal/node_modules/q/q.js:137
task();
^
TypeError: Cannot read properties of undefined (reading 'id')
at /var/lib/homebridge/node_modules/homebridge-platform-insteonlocal/src/InsteonLocalPlatform.ts:120:27
at /var/lib/homebridge/node_modules/homebridge-platform-insteonlocal/node_modules/q/q.js:2055:17
at runSingle (/var/lib/homebridge/node_modules/homebridge-platform-insteonlocal/node_modules/q/q.js:137:13)
at flush (/var/lib/homebridge/node_modules/homebridge-platform-insteonlocal/node_modules/q/q.js:125:13)
at processTicksAndRejections (node:internal/process/task_queues:78:11)
[InsteonLocal] Child bridge process ended
[InsteonLocal] Process Ended. Code: 1, Signal: null
[InsteonLocal] Restarting Process...
[InsteonLocal] Launched child bridge with PID 9610
Insteon UI Error.pdf

@kuestess
Copy link
Owner

@coreTech51 Can you post your config? Any recent changes to your config?

@coreTech51
Copy link
Author

coreTech51 commented Nov 14, 2022 via email

@coreTech51
Copy link
Author

coreTech51 commented Nov 21, 2022 via email

@kuestess
Copy link
Owner

@coreTech51 Can you repost your config (don't see it attached). Interesting that it just started happening without any significant changes...have you tried restarting your hub?

@coreTech51
Copy link
Author

@kuestess
Copy link
Owner

@coreTech51 This one's a little hard to diagnose, but looks like your hub isn't responding to a request for info. I removed some duplicate calls in the version I just published that should help. Give it a try and let me know if that works. The latest release should also fix the issue with renaming/removing accessories.

@coreTech51
Copy link
Author

Thanks. I'll update and monitor its function.

@JimCSaratoga
Copy link

@kuestess working like a charm ! Quick question I'm noticing a lot of old Insteon ID's showing up in the config device pulls on the portal at homebridge:3000 - can you remind me how to delete that file and pull it fresh from the hub?

@coreTech51
Copy link
Author

The issue with renaming/removing accessories seem to be fixed, but I'm still having an issue with connecting to the hub. I went into the InsteonUI - Configuration to see the Hub Information, which I can, but I'm getting little to no "linked devices". This message comes up "Links No links in Insteon config - please click Get Links to get links and devices from Hub". I would restart the Hub, unplug and plug back in. What could this be? Thanks for your help.

@kuestess
Copy link
Owner

kuestess commented Dec 6, 2022

@coreTech51 Sounds like the ui loads and you're not getting the same error (as above) anymore? If you don't have any linked devices, then you may need to get hub info again, or get devices again on the device page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants