스마트 홈 사운드바 가이드

action.devices.types.SOUNDBAR - TV와 함께 자주 사용되며 막대 폼 팩터가 있는 올인원 오디오 기기입니다.

이 유형은 기기에 사운드바 아이콘 및 관련 일부 아이콘이 표시된다는 것을 나타냅니다. 동의어 및 별명

기기 기능

관련 트레잇 문서를 참고하세요. 서비스가 지원해야 하는 속성과 상태, EXECUTE 및 QUERY 응답을 빌드합니다.

필수 trait

이러한 특성과 명령은 있습니다. 기기가 이러한 특성을 지원하지 않는 경우 QUERY 또는 EXECUTE 응답의 functionNotSupported 자세한 내용은 오류 및 예외에서 자세한 내용을 확인하세요.

기기에 해당되는 경우 이러한 특성을 사용하는 것이 좋습니다. 하지만 사용 가능한 모든 특성을 자유롭게 조합해서 기존 특성에 가장 잘 어울리도록 만들 수 있습니다. 제품 기능을 개선하는 데 도움이 됩니다

를 통해 개인정보처리방침을 정의할 수 있습니다.

품질 요구사항

  • 지연 시간: 3000ms 이하여야 합니다.
  • 안정성: 97% 이상이어야 합니다.

기기 예: 간단한 사운드바

이 섹션에는 일반적인 'Soundbar'를 나타내는 인텐트 페이로드 예시가 포함되어 있습니다. 위 기기 유형과 특성에 따라 다를 수 있습니다. 구현에서 트레잇을 추가하거나 삭제하면 이러한 변경사항을 반영하도록 응답을 수정하세요.

샘플 SYNC 응답

<ph type="x-smartling-placeholder">
</ph> <ph type="x-smartling-placeholder">
</ph>
요청
를 통해 개인정보처리방침을 정의할 수 있습니다.
{
  "requestId": "6894439706274654512",
  "inputs": [
    {
      "intent": "action.devices.SYNC"
    }
  ]
}
<ph type="x-smartling-placeholder">
</ph>
응답
{
  "requestId": "6894439706274654512",
  "payload": {
    "agentUserId": "user123",
    "devices": [
      {
        "id": "123",
        "type": "action.devices.types.SOUNDBAR",
        "traits": [
          "action.devices.traits.OnOff",
          "action.devices.traits.MediaState",
          "action.devices.traits.Volume",
          "action.devices.traits.TransportControl"
        ],
        "name": {
          "name": "Simple soundbar"
        },
        "willReportState": true,
        "attributes": {
          "transportControlSupportedCommands": [
            "NEXT",
            "PREVIOUS",
            "PAUSE",
            "STOP",
            "RESUME"
          ],
          "volumeMaxLevel": 11,
          "volumeCanMuteAndUnmute": true,
          "supportActivityState": true,
          "supportPlaybackState": true
        },
        "deviceInfo": {
          "manufacturer": "smart-home-inc",
          "model": "hs1234",
          "hwVersion": "3.2",
          "swVersion": "11.4"
        }
      }
    ]
  }
}

샘플 QUERY 응답

<ph type="x-smartling-placeholder">
</ph> <ph type="x-smartling-placeholder">
</ph>
요청
를 통해 개인정보처리방침을 정의할 수 있습니다.
{
  "requestId": "6894439706274654514",
  "inputs": [
    {
      "intent": "action.devices.QUERY",
      "payload": {
        "devices": [
          {
            "id": "123"
          }
        ]
      }
    }
  ]
}
<ph type="x-smartling-placeholder">
</ph>
응답
{
  "requestId": "6894439706274654514",
  "payload": {
    "devices": {
      "123": {
        "status": "SUCCESS",
        "online": true,
        "on": true,
        "currentVolume": 10,
        "isMuted": false,
        "activityState": "ACTIVE",
        "playbackState": "PAUSED"
      }
    }
  }
}

샘플 EXECUTE 명령어

OnOff

명령어 매개변수에 대한 자세한 내용은 action.devices.traits.OnOff 참조

<ph type="x-smartling-placeholder">
</ph> <ph type="x-smartling-placeholder">
</ph>
요청
를 통해 개인정보처리방침을 정의할 수 있습니다.
{
  "requestId": "6894439706274654516",
  "inputs": [
    {
      "intent": "action.devices.EXECUTE",
      "payload": {
        "commands": [
          {
            "devices": [
              {
                "id": "123"
              }
            ],
            "execution": [
              {
                "command": "action.devices.commands.OnOff",
                "params": {
                  "on": true
                }
              }
            ]
          }
        ]
      }
    }
  ]
}
<ph type="x-smartling-placeholder">
</ph>
응답
{
  "requestId": "6894439706274654516",
  "payload": {
    "commands": [
      {
        "ids": [
          "123"
        ],
        "status": "SUCCESS",
        "states": {
          "online": true,
          "on": true
        }
      }
    ]
  }
}

