async function setValue(broadlinkDevice, gladysDevice, gladysFeature, value) {
  const valueTosend = value === 1;
  const { TYPE } = broadlinkDevice;
  if (TYPE === 'MP1') {
    // load switch number
    const { external_id: externalId } = gladysFeature;
    const [, , , switchNb] = externalId.split(':');
    await broadlinkDevice.setPower(Number.parseInt(switchNb, 10), valueTosend);
  } else {
    await broadlinkDevice.setPower(valueTosend);
  }
}
@description Send value to switch device.
@param {object} broadlinkDevice - Broadlink device.
@param {object} gladysDevice - Gladys device.
@param {object} gladysFeature - Gladys feature.
@param {number} value - Value to send.
@example
async setValue({}, {}, {}, 3);