function newValueSingleWirelessSwitch(message, data) {
  const { sid } = message;
  logger.debug(`Xiaomi : New value single wired switch, sid = ${sid}`);
  const EXTERNAL_ID_BUTTON = `xiaomi:${sid}:single-wireless-switch:button`;
  const newSensor = {
    service_id: this.serviceId,
    name: `Xiaomi Single Wireless Switch`,
    selector: `xiaomi:${sid}`,
    external_id: `xiaomi:${sid}`,
    model: 'xiaomi-single-wireless-switch',
    should_poll: false,
    features: [
      {
        name: 'Button',
        selector: EXTERNAL_ID_BUTTON,
        external_id: EXTERNAL_ID_BUTTON,
        category: DEVICE_FEATURE_CATEGORIES.BUTTON,
        type: DEVICE_FEATURE_TYPES.BUTTON.CLICK,
        read_only: false,
        keep_history: true,
        has_feedback: true,
        min: 0,
        max: 2,
      },
      {
        name: 'Battery',
        selector: `xiaomi:${sid}:battery`,
        external_id: `xiaomi:${sid}:battery`,
        category: DEVICE_FEATURE_CATEGORIES.BATTERY,
        type: DEVICE_FEATURE_TYPES.SENSOR.INTEGER,
        unit: DEVICE_FEATURE_UNITS.PERCENT,
        read_only: true,
        keep_history: true,
        has_feedback: true,
        min: 0,
        max: 100,
      },
    ],
  };
  this.addDevice(sid, newSensor);

  if (data.voltage) {
    this.gladys.event.emit(EVENTS.DEVICE.NEW_STATE, {
      device_feature_external_id: `xiaomi:${sid}:battery`,
      state: getBatteryPercent(data.voltage, MIN_VOLT, MAX_VOLT),
    });
  }

  // BUTTON 1
  if (data.channel_0) {
    const currentStatusMaj = data.channel_0.toUpperCase();
    if (SWITCH_STATUS[currentStatusMaj]) {
      this.gladys.event.emit(EVENTS.DEVICE.NEW_STATE, {
        device_feature_external_id: EXTERNAL_ID_BUTTON,
        state: SWITCH_STATUS[currentStatusMaj],
      });
    }
  }
}
@description New value single wireless switch received.
@param {object} message - Message received.
@param {object} data - Data received.
@example
newValueSingleWirelessSwitch({model:''}, {
   channel_0: 'on'
});