음소거

명령어 매개변수에 대한 자세한 내용은 action.devices.traits.Volume 참조

<ph type="x-smartling-placeholder">
</ph> <ph type="x-smartling-placeholder">
</ph>
요청
를 통해 개인정보처리방침을 정의할 수 있습니다.
{
  "requestId": "6894439706274654534",
  "inputs": [
    {
      "intent": "action.devices.EXECUTE",
      "payload": {
        "commands": [
          {
            "devices": [
              {
                "id": "123"
              }
            ],
            "execution": [
              {
                "command": "action.devices.commands.mute",
                "params": {
                  "mute": true
                }
              }
            ]
          }
        ]
      }
    }
  ]
}
<ph type="x-smartling-placeholder">
</ph>
응답
{
  "requestId": "6894439706274654534",
  "payload": {
    "commands": [
      {
        "ids": [
          "123"
        ],
        "status": "SUCCESS",
        "states": {
          "online": true,
          "currentVolume": 10,
          "isMuted": true
        }
      }
    ]
  }
}

setVolume

명령어 매개변수에 대한 자세한 내용은 action.devices.traits.Volume 참조

<ph type="x-smartling-placeholder">
</ph> <ph type="x-smartling-placeholder">
</ph>
요청
를 통해 개인정보처리방침을 정의할 수 있습니다.
{
  "requestId": "6894439706274654532",
  "inputs": [
    {
      "intent": "action.devices.EXECUTE",
      "payload": {
        "commands": [
          {
            "devices": [
              {
                "id": "123"
              }
            ],
            "execution": [
              {
                "command": "action.devices.commands.setVolume",
                "params": {
                  "volumeLevel": 11
                }
              }
            ]
          }
        ]
      }
    }
  ]
}
<ph type="x-smartling-placeholder">
</ph>
응답
{
  "requestId": "6894439706274654532",
  "payload": {
    "commands": [
      {
        "ids": [
          "123"
        ],
        "status": "SUCCESS",
        "states": {
          "online": true,
          "currentVolume": 11,
          "isMuted": false
        }
      }
    ]
  }
}

mediaClosedCaptioningOff

명령어 매개변수에 대한 자세한 내용은 action.devices.traits.TransportControl 참조

<ph type="x-smartling-placeholder">
</ph> <ph type="x-smartling-placeholder">
</ph>
요청
를 통해 개인정보처리방침을 정의할 수 있습니다.
{
  "requestId": "6894439706274654518",
  "inputs": [
    {
      "intent": "action.devices.EXECUTE",
      "payload": {
        "commands": [
          {
            "devices": [
              {
                "id": "123"
              }
            ],
            "execution": [
              {
                "command": "action.devices.commands.mediaClosedCaptioningOff"
              }
            ]
          }
        ]
      }
    }
  ]
}
<ph type="x-smartling-placeholder">
</ph>
응답
{
  "requestId": "6894439706274654518",
  "payload": {
    "commands": [
      {
        "ids": [
          "123"
        ],
        "status": "SUCCESS",
        "states": {
          "online": true,
          "playbackState": "PLAYING"
        }
      }
    ]
  }
}

mediaClosedCaptioningOn

명령어 매개변수에 대한 자세한 내용은 action.devices.traits.TransportControl 참조

<ph type="x-smartling-placeholder">
</ph> <ph type="x-smartling-placeholder">
</ph>
요청
를 통해 개인정보처리방침을 정의할 수 있습니다.
{
  "requestId": "6894439706274654520",
  "inputs": [
    {
      "intent": "action.devices.EXECUTE",
      "payload": {
        "commands": [
          {
            "devices": [
              {
                "id": "123"
              }
            ],
            "execution": [
              {
                "command": "action.devices.commands.mediaClosedCaptioningOn",
                "params": {
                  "closedCaptioningLanguage": "en"
                }
              }
            ]
          }
        ]
      }
    }
  ]
}
<ph type="x-smartling-placeholder">
</ph>
응답
{
  "requestId": "6894439706274654520",
  "payload": {
    "commands": [
      {
        "ids": [
          "123"
        ],
        "status": "SUCCESS",
        "states": {
          "online": true,
          "playbackState": "PLAYING"
        }
      }
    ]
  }
}

mediaNext

명령어 매개변수에 대한 자세한 내용은 action.devices.traits.TransportControl 참조

