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

Object entry error #6

Closed
dockramer opened this issue Dec 28, 2017 · 7 comments
Closed

Object entry error #6

dockramer opened this issue Dec 28, 2017 · 7 comments
Labels

Comments

@dockramer
Copy link

I've got 3 roku sticks that are correctly identified by roku-config and added to config.json, but I'm unable to start homebridge and I get this error...

[12/28/2017, 4:06:05 PM] [Roku] Initializing Roku accessory...

/usr/local/lib/node_modules/homebridge-roku/src/homebridge-roku.js:116
return Object.entries(this.appMap)
^
TypeError: Object.entries is not a function
at RokuAccessory.setupChannels (/usr/local/lib/node_modules/homebridge-roku/src/homebridge-roku.js:116:19)
at RokuAccessory.setup (/usr/local/lib/node_modules/homebridge-roku/src/homebridge-roku.js:33:32)
at new RokuAccessory (/usr/local/lib/node_modules/homebridge-roku/src/homebridge-roku.js:24:10)
at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:275:29)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:86:38)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:456:32)
at tryModuleLoad (module.js:415:12)
at Function.Module._load (module.js:407:3)
at Function.Module.runMain (module.js:575:10)
at startup (node.js:159:18)

Thoughts?
Thanks

@bschlenk
Copy link
Owner

You must be using an older version of node. I meant to support node 6 or higher, I'll make some changes and remove Object.entries, it wasn't added until some time after node 6.

@bschlenk bschlenk added the bug label Dec 29, 2017
@dockramer
Copy link
Author

node -v returns 6.0.0

thank you for your quick resposnse!

@bschlenk
Copy link
Owner

Can you try updating homebridge-roku and running it again? I just published an update.

@dockramer
Copy link
Author

Got a UUID naming error.

changed each entry name to it's corresponding name (Bedroom, family room, etc) and homebridge loads all 3 without an error. have'n't had a chance to see how it works with siri yet. I'll let you know.

Thanks again

@bschlenk
Copy link
Owner

I’m curious how you have it set up. homebridge-roku-config doesn’t recognize multiple devices yet as far as I know, did you have to add them manually?

@dockramer
Copy link
Author

No, it added them automatically. I think I ran config several times and they were all eventually added. All I had to do was change the name for each of them. But on homekit, i've got a ton of switches now for each app, volumeup, voluomedown, volumeup, poweron.

Each switch works turning the selected app on, but it won't turn the TV on.
Volume switches don't do anything
Poweron switch doesn't do anything

Would be nice if switching on app would start it up, and turning switch off would go home.

@bschlenk
Copy link
Owner

bschlenk commented Apr 7, 2018

Closing this as the original reported issue has been fixed. Feel free to open a separate issue for anything else discussed here. As for your last comment, the latest version of homebridge-roku should return home when toggling off an app.

@bschlenk bschlenk closed this as completed Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants