question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Input Controls Missing

See original GitHub issue

Updated to 0.9 last night and tried enabling input controls but had no controls show up in Eve or Home. I’ve tried unpairing and re-pairing, as well as setting up a separate Apple TV to avoid any accessory cache, but still haven’t gotten the input controls to show up at all. Here’s my config:

        {
            "platform": "DACP",
            "devices": [
                {
                    "name": "Bedroom Apple TV",
                    "pairing": "VALID",
                    "serviceName": "VALID",
                    "features": {
                        "no-volume-controls": true,
                        "alternate-playpause-switch": true,
                        "alternate-input-controls": true,
                        "album-artwork": "/tmp/nowplaying.png"
                    }
                }
            ]
        }

I tried many other configs to try and get something to show up, but was never able to. Here are some example feature configs I’ve tried:

"features": {
    "no-volume-controls": true,
    "alternate-input-controls": true
}

"features": {
    "alternate-input-controls": true
}

"features": {
    "input-controls": true
}

"features": {
    "input-controls": ["menu", "topmenu"]
}

Thanks for any support you can provide!

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
StewartSnowcommented, Mar 8, 2018

Just +1-ing this. I’m seeing the exact same issue using alternate-input-controls:true on v 0.9.1 :

/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:150
      if (service.subtype.toString() === existing.subtype.toString())
                                                          ^
TypeError: Cannot read property 'toString' of undefined

Remove that feature and it’s fine. Same behaviour if you specify individual buttons instead of just true.

1reaction
stephenwoodfordcommented, Feb 28, 2018

I’m now receiving a new error when starting homebridge. I haven’t had a chance to do much troubleshooting yet but wanted to see if it was related to this. I don’t believe I’ve changed anything else besides updating to 0.9.1. My config is same as above.

[2/27/2018, 6:37:29 PM] [DACP] Initializing DACP platform...
[2/27/2018, 6:37:29 PM] [DACP] DACP Platform Plugin Loaded - Version 0.9.1
[2/27/2018, 6:37:29 PM] [DACP] Found accessory in config: "Bedroom Apple TV"
[2/27/2018, 6:37:29 PM] [DACP] Initializing platform accessory 'Bedroom Apple TV'...

/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:150
      if (service.subtype.toString() === existing.subtype.toString())
                                                          ^
TypeError: Cannot read property 'toString' of undefined
    at Accessory.addService (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:150:59)
    at /usr/local/lib/node_modules/homebridge/lib/server.js:432:19
    at Array.forEach (<anonymous>)
    at Server._createAccessory (/usr/local/lib/node_modules/homebridge/lib/server.js:412:14)
    at Server.<anonymous> (/usr/local/lib/node_modules/homebridge/lib/server.js:374:32)
    at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/once.js:16:19
    at DacpPlatform.accessories (/usr/local/lib/node_modules/homebridge-dacp/src/index.js:195:5)
    at Server._loadPlatformAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:364:20)
    at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:308:16)
    at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:85:36)
    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (module.js:660:30)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)

EDIT after some troubleshooting:

Modifying my config to remove any DACP devices allows homebridge to start, so seems to be something with DACP.

        {
            "platform": "DACP",
            "devices": []
        }

EDIT 2:

Just removing "alternate-input-controls": true fixes it, so seems to be something with the input control accessories. On the bright side, regular “input-controls” does seem to be working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

2907168 - Input Control Icon is missing - SAP Support Portal
Symptom. Input Control Icon is missing on the side panel bar. Input Controls option from Analysis>Filters>Input Control is visible but ...
Read more >
Input controls have disappeared! | Customer Engagement ...
I started using the Make.Preview.Powerapps.Com portal recently, and really like the new treeview method of navigating solution elements.
Read more >
Missing Input Controls in JasperReports Server Report Runner
I am using the report runner in the server configuration listed bleow and on occasion my input controls disappear.
Read more >
value missing from input controls in Firefox - MSDN - Microsoft
Does anyone know how to get the HTML of a div with the actual, current values for the input controls? In IE, I...
Read more >
Help! The input control missing when scrolling #6004 - GitHub
The image below shows layout contains a table within a tree node. When I expand all of tree node and scroll window, the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found