Giter VIP home page Giter VIP logo

huejay's People

Contributors

dpogni avatar greenkeeper[bot] avatar raymondelooff avatar s0meone avatar sqmk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

huejay's Issues

Add scene recall convenience command

Scenes may be easily recalled by using group 0. If a group/id is provided, then that group id is used for the recall instead.

Sample call:

client.scenes.recall(sceneId)
  .then(() => console.log(`Scene ${sceneId} recalled`));

With group id:

client.scenes.recall(sceneId, groupId)
  .then(() => console.log(`Scene ${sceneId} with ${groupId} recalled`));

Organize convenience command calls

I'm not a fan of the client having a 1:1 mapping of commands to calls. Organize the client with properties organizing commands and models.

e.g. client.light.get(), client.sensor.update(sensor);

Create user command fails if not authenticated

When creating a user, whitelist retrieval fails if there isn't a user associated with the client.

Rather than request the user from the bridge, return the original passed to create.

Support schedules

  • Retrieve schedules
  • Create schedule
  • Update schedule
  • Delete schedule

Sensor type support

Each sensor type supports a set of buttons/events. Some of these buttons are toggle-able.

Support additional scene features in api 1.11

New attributes:

  • owner - Whitelisted user that created scene
  • recycle - true to auto delete, false if not
  • locked - true if used by a rule or schedule
  • appdata - Custom app data
  • picture - Only available via GET
  • lastupdated - Created or updated date
  • version - Either PUT or POST, may not be necessary to expose in api

Deprecated attributes:

  • active - Already not available in huejay

New commands:

  • Create scene - Use POST instead of PUT
  • Get scene - GET /api//scenes/
  • Modify light state - Use PUT /scenes//lights//lightstate
  • Modify scene - PUT /api//scenes/, name, lights, storelightstate
  • Delete scene - DELETE /api//scenes/

Refactor bridge

The model shouldn't know a whole lot about bridge fields, logic.

Include a new attributes helper that can be reused in other models.

Support scenes

  • Retrieve scenes
  • Create scenes
  • Update scene light state

Create action helpers

Action helpers would improve upcoming schedule and rule refactoring. More details to follow.

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.