স্মার্ট হোম এয়ার কন্ডিশনিং ইউনিট গাইড

action.devices.types.AC_UNIT - শীতাতপনিয়ন্ত্রণ ইউনিটগুলি থার্মোস্ট্যাটগুলির অনুরূপ, কিন্তু গরম করা সমর্থন করে না এবং তাপমাত্রার লক্ষ্য নির্ধারণকে সমর্থন নাও করতে পারে৷

এই ধরনের নির্দেশ করে যে ডিভাইসটি এয়ার কন্ডিশনার ইউনিট আইকন এবং কিছু সম্পর্কিত প্রতিশব্দ এবং উপনাম পায়।

ডিভাইসের ক্ষমতা

বাস্তবায়নের বিশদ বিবরণের জন্য সংশ্লিষ্ট বৈশিষ্ট্যের ডকুমেন্টেশন পড়ুন, যেমন বৈশিষ্ট্য এবং স্টেট যা আপনার পরিষেবাকে সমর্থন করা উচিত এবং কীভাবে 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.AC_UNIT",
        "traits": [
          "action.devices.traits.FanSpeed",
          "action.devices.traits.OnOff",
          "action.devices.traits.TemperatureSetting"
        ],
        "name": {
          "name": "Simple AC unit"
        },
        "willReportState": true,
        "attributes": {
          "availableFanSpeeds": {
            "speeds": [
              {
                "speed_name": "low_key",
                "speed_values": [
                  {
                    "speed_synonym": [
                      "Low",
                      "Slow"
                    ],
                    "lang": "en"
                  }
                ]
              },
              {
                "speed_name": "high_key",
                "speed_values": [
                  {
                    "speed_synonym": [
                      "High",
                      "Speed 2"
                    ],
                    "lang": "en"
                  }
                ]
              }
            ],
            "ordered": true
          },
          "availableThermostatModes": [
            "off",
            "cool",
            "fan-only",
            "on"
          ],
          "thermostatTemperatureUnit": "C"
        },
        "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",
        "thermostatMode": "cool",
        "thermostatTemperatureAmbient": 25,
        "thermostatTemperatureSetpoint": 20
      }
    }
  }
}

স্যাম্পল এক্সিকিউটি কমান্ড

SetFanSpeed

কমান্ড প্যারামিটারের অতিরিক্ত বিবরণের জন্য, action.devices.traits.FanSpeed ​​রেফারেন্স দেখুন।

অনুরোধ
{
  "requestId": "6894439706274654518",
  "inputs": [
    {
      "intent": "action.devices.EXECUTE",
      "payload": {
        "commands": [
          {
            "devices": [
              {
                "id": "123"
              }
            ],
            "execution": [
              {
                "command": "action.devices.commands.SetFanSpeed",
                "params": {
                  "fanSpeed": "high_key"
                }
              }
            ]
          }
        ]
      }
    }
  ]
}
প্রতিক্রিয়া
{
  "requestId": "6894439706274654518",
  "payload": {
    "commands": [
      {
        "ids": [
          "123"
        ],
        "status": "SUCCESS",
        "states": {
          "online": true,
          "currentFanSpeedSetting": "high_key"
        }
      }
    ]
  }
}

অনঅফ

কমান্ড প্যারামিটারের অতিরিক্ত বিবরণের জন্য, action.devices.traits.OnOff রেফারেন্স দেখুন।

অনুরোধ
{
  "requestId": "6894439706274654516",
  "inputs": [
    {
      "intent": "action.devices.EXECUTE",
      "payload": {
        "commands": [
          {
            "devices": [
              {
                "id": "123"
              }
            ],
            "execution": [
              {
                "command": "action.devices.commands.OnOff",
                "params": {
                  "on": true
                }
              }
            ]
          }
        ]
      }
    }
  ]
}
প্রতিক্রিয়া
{
  "requestId": "6894439706274654516",
  "payload": {
    "commands": [
      {
        "ids": [
          "123"
        ],
        "status": "SUCCESS",
        "states": {
          "online": true,
          "on": true
        }
      }
    ]
  }
}

থার্মোস্ট্যাট তাপমাত্রা সেটপয়েন্ট

কমান্ড প্যারামিটারের অতিরিক্ত বিবরণের জন্য, action.devices.traits.TemperatureSetting রেফারেন্স দেখুন।

