Giter Site home page Giter Site logo

Comments (3)

peter-murray avatar peter-murray commented on June 19, 2024

There is some documentation around the CLIP sensors here; https://github.com/peter-murray/node-hue-api/blob/typescript/docs/sensor.md

The actual underlying model is a separate library with all the sensor types defined here; https://github.com/peter-murray/hue-bridge-model/tree/main/src/model/sensors

The config and state are separated in the model object and the updateSensorState() is really only for CLIP sensors in practice (as there is use in tryign to update state for any other type of sensor as the sensor controls that, e.g. battery, temperature, switch that was toggled, etc...).

Can you possibly share some more context as to what you are doing that in manifesting the error (as well as the sensor that you are trying to do this with) so that I can look further into this?

from node-hue-api.

dhleong avatar dhleong commented on June 19, 2024

I'm just trying to turn a Hue Motion Sensor on and off. Not at a computer right now but basically something like:

const sensor = //...
sensor.on = false;
await api.sensors.updateSensorConfig(sensor);

I'm working around this right now by monkey-patching the getHuePayload method.

from node-hue-api.

peter-murray avatar peter-murray commented on June 19, 2024

So this is coming from the documentation on supported devices that Hue provides

Screenshot 2022-12-12 at 16 50 55

They list battery as a configuration parameter hence why it is there...

Can you possibly provide me a dump of the raw JSON data for the sensor you have (you can clear out any sensitive values) I am only looking for the JSON structure and keys before I make a change.

from node-hue-api.

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.