<ph type="x-smartling-placeholder">
</ph> <ph type="x-smartling-placeholder">
</ph>
요청
를 통해 개인정보처리방침을 정의할 수 있습니다.
{
  "requestId": "6894439706274654522",
  "inputs": [
    {
      "intent": "action.devices.EXECUTE",
      "payload": {
        "commands": [
          {
            "devices": [
              {
                "id": "123"
              }
            ],
            "execution": [
              {
                "command": "action.devices.commands.mediaNext"
              }
            ]
          }
        ]
      }
    }
  ]
}
<ph type="x-smartling-placeholder">
</ph>
응답
{
  "requestId": "6894439706274654522",
  "payload": {
    "commands": [
      {
        "ids": [
          "123"
        ],
        "status": "SUCCESS",
        "states": {
          "online": true,
          "playbackState": "FAST_FORWARDING"
        }
      }
    ]
  }
}

mediaPause

명령어 매개변수에 대한 자세한 내용은 action.devices.traits.TransportControl 참조

<ph type="x-smartling-placeholder">
</ph> <ph type="x-smartling-placeholder">
</ph>
요청
를 통해 개인정보처리방침을 정의할 수 있습니다.
{
  "requestId": "6894439706274654524",
  "inputs": [
    {
      "intent": "action.devices.EXECUTE",
      "payload": {
        "commands": [
          {
            "devices": [
              {
                "id": "123"
              }
            ],
            "execution": [
              {
                "command": "action.devices.commands.mediaPause"
              }
            ]
          }
        ]
      }
    }
  ]
}
<ph type="x-smartling-placeholder">
</ph>
응답
{
  "requestId": "6894439706274654524",
  "payload": {
    "commands": [
      {
        "ids": [
          "123"
        ],
        "status": "SUCCESS",
        "states": {
          "online": true,
          "playbackState": "PAUSED"
        }
      }
    ]
  }
}

mediaPrevious

명령어 매개변수에 대한 자세한 내용은 action.devices.traits.TransportControl 참조

<ph type="x-smartling-placeholder">
</ph> <ph type="x-smartling-placeholder">
</ph>
요청
를 통해 개인정보처리방침을 정의할 수 있습니다.
{
  "requestId": "6894439706274654526",
  "inputs": [
    {
      "intent": "action.devices.EXECUTE",
      "payload": {
        "commands": [
          {
            "devices": [
              {
                "id": "123"
              }
            ],
            "execution": [
              {
                "command": "action.devices.commands.mediaPrevious"
              }
            ]
          }
        ]
      }
    }
  ]
}
<ph type="x-smartling-placeholder">
</ph>
응답
{
  "requestId": "6894439706274654526",
  "payload": {
    "commands": [
      {
        "ids": [
          "123"
        ],
        "status": "SUCCESS",
        "states": {
          "online": true,
          "playbackState": "REWINDING"
        }
      }
    ]
  }
}

mediaResume

명령어 매개변수에 대한 자세한 내용은 action.devices.traits.TransportControl 참조

<ph type="x-smartling-placeholder">
</ph> <ph type="x-smartling-placeholder">
</ph>
요청
를 통해 개인정보처리방침을 정의할 수 있습니다.
{
  "requestId": "6894439706274654528",
  "inputs": [
    {
      "intent": "action.devices.EXECUTE",
      "payload": {
        "commands": [
          {
            "devices": [
              {
                "id": "123"
              }
            ],
            "execution": [
              {
                "command": "action.devices.commands.mediaResume"
              }
            ]
          }
        ]
      }
    }
  ]
}
<ph type="x-smartling-placeholder">
</ph>
응답
{
  "requestId": "6894439706274654528",
  "payload": {
    "commands": [
      {
        "ids": [
          "123"
        ],
        "status": "SUCCESS",
        "states": {
          "online": true,
          "playbackState": "PLAYING"
        }
      }
    ]
  }
}

mediaStop

명령어 매개변수에 대한 자세한 내용은 action.devices.traits.TransportControl 참조

<ph type="x-smartling-placeholder">
</ph> <ph type="x-smartling-placeholder">
</ph>
요청
를 통해 개인정보처리방침을 정의할 수 있습니다.
{
  "requestId": "6894439706274654530",
  "inputs": [
    {
      "intent": "action.devices.EXECUTE",
      "payload": {
        "commands": [
          {
            "devices": [
              {
                "id": "123"
              }
            ],
            "execution": [
              {
                "command": "action.devices.commands.mediaStop"
              }
            ]
          }
        ]
      }
    }
  ]
}
<ph type="x-smartling-placeholder">
</ph>
응답
{
  "requestId": "6894439706274654530",
  "payload": {
    "commands": [
      {
        "ids": [
          "123"
        ],
        "status": "SUCCESS",
        "states": {
          "online": true,
          "playbackState": "STOPPED"
        }
      }
    ]
  }
}

기기 ERRORS

전체 목록 보기 오류 및 예외를 방지합니다.