تاريخ التعديل الأخير: 2025-01-25 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-01-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["The `sdm.devices.traits.Fan` trait applies to devices with fan control capabilities, providing fields like `timerMode` and `timerTimeout` to manage the fan's timer settings."],["You can retrieve fan status using a GET request to the device's endpoint, which returns a JSON response containing the current `timerMode` and `timerTimeout`."],["The `SetTimer` command allows you to adjust the fan's timer by specifying the desired `timerMode` and an optional `duration` in seconds through a POST request."],["Potential errors, such as `FAILED_PRECONDITION`, may occur if the thermostat lacks fan capabilities, indicating that fan-related functionalities are unavailable for the device."]]],["The `Fan` trait controls a device's fan. Key information includes the `timerMode` (ON/OFF) and `timerTimeout`, indicating when the mode will switch OFF. A GET request retrieves the current fan state. The `SetTimer` command, using a POST request, adjusts the `timerMode` and `duration` (optional, default 900s) within a range from 1s to 43200s. A potential `FAILED_PRECONDITION` error arises if the device lacks fan capability.\n"]]