text: """Device handler for IKEA of Sweden TRADFRI SYMFONISK remote control."""
  from zigpy.profiles import zha
  from zigpy.quirks import CustomDevice
  from zigpy.zcl.clusters.general import (
      Basic,
      Groups,
      Identify,
      LevelControl,
      OnOff,
      Ota,
      PollControl,
      PowerConfiguration,
  )
  from zigpy.zcl.clusters.lightlink import LightLink
  
  from zhaquirks import DoublingPowerConfigurationCluster
  from zhaquirks.const import (
      ARGS,
      CLUSTER_ID,
      COMMAND,
      COMMAND_MOVE,
      COMMAND_STEP,
      COMMAND_TOGGLE,
      DEVICE_TYPE,
      DOUBLE_PRESS,
      ENDPOINT_ID,
      ENDPOINTS,
      INPUT_CLUSTERS,
      LEFT,
      MODELS_INFO,
      OUTPUT_CLUSTERS,
      PROFILE_ID,
      RIGHT,
      SHORT_PRESS,
      TRIPLE_PRESS,
      TURN_ON,
  )
  from zhaquirks.ikea import IKEA, ROTATED
  
  
  class IkeaSYMFONISK(CustomDevice):
      """Custom device representing IKEA of Sweden TRADFRI remote control."""
  
      signature = {
          # <SimpleDescriptor endpoint=1 profile=260 device_type=6
          # device_version=1
          # input_clusters=[0, 1, 3, 32, 4096]
          # output_clusters=[3, 4, 6, 8, 25, 4096]>
          MODELS_INFO: [(IKEA, "SYMFONISK Sound Controller")],
          ENDPOINTS: {
              1: {
                  PROFILE_ID: zha.PROFILE_ID,
                  DEVICE_TYPE: zha.DeviceType.REMOTE_CONTROL,
                  INPUT_CLUSTERS: [
                      Basic.cluster_id,
                      PowerConfiguration.cluster_id,
                      Identify.cluster_id,
                      PollControl.cluster_id,
                      LightLink.cluster_id,
                  ],
                  OUTPUT_CLUSTERS: [
                      Identify.cluster_id,
                      Groups.cluster_id,
                      OnOff.cluster_id,
                      LevelControl.cluster_id,
                      Ota.cluster_id,
                      LightLink.cluster_id,
                  ],
              }
          },
      }
  
      replacement = {
          ENDPOINTS: {
              1: {
                  PROFILE_ID: zha.PROFILE_ID,
                  DEVICE_TYPE: zha.DeviceType.REMOTE_CONTROL,
                  INPUT_CLUSTERS: [
                      Basic.cluster_id,
                      DoublingPowerConfigurationCluster,
                      Identify.cluster_id,
                      PollControl.cluster_id,
                      LightLink.cluster_id,
                  ],
                  OUTPUT_CLUSTERS: [
                      Identify.cluster_id,
                      Groups.cluster_id,
                      OnOff.cluster_id,
                      LevelControl.cluster_id,
                      Ota.cluster_id,
                      LightLink.cluster_id,
                  ],
              }
          }
      }
  
      device_automation_triggers = {
          (SHORT_PRESS, TURN_ON): {
              COMMAND: COMMAND_TOGGLE,
              CLUSTER_ID: 6,
              ENDPOINT_ID: 1,
          },
          (ROTATED, RIGHT): {
              COMMAND: COMMAND_MOVE,
              CLUSTER_ID: 8,
              ENDPOINT_ID: 1,
              ARGS: [0, 195],
          },
          (ROTATED, LEFT): {
              COMMAND: COMMAND_MOVE,
              CLUSTER_ID: 8,
              ENDPOINT_ID: 1,
              ARGS: [1, 195],
          },
          (DOUBLE_PRESS, TURN_ON): {
              COMMAND: COMMAND_STEP,
              CLUSTER_ID: 8,
              ENDPOINT_ID: 1,
              ARGS: [0, 1, 0],
          },
          (TRIPLE_PRESS, TURN_ON): {
              COMMAND: COMMAND_STEP,
              CLUSTER_ID: 8,
              ENDPOINT_ID: 1,
              ARGS: [1, 1, 0],
          },
      }
  