Dimmable light accessory doesn't turn on
I'm not sure if this is just weirdness in the way my light works, but the dimmable light sends brightness values or off. But if my light is in the off state, it won't turn on and set the brightness values. It needs to receive an on code and then the brightness code. Here's the code I changed to make it work:

async setBrightness (hexData) {
    const { data, host, log } = this;
    const { off } = data
    const { on } = data

    if (this.brightness > 0) {

      const allHexKeys = Object.keys(data);

      // Create an array of value specified in the data config
      const foundValues = [];

      allHexKeys.forEach((key) => {
        const parts = key.split('brightness');

        if (parts.length !== 2) return;

        foundValues.push(parts[1])
      })

      // Find brightness closest to the one requested
      const closest = foundValues.reduce((prev, curr) => Math.abs(curr - this.brightness) < Math.abs(prev - this.brightness) ? curr : prev);
      log(`setBrightness: (closest: ${closest})`);

      // Get the closest brightness's hex data
      hexData = on;
      sendData({ host, hexData, log });
      hexData = data[`brightness${closest}`];
    } else {
      log(`setLightState: off`);

      hexData = off;
    }

    sendData({ host, hexData, log });
  }