스마트 홈 제습기 가이드

action.devices.types.DEHUMIDIFIER - 제습기는 공기 중 습기를 제거하는 기기입니다. 이 기능은 사용 설정 및 사용 중지하고, 목표 습도를 보고하고 조정할 수 있으며, 다양한 조정 가능 모드 또는 팬 속도 설정을 적용할 수 있습니다.

이 유형은 기기에 제습기 아이콘과 관련 동의어 및 별칭이 있다는 것을 나타냅니다.

기기 기능

서비스에서 지원해야 하는 속성 및 상태, EXECUTE 및 QUERY 응답 빌드 방법과 같은 구현 세부정보는 관련 특성 문서를 참고하세요.

필수 특성

기기에 해당되는 경우 이러한 특성과 명령어가 필요합니다. 기기에서 이러한 특성을 지원하지 않으면 QUERY 또는 EXECUTE 응답에 functionNotSupported 오류 코드를 입력하세요. 자세한 내용은 오류 및 예외를 참조하세요.

이러한 특성이 기기에 해당하는 경우 권장됩니다. 그러나 사용 가능한 모든 특성 중에서 원하는 것을 자유롭게 조합하여 기존 제품 기능과 일치시킬 수 있습니다.

품질 요구사항

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

기기 예: 간단한 제습기

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

샘플 SYNC 응답

요청
{
  "requestId": "6894439706274654512",
  "inputs": [
    {
      "intent": "action.devices.SYNC"
    }
  ]
}
응답
{
  "requestId": "6894439706274654512",
  "payload": {
    "agentUserId": "user123",
    "devices": [
      {
        "id": "123",
        "type": "action.devices.types.DEHUMIDIFIER",
        "traits": [
          "action.devices.traits.FanSpeed",
          "action.devices.traits.HumiditySetting",
          "action.devices.traits.OnOff"
        ],
        "name": {
          "name": "Simple dehumidifier"
        },
        "willReportState": true,
        "attributes": {
          "humiditySetpointRange": {
            "minPercent": 5,
            "maxPercent": 50
          },
          "availableFanSpeeds": {
            "speeds": [
              {
                "speed_name": "low_key",
                "speed_values": [
                  {
                    "lang": "en",
                    "speed_synonym": [
                      "Low",
                      "Slow"
                    ]
                  },
                  {
                    "lang": "de",
                    "speed_synonym": [
                      "Niedrig",
                      "Schleppend"
                    ]
                  }
                ]
              },
              {
                "speed_name": "high_key",
                "speed_values": [
                  {
                    "lang": "en",
                    "speed_synonym": [
                      "High"
                    ]
                  },
                  {
                    "lang": "de",
                    "speed_synonym": [
                      "Hoch"
                    ]
                  }
                ]
              }
            ],
            "ordered": true
          }
        },
        "deviceInfo": {
          "manufacturer": "smart-home-inc",
          "model": "hs1234",
          "hwVersion": "3.2",
          "swVersion": "11.4"
        }
      }
    ]
  }
}

샘플 QUERY 응답

요청
{
  "requestId": "6894439706274654514",
  "inputs": [
    {
      "intent": "action.devices.QUERY",
      "payload": {
        "devices": [
          {
            "id": "123"
          }
        ]
      }
    }
  ]
}
응답
{
  "requestId": "6894439706274654514",
  "payload": {
    "devices": {
      "123": {
        "status": "SUCCESS",
        "online": true,
        "on": true,
        "currentFanSpeedSetting": "low_key",
        "humiditySetpointPercent": 10,
        "humidityAmbientPercent": 20
      }
    }
  }
}

샘플 EXECUTE 명령어

팬 속도

명령어 매개변수에 대한 자세한 내용은 action.devices.traits.FanSpeed 참조를 확인하세요.

요청
{
  "requestId": "6894439706274654516",
  "inputs": [
    {
      "intent": "action.devices.EXECUTE",
      "payload": {
        "commands": [
          {
            "devices": [
              {
                "id": "123"
              }
            ],
            "execution": [
              {
                "command": "action.devices.commands.SetFanSpeed",
                "params": {
                  "fanSpeed": "high_key"
                }
              }
            ]
          }
        ]
      }
    }
  ]
}
응답
{
  "requestId": "6894439706274654516",
  "payload": {
    "commands": [
      {
        "ids": [
          "123"
        ],
        "status": "SUCCESS",
        "states": {
          "online": true,
          "currentFanSpeedSetting": "high_key"
        }
      }
    ]
  }
}

습도 설정

명령어 매개변수에 대한 자세한 내용은 action.devices.traits.HumiditySetting 참조를 확인하세요.

요청
{
  "requestId": "6894439706274654518",
  "inputs": [
    {
      "intent": "action.devices.EXECUTE",
      "payload": {
        "commands": [
          {
            "devices": [
              {
                "id": "123"
              }
            ],
            "execution": [
              {
                "command": "action.devices.commands.SetHumidity",
                "params": {
                  "humidity": 15
                }
              }
            ]
          }
        ]
      }
    }
  ]
}
응답
{
  "requestId": "6894439706274654518",
  "payload": {
    "commands": [
      {
        "ids": [
          "123"
        ],
        "status": "SUCCESS",
        "states": {
          "online": true,
          "humiditySetpointPercent": 15,
          "humidityAmbientPercent": 20
        }
      }
    ]
  }
}

사용 안함

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

요청
{
  "requestId": "6894439706274654520",
  "inputs": [
    {
      "intent": "action.devices.EXECUTE",
      "payload": {
        "commands": [
          {
            "devices": [
              {
                "id": "123"
              }
            ],
            "execution": [
              {
                "command": "action.devices.commands.OnOff",
                "params": {
                  "on": true
                }
              }
            ]
          }
        ]
      }
    }
  ]
}
응답
{
  "requestId": "6894439706274654520",
  "payload": {
    "commands": [
      {
        "ids": [
          "123"
        ],
        "status": "SUCCESS",
        "states": {
          "online": true,
          "on": true
        }
      }
    ]
  }
}

기기 ERRORS

오류 및 예외의 전체 목록을 참조하세요.