Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getColorZones doesn't return all zones. #57

Open
Einstein42 opened this issue Jun 19, 2017 · 1 comment
Open

getColorZones doesn't return all zones. #57

Einstein42 opened this issue Jun 19, 2017 · 1 comment
Assignees

Comments

@Einstein42
Copy link

getColorZones states a count of 16 zones. Indexes set to 0, 15, it only returns first 8 HSBK items no matter if I ask for 2 zones or all 16.

  light.getColorZones(0, 15, (err, data) => {
    logger.debug(JSON.stringify(data))
  })
{ size: 102,
  addressable: true,
  tagged: false,
  origin: true,
  protocolVersion: 1024,
  source: 'e6b8b4ac',
  target: 'd073d5149b32',
  reserved1: <Buffer 00 00>,
  site: 'LIFXV2',
  ackRequired: false,
  resRequired: false,
  sequence: 6,
  time: <Buffer 48 90 5e 01 7f 92 c9 14>,
  type: 'stateMultiZone',
  reserved2: <Buffer 00 00>,
  count: 16,
  index: 0,
  color: 
   [ { hue: 9102, saturation: 65535, brightness: 65535, kelvin: 3500 },
     { hue: 9102, saturation: 65535, brightness: 65535, kelvin: 3500 },
     { hue: 9102, saturation: 65535, brightness: 65535, kelvin: 3500 },
     { hue: 9102, saturation: 65535, brightness: 65535, kelvin: 3500 },
     { hue: 9102, saturation: 65535, brightness: 65535, kelvin: 3500 },
     { hue: 9102, saturation: 65535, brightness: 65535, kelvin: 3500 },
     { hue: 9102, saturation: 65535, brightness: 65535, kelvin: 3500 },
     { hue: 9102, saturation: 65535, brightness: 65535, kelvin: 3500 } ] }
@ristomatti
Copy link
Collaborator

@Einstein42 I had some issues with this while adding the functionality but if I remember correctly I got it working myself. I can try this out in a few days when I'm back home.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants