Google 提供 SDK、工具和範例應用程式,協助您快速開始使用 Matter journey, whether you're building your own smart home hardware or integrating Matter functionality into your Android app.
這些資源可以協助開發人員專注於開發能力和功能,同時減少處理基礎架構的心力。
使用 Matter 開發智慧型住宅硬體
Google Home Device SDK 提供的 API 和工具可以擴充開放原始碼 Matter SDK,以便透過 Google 智慧技術快速進行開發。
Matter 虛擬裝置
Device SDK 可讓開發人員立即開始在虛擬環境中測試 Matter 裝置,立即開始執行開發作業。虛擬 Matter 裝置可使用 SDK 建構,以編織布的方式進行,並使用與實體裝置相同的方式進行控制,包括執行 Google Assistant commands.
虛擬裝置控制器是一個 Matter 啟動器應用程式,可用來控制虛擬和實體的 Matter 裝置。這是在開發階段嘗試新想法及測試裝置的實用工具。
VS Code 的 Google Home 擴充功能
Google Home Extension for Visual Studio Code 可讓您直接與 Google Home 的雲端互動。例如,您可以輸入指令 (例如「開啟我的燈泡」),Assistant 則會在雲端處理您的要求,並將指令傳送至裝置。
在開發階段使用這項擴充功能時,您可以:
測試與 Google Home 整合的 Matter 和非 Matter 裝置。
即時查看雲端記錄來找出問題,並觀察雙向的通訊情況。依嚴重性和時間範圍篩選。
檢查記錄訊息的 JSON 內容。
以指令碼格式發出 Assistant 指令,協助您以可重複的方式加快測試速度。
Google Home 測試套件
使用 Google Home Developer Console to test your smart home integration and ensure it meets certification and launch requirements for the Google Home ecosystem. 中的 Google Home Test Suite
將 Matter 功能整合至您的 Android 應用程式
使用 Google Home Mobile SDK 建構最佳的 Android Matter 應用程式。
Google Play 服務 Matter API
Google Play services offer Matter APIs for commissioning,device-sharing, and operational discovery.
Android Studio 專用的 Google Home 外掛程式
Google Home Plugin for Android Studio 是功能強大的開發工具,可讓您直接在編輯器中輸入 Assistant 的指令,藉此觀察您與 Matter 應用程式和裝置的互動。
IDE 也可讓您即時查看 Cloud 記錄檔,以便有效率地對整合進行偵錯。
Matter 適用的 Google Home 範例應用程式
Google Home Sample App for Matter 提供具體範例,說明如何透過 Matter 使用 Play services API 建構應用程式,以便透過應用程式與生態系統輕鬆修訂及分享 Matter 裝置。