התכונה 'פעולות שיחה' הוצאה משימוש ב-13 ביוני 2023.
כאן תוכלו לקרוא מידע נוסף על ההוצאה משימוש של 'פעולות שיחה'.
תכונות המכשיר
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הפונקציונליות של סוגי המכשירים מגיעה מהתכונות שאתם מוסיפים לכל אחד מהם.
לכל סוג מכשיר יש כמה תכונות מומלצות, אבל אפשר להוסיף את התכונות הרצויות.
שם |
תכונות המכשיר |
תיאור |
סוגי מכשירים מומלצים |
בהירות |
action.devices.traits.Brightness |
הגדרת הבהירות המוחלטת היא בטווח מנורמל מ-0 עד 100 (ייתכן שהנורות הנפרדות לא תומכות בכל נקודה בטווח על סמך הגדרת ה-LED שלהן). |
מדריך תאורה |
ColorSpectrum |
action.devices.traits.ColorSpectrum |
הכלל הזה חל על נורות צבע "מלאות" שמקבלות טווחים של צבעי RGB. יכול להיות שלתאורה מסוימת יהיה כל שילוב של ColorSpectrum ו-Colortemperature, אבל יכול להיות של-Spectrum יש נורות מודגשות ופסים של נורות LED, ואילו בנורות מסוימות יש רק טמפרטורה. גם נורות בסיסיות או נורות מטופחות על שקעים חכמים, |
מדריך תאורה |
טמפרטורת צבע |
action.devices.traits.ColorTemperature |
זה רלוונטי לנורות "חמימות" שמקבלות נקודת צבע בקלווין. זוהי בדרך כלל שיטה נפרדת מ-ColorSpectrum, ויכול להיות שיש נקודות לבנות זמינות דרך הטמפרטורה שלא ניתן להגיע אליהן באמצעות Spectrum. על סמך התכונות הזמינות, Google עשויה לבחור את המצב המתאים לשימוש על סמך בקשה וסוג התאורה (לדוגמה, האורות בסלון לבנים עשויים לשלוח פקודות טמפרטורה לחלק מהנורות ופקודות ספקטרום לרצועות LED). |
מדריך תאורה |
הצמדה |
action.devices.traits.Dock |
התכונה הזו מיועדת למכשירים ניידים עם פקודות אוטומטיות שאפשר להחזיר לצורך טעינה. |
מכשירי חשמל שונים |
כבוי |
action.devices.traits.OnOff |
הפונקציונליות הבסיסית של הפעלה וכיבוי עבור כל מכשיר שיש לו הפעלה בינארית וגם כיבוי, כולל שקעים ומתגים, וגם מכשירים רבים אחרים בעתיד. |
מדריך תאורה |
StartStop |
action.devices.traits.StartStop |
הפעלה ועצירה של מכשיר משרתים פונקציה דומה להפעלה ולכיבוי של המכשיר. אלו יורשים את פיצ'ר התכונה הזו בצורה שונה כשמפעילים אותם וכשמפעילים אותם. בשונה ממכשירים שמצב ההפעלה והכיבוי שלהם פשוט, חלק מהמכשירים שמסוגלים להפעיל ולעצור יכולים גם הם להשהות בזמן ביצוע הפעולה. |
הכול – בעיקר מכשירי חשמל, שואבי אבק ודברים אחרים שיש להם התנהגות
ספציפית של פעילות מעבר לעוצמה |
הגדרת הטמפרטורה |
action.devices.traits.TemperatureSetting |
תכונה זו כוללת טיפול גם בטמפרטורה מסוימת וגם במצבים. |
מדריך התרמוסטט |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2023-12-02 (שעון UTC).
[null,null,["עדכון אחרון: 2023-12-02 (שעון UTC)."],[[["\u003cp\u003eDevice functionality is determined by assigned traits.\u003c/p\u003e\n"],["\u003cp\u003eEach device type has suggested traits, but you can customize them.\u003c/p\u003e\n"],["\u003cp\u003eTraits control actions like brightness, color, on/off state, and temperature.\u003c/p\u003e\n"],["\u003cp\u003eSome traits are recommended for specific device types, like lights or thermostats.\u003c/p\u003e\n"]]],["Device functionality is defined by added traits. Available traits include `Brightness` (0-100 range), `ColorSpectrum` (RGB), and `ColorTemperature` (Kelvin). `Dock` is for self-mobile devices returning for charging. `OnOff` provides basic on/off, while `StartStop` allows starting, stopping, and pausing. `TemperatureSetting` handles temperature points and modes. Each trait has recommended device types, but any combination can be used.\n"],null,["# Device Traits\n\nThe functionality for device types comes from the traits that you add to each one.\nEach device type has a number of recommended traits, but you can add whichever ones you\nwant.\n\n| Name | Device Traits | Description | Recommended Device Types |\n|--------------------------------------------------------------------------|--------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|\n| [Brightness](/assistant/sdk/reference/traits/brightness) | `action.devices.traits.Brightness` | Absolute brightness setting is in a normalized range from 0 to 100 (individual lights may not support every point in the range based on their LED configuration). | [Light Guide](/assistant/smarthome/guides/light) |\n| [ColorSpectrum](/assistant/sdk/reference/traits/colorspectrum) | `action.devices.traits.ColorSpectrum` | This applies to \"full\" color bulbs that take RGB color ranges. Lights may have any combination of ColorSpectrum and [ColorTemperature](/assistant/sdk/reference/traits/colortemperature); accent lights and LED strips may just have Spectrum, whereas some reading bulbs just have Temperature. Basic bulbs, or dumb lights on smart plugs, have neither. | [Light Guide](/assistant/smarthome/guides/light) |\n| [ColorTemperature](/assistant/sdk/reference/traits/colortemperature) | `action.devices.traits.ColorTemperature` | This applies to \"warmth\" bulbs that take a color point in Kelvin. This is generally a separate modality from [ColorSpectrum](/assistant/sdk/reference/traits/colorspectrum), and there may be white points available via Temperature that cannot be reached by Spectrum. Based on available traits, Google may pick the appropriate mode to use based on request and light type (for example, *Make the living room lights white* might send Temperature commands to some bulbs and Spectrum commands to LED strips). | [Light Guide](/assistant/smarthome/guides/light) |\n| [Dock](/assistant/sdk/reference/traits/dock) | `action.devices.traits.Dock` | This trait is designed for self-mobile devices that can be commanded to return for charging. | Various appliances |\n| [OnOff](/assistant/sdk/reference/traits/onoff) | `action.devices.traits.OnOff` | The basic on and off functionality for any device that has binary on and off, including plugs and switches as well as many future devices. | [Light Guide](/assistant/smarthome/guides/light) |\n| [StartStop](/assistant/sdk/reference/traits/startstop) | `action.devices.traits.StartStop` | Starting and stopping a device serves a similar function to turning it on and off. Devices that inherit this trait function differently when turned on and when started. Unlike devices that simply have an on and off state, some devices that can start and stop are also able to pause while performing operation. | Any - mostly appliances and vacuums and other things that have specific activity behavior above and beyond power |\n| [TemperatureSetting](/assistant/sdk/reference/traits/temperaturesetting) | `action.devices.traits.TemperatureSetting` | This trait covers handling both temperature point and modes. | [Thermostat Guide](/assistant/smarthome/guides/thermostat) |"]]