অনুরোধ
{
  "requestId": "6894439706274654520",
  "inputs": [
    {
      "intent": "action.devices.EXECUTE",
      "payload": {
        "commands": [
          {
            "devices": [
              {
                "id": "123"
              }
            ],
            "execution": [
              {
                "command": "action.devices.commands.ThermostatTemperatureSetpoint",
                "params": {
                  "thermostatTemperatureSetpoint": 22
                }
              }
            ]
          }
        ]
      }
    }
  ]
}
প্রতিক্রিয়া
{
  "requestId": "6894439706274654520",
  "payload": {
    "commands": [
      {
        "ids": [
          "123"
        ],
        "status": "SUCCESS",
        "states": {
          "online": true,
          "thermostatMode": "cool",
          "thermostatTemperatureSetpoint": 22,
          "thermostatTemperatureAmbient": 25.1
        }
      }
    ]
  }
}

থার্মোস্ট্যাটসেটমোড

কমান্ড প্যারামিটারের অতিরিক্ত বিবরণের জন্য, action.devices.traits.TemperatureSetting রেফারেন্স দেখুন।

অনুরোধ
{
  "requestId": "6894439706274654522",
  "inputs": [
    {
      "intent": "action.devices.EXECUTE",
      "payload": {
        "commands": [
          {
            "devices": [
              {
                "id": "123"
              }
            ],
            "execution": [
              {
                "command": "action.devices.commands.ThermostatSetMode",
                "params": {
                  "thermostatMode": "cool"
                }
              }
            ]
          }
        ]
      }
    }
  ]
}
প্রতিক্রিয়া
{
  "requestId": "6894439706274654522",
  "payload": {
    "commands": [
      {
        "ids": [
          "123"
        ],
        "status": "SUCCESS",
        "states": {
          "online": true,
          "thermostatMode": "cool",
          "thermostatTemperatureSetpoint": 22,
          "thermostatTemperatureAmbient": 25.1
        }
      }
    ]
  }
}

ডিভাইসের ত্রুটি৷

ত্রুটি এবং ব্যতিক্রমগুলির সম্পূর্ণ তালিকা দেখুন। ,

স্মার্ট হোম এয়ার কন্ডিশনিং ইউনিট গাইড

action.devices.types.AC_UNIT - শীতাতপনিয়ন্ত্রণ ইউনিটগুলি থার্মোস্ট্যাটগুলির অনুরূপ, কিন্তু গরম করা সমর্থন করে না এবং তাপমাত্রার লক্ষ্য নির্ধারণকে সমর্থন নাও করতে পারে৷

এই ধরনের নির্দেশ করে যে ডিভাইসটি এয়ার কন্ডিশনার ইউনিট আইকন এবং কিছু সম্পর্কিত প্রতিশব্দ এবং উপনাম পায়।

ডিভাইসের ক্ষমতা

বাস্তবায়নের বিশদ বিবরণের জন্য সংশ্লিষ্ট বৈশিষ্ট্যের ডকুমেন্টেশন পড়ুন, যেমন বৈশিষ্ট্য এবং স্টেট যা আপনার পরিষেবাকে সমর্থন করা উচিত এবং কীভাবে 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.AC_UNIT",
        "traits": [
          "action.devices.traits.FanSpeed",
          "action.devices.traits.OnOff",
          "action.devices.traits.TemperatureSetting"
        ],
        "name": {
          "name": "Simple AC unit"
        },
        "willReportState": true,
        "attributes": {
          "availableFanSpeeds": {
            "speeds": [
              {
                "speed_name": "low_key",
                "speed_values": [
                  {
                    "speed_synonym": [
                      "Low",
                      "Slow"
                    ],
                    "lang": "en"
                  }
                ]
              },
              {
                "speed_name": "high_key",
                "speed_values": [
                  {
                    "speed_synonym": [
                      "High",
                      "Speed 2"
                    ],
                    "lang": "en"
                  }
                ]
              }
            ],
            "ordered": true
          },
          "availableThermostatModes": [
            "off",
            "cool",
            "fan-only",
            "on"
          ],
          "thermostatTemperatureUnit": "C"
        },
        "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",
        "thermostatMode": "cool",
        "thermostatTemperatureAmbient": 25,
        "thermostatTemperatureSetpoint": 20
      }
    }
  }
}

স্যাম্পল এক্সিকিউটি কমান্ড

SetFanSpeed

কমান্ড প্যারামিটারের অতিরিক্ত বিবরণের জন্য, action.devices.traits.FanSpeed ​​রেফারেন্স দেখুন।

অনুরোধ
{
  "requestId": "6894439706274654518",
  "inputs": [
    {
      "intent": "action.devices.EXECUTE",
      "payload": {
        "commands": [
          {
            "devices": [
              {
                "id": "123"
              }
            ],
            "execution": [
              {
                "command": "action.devices.commands.SetFanSpeed",
                "params": {
                  "fanSpeed": "high_key"
                }
              }
            ]
          }
        ]
      }
    }
  ]
}
প্রতিক্রিয়া
{
  "requestId": "6894439706274654518",
  "payload": {
    "commands": [
      {
        "ids": [
          "123"
        ],
        "status": "SUCCESS",
        "states": {
          "online": true,
          "currentFanSpeedSetting": "high_key"
        }
      }
    ]
  }
}

অনঅফ

কমান্ড প্যারামিটারের অতিরিক্ত বিবরণের জন্য, action.devices.traits.OnOff রেফারেন্স দেখুন।

অনুরোধ
{
  "requestId": "6894439706274654516",
  "inputs": [
    {
      "intent": "action.devices.EXECUTE",
      "payload": {
        "commands": [
          {
            "devices": [
              {
                "id": "123"
              }
            ],
            "execution": [
              {
                "command": "action.devices.commands.OnOff",
                "params": {
                  "on": true
                }
              }
            ]
          }
        ]
      }
    }
  ]
}
প্রতিক্রিয়া
{
  "requestId": "6894439706274654516",
  "payload": {
    "commands": [
      {
        "ids": [
          "123"
        ],
        "status": "SUCCESS",
        "states": {
          "online": true,
          "on": true
        }
      }
    ]
  }
}

থার্মোস্ট্যাট তাপমাত্রা সেটপয়েন্ট

কমান্ড প্যারামিটারের অতিরিক্ত বিবরণের জন্য, action.devices.traits.TemperatureSetting রেফারেন্স দেখুন।

অনুরোধ
{
  "requestId": "6894439706274654520",
  "inputs": [
    {
      "intent": "action.devices.EXECUTE",
      "payload": {
        "commands": [
          {
            "devices": [
              {
                "id": "123"
              }
            ],
            "execution": [
              {
                "command": "action.devices.commands.ThermostatTemperatureSetpoint",
                "params": {
                  "thermostatTemperatureSetpoint": 22
                }
              }
            ]
          }
        ]
      }
    }
  ]
}
প্রতিক্রিয়া
{
  "requestId": "6894439706274654520",
  "payload": {
    "commands": [
      {
        "ids": [
          "123"
        ],
        "status": "SUCCESS",
        "states": {
          "online": true,
          "thermostatMode": "cool",
          "thermostatTemperatureSetpoint": 22,
          "thermostatTemperatureAmbient": 25.1
        }
      }
    ]
  }
}

থার্মোস্ট্যাটসেটমোড

কমান্ড প্যারামিটারের অতিরিক্ত বিবরণের জন্য, action.devices.traits.TemperatureSetting রেফারেন্স দেখুন।

অনুরোধ
{
  "requestId": "6894439706274654522",
  "inputs": [
    {
      "intent": "action.devices.EXECUTE",
      "payload": {
        "commands": [
          {
            "devices": [
              {
                "id": "123"
              }
            ],
            "execution": [
              {
                "command": "action.devices.commands.ThermostatSetMode",
                "params": {
                  "thermostatMode": "cool"
                }
              }
            ]
          }
        ]
      }
    }
  ]
}
প্রতিক্রিয়া
{
  "requestId": "6894439706274654522",
  "payload": {
    "commands": [
      {
        "ids": [
          "123"
        ],
        "status": "SUCCESS",
        "states": {
          "online": true,
          "thermostatMode": "cool",
          "thermostatTemperatureSetpoint": 22,
          "thermostatTemperatureAmbient": 25.1
        }
      }
    ]
  }
}

ডিভাইসের ত্রুটি৷

ত্রুটি এবং ব্যতিক্রমগুলির সম্পূর্ণ তালিকা দেখুন।