Skip to content

getColorZones doesn't return all zones. #57

Description

@Einstein42

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 } ] }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions