Comments (6)
You need to set sensors
in config.json.
from homebridge-hue.
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": {
"...": "..."
}
}
from homebridge-hue.
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 :)
from homebridge-hue.
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.
from homebridge-hue.
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.
from homebridge-hue.
Thanks! I'll close this issue now, but please feel free to reach out if I can help in addition to the proposed wording:
#1183 (comment)
from homebridge-hue.
Related Issues (20)
- $ (sudo) npm install -g homebridge-hue
- 0.13.67 version mismatch HOT 5
- Add artificially delay before turning off a scene switch HOT 2
- Homebridge flooded with logs? HOT 4
- Intermittent toggling between states of certain lights HOT 12
- error:0A00010B HOT 1
- Unable to update to version 0.13.68 HOT 3
- Reset Timeout parameter throws error HOT 1
- Log level settings HOT 3
- Hue Bridge: warning: not using recommended Hue bridge api version 1.60.0 HOT 8
- 2nd Hue Bridge needs manual pressing of button HOT 13
- Hue Zones to Homekit? HOT 3
- Trying to add an outlet HOT 7
- Unable to setup - Unauthorized HOT 2
- Hue Dimmer Switch don't show in new home architecture HOT 2
- Many devices not reachable since today HOT 7
- HUE Wall-Switch Module new Revision RDM004 not working HOT 2
- Expose more precise Hue bridge daylight sensor status HOT 1
- Hue light group shows as Off even if some of the lights are On HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-hue.