type:light-strip - Light strips

The type light-bulb is a marker used to mark lights that are of the strip type.

if(thing.matches('cap:light-strip')) {
  // The thing is a light strip
}

Implementing capability

Light strips are an extension to lights and need to follow the same implementation guidelines.

const { LightStrip, SwitchablePower } = require('abstract-things/lights');

class Example extends LightStrip.with(SwitchablePower) {

  changePower(power) {
    return changePowerOfLight(power);
  }

}