text: """Xiaomi lumi.plug.mmeu01 plug."""
  import logging
  
  from zigpy.profiles import zha
  from zigpy.zcl.clusters.general import (
      Alarms,
      AnalogInput,
      Basic,
      DeviceTemperature,
      GreenPowerProxy,
      Groups,
      Identify,
      OnOff,
      Ota,
      Scenes,
      Time,
  )
  from zigpy.zcl.clusters.homeautomation import ElectricalMeasurement
  from zigpy.zcl.clusters.smartenergy import Metering
  
  from zhaquirks import Bus
  from zhaquirks.const import (
      DEVICE_TYPE,
      ENDPOINTS,
      INPUT_CLUSTERS,
      MODELS_INFO,
      OUTPUT_CLUSTERS,
      PROFILE_ID,
      SKIP_CONFIGURATION,
  )
  from zhaquirks.xiaomi import (
      LUMI,
      AnalogInputCluster,
      BasicCluster,
      ElectricalMeasurementCluster,
      XiaomiCustomDevice,
  )
  
  _LOGGER = logging.getLogger(__name__)
  
  XIAOMI_PROFILE_ID = 0xA1E0
  XIAOMI_DEVICE_TYPE = 0x61
  
  
  class Plug(XiaomiCustomDevice):
      """lumi.plug.mmeu01 plug."""
  
      def __init__(self, *args, **kwargs):
          """Init."""
          self.voltage_bus = Bus()
          self.consumption_bus = Bus()
          self.power_bus = Bus()
          super().__init__(*args, **kwargs)
  
      signature = {
          MODELS_INFO: [
              (LUMI, "lumi.plug.mmeu01"),
              (LUMI, "lumi.plug.maeu01"),
          ],
          ENDPOINTS: {
              # <SimpleDescriptor endpoint=1 profile=260 device_type=81
              # device_version=1
              # input_clusters=[0, 2, 3, 4, 5, 6, 9, 1794, 2820]
              # output_clusters=[10, 25]>
              1: {
                  PROFILE_ID: zha.PROFILE_ID,
                  DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
                  INPUT_CLUSTERS: [
                      Basic.cluster_id,
                      DeviceTemperature.cluster_id,
                      Identify.cluster_id,
                      Groups.cluster_id,
                      Scenes.cluster_id,
                      OnOff.cluster_id,
                      Alarms.cluster_id,
                      Metering.cluster_id,
                      ElectricalMeasurement.cluster_id,
                  ],
                  OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
              },
              # <SimpleDescriptor endpoint=242 profile=41440 device_type=97
              # device_version=0
              # input_clusters=[]
              # output_clusters=[33]>
              242: {
                  PROFILE_ID: XIAOMI_PROFILE_ID,
                  DEVICE_TYPE: XIAOMI_DEVICE_TYPE,
                  OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
              },
          },
      }
      replacement = {
          SKIP_CONFIGURATION: True,
          ENDPOINTS: {
              1: {
                  PROFILE_ID: zha.PROFILE_ID,
                  DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
                  INPUT_CLUSTERS: [
                      BasicCluster,
                      DeviceTemperature.cluster_id,
                      Identify.cluster_id,
                      Groups.cluster_id,
                      Scenes.cluster_id,
                      OnOff.cluster_id,
                      Alarms.cluster_id,
                      Metering.cluster_id,
                      ElectricalMeasurementCluster,
                  ],
                  OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
              },
              21: {
                  PROFILE_ID: zha.PROFILE_ID,
                  DEVICE_TYPE: zha.DeviceType.MAIN_POWER_OUTLET,
                  INPUT_CLUSTERS: [AnalogInputCluster],
                  OUTPUT_CLUSTERS: [AnalogInput.cluster_id, Groups.cluster_id],
              },
              242: {
                  PROFILE_ID: XIAOMI_PROFILE_ID,
                  DEVICE_TYPE: XIAOMI_DEVICE_TYPE,
                  OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
              },
          },
      }
  