Closed dbartholomae closed 4 months ago
You need to set sensors
in config.json.
Thanks. Not sure how I missed this after reading through https://github.com/ebaauw/homebridge-hue/wiki/Configuration three times.
I now get the following errors messages in the logs:
[3/2/2024, 12:22:39 PM] [Hue] TypeError: The "listener" argument must be of type function. Received an instance of Object
at checkListener (node:events:274:3)
at ClientRequest.once (node:events:648:3)
at new ClientRequest (node:_http_client:239:10)
at Object.request (node:https:378:10)
at Object.request (/volume3/homebridge/node_modules/homebridge-broadband/node_modules/http-proxy-agent/node_modules/agent-base/patch-core.js:25:22)
at /volume3/homebridge/node_modules/homebridge-hue/node_modules/hb-lib-tools/lib/HttpClient.js:361:34
at new Promise (<anonymous>)
at HttpClient.request (/volume3/homebridge/node_modules/homebridge-hue/node_modules/hb-lib-tools/lib/HttpClient.js:338:12)
at HttpClient.get (/volume3/homebridge/node_modules/homebridge-hue/node_modules/hb-lib-tools/lib/HttpClient.js:277:17)
at HuePlatform.accessories (/volume3/homebridge/node_modules/homebridge-hue/lib/HuePlatform.js:298:40)
[3/2/2024, 12:22:44 PM] [Hue] goodbye
[3/2/2024, 12:22:52 PM] [Hue] Initializing Hue platform...
[3/2/2024, 12:22:52 PM] [Hue] homebridge-hue v0.13.70, node v20.9.0, homebridge v1.7.0
[3/2/2024, 12:22:52 PM] [Hue] warning: recommended version: node v20.10.0 LTS
[3/2/2024, 12:22:52 PM] [Hue] searching bridges and gateways
[3/2/2024, 12:22:52 PM] Loading 3 accessories...
[3/2/2024, 12:22:58 PM] [Hue] TypeError: Cannot read properties of undefined (reading 'name')
at HueDiscovery.<anonymous> (/volume3/homebridge/node_modules/homebridge-hue/lib/HuePlatform.js:185:62)
at HueDiscovery.emit (node:events:514:28)
at HueDiscovery._nupnp (/volume3/homebridge/node_modules/homebridge-hue/lib/HueDiscovery.js:263:12)
(node:22118) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 3)
(Use `node --trace-warnings ...` to show where the warning was created)
My new config is
{
"name": "Hue",
"anyOn": false,
"effects": false,
"nativeHomeKitLights": true,
"nativeHomeKitSensors": false,
"sensors": true,
"resource": true,
"platform": "Hue",
"users": {
"...": "..."
}
}
For documenting the sensors
property, my suggestion would be to do the following edit in the wiki on https://github.com/ebaauw/homebridge-hue/wiki/Getting-Started
## 2. Sensors
You need to set `sensors` to `true` in your configuration if you want to use sensors or switches with this plugin. You might also need to set `nativeHomeKitSensors` to `false`, see the [configuration reference](https://github.com/ebaauw/homebridge-hue/wiki/Configuration) for more details. For each Hue bridge sensor, homebridge-hue creates a HomeKit accessory with the appropriate services and characteristics.
I also realised that, since the doc is in the wiki, I can't actually open a PR for this. But hopefully this snippet is also helpful :)
The error above came from an interaction with Homebridge broadband and doesn't seem to be related to this plugin. After uninstalling the other plugin, this one now works flawlessly :) I'll still need to figure out how to actually increase volume when the dial is turned, but I don't think that this is plugin-specific either.
The error above came from an interaction with Homebridge broadband and doesn't seem to be related to this plugin.
Indeed, the http-proxy-agent package used by that plugin (and by some others) breaks https, see several closed issues.
I'll still need to figure out how to actually increase volume when the dial is turned
Homebridge Hue exposes the dial as two stateless programmable switches (buttons), left turn vs right turn. You can simply associate a HomeKit scene with the button actions. Ideally, you’d need a HomeKit enabled speaker that supports setting relative volume, like Volume Change in Homebridge ZP. Unfortunately, there’s no standard HomeKit feature for this.
Thanks! I'll close this issue now, but please feel free to reach out if I can help in addition to the proposed wording: https://github.com/ebaauw/homebridge-hue/issues/1183#issuecomment-1974769975
Issue
I'm trying to get the plugin to work to connect my Hue Tap Dial Switch so that I can control the volume of my sound system via the dial. I've installed the plugin and it seems to connect correctly (I can see the dial in the dump file), but I can't see any (!) Hue devices being added to Homebridge. I've disabled
nativeHomeKitSensors
, and have no other ideas where to look. I also didn't find a way to enable additional logs.I'm kinda clueless whether I just missed something in the docs (if I did, I'm happy to provide a PR to make it easier to see what needs to be done for initial setup).
Any clues what might be going on here?
Log Messages
Debug Files
Config:
Excerpt from Dump file: