Code Monkey home page Code Monkey logo

Comments (6)

ebaauw avatar ebaauw commented on August 24, 2024

You need to set sensors in config.json.

from homebridge-hue.

dbartholomae avatar dbartholomae commented on August 24, 2024

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.

dbartholomae avatar dbartholomae commented on August 24, 2024

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.

dbartholomae avatar dbartholomae commented on August 24, 2024

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.

ebaauw avatar ebaauw commented on August 24, 2024

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.

dbartholomae avatar dbartholomae commented on August 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.