简体   繁体   English

谷歌智能家居模式特征未在 ui 中显示

[英]Google smart home mode traits are not displaying in ui

I am trying to display the custom modes in my google home app.我正在尝试在我的 google home 应用中显示自定义模式。 But the mode are not displaying.但是模式没有显示。

Below are the traits which are used in the sync intent.以下是同步意图中使用的特征。

{
  "response": {
    "requestId": "3824625397483970421",
    "payload": {
      "agentUserId": "be855ca8-7be8-4e4c",
      "devices": [
        {
          "id": "device--92ada020-074a-11ed",
          "type": [
            "action.devices.types.VACUUM"
          ],
          "traits": [
            "action.devices.traits.StartStop",
            "action.devices.traits.Modes"
          ],
          "name": {
            "defaultNames": [
              "Vacuum Cleaner 2"
            ],
            "name": "Vacuum Cleaner 2",
            "nicknames": [
              "Vacuum Cleaner 2"
            ]
          },
          "willReportState": true,
          "roomHint": "",
          "structureHint": "",
          "attributes": {
            "availableModes": [
              {
                "name": "suction",
                "name_values": [
                  {
                    "name_synonym": [
                      "suction"
                    ],
                    "lang": "en"
                  }
                ],
                "settings": [
                  {
                    "setting_name": "Storm",
                    "setting_values": [
                      {
                        "setting_synonym": [
                          "Storm"
                        ],
                        "lang": "en"
                      }
                    ]
                  },
                  {
                    "setting_name": "Gust",
                    "setting_values": [
                      {
                        "setting_synonym": [
                          "Gust"
                        ],
                        "lang": "en"
                      }
                    ]
                  },
                  {
                    "setting_name": "Breeze",
                    "setting_values": [
                      {
                        "setting_synonym": [
                          "Breeze"
                        ],
                        "lang": "en"
                      }
                    ]
                  },
                  {
                    "setting_name": "Eco",
                    "setting_values": [
                      {
                        "setting_synonym": [
                          "Eco"
                        ],
                        "lang": "en"
                      }
                    ]
                  }
                ],
                "ordered": false
              }
            ]
          },
          "otherDeviceIds": [
            
          ]
        }
      ]
    }
  }
}

I cannot figure out what am I doing wrong.我无法弄清楚我做错了什么。 I read the documentation but looks fine to me but still it not displaying in the google home app我阅读了文档,但对我来说看起来不错,但它仍然没有显示在 google home 应用程序中

Our teams are constantly working to improve Google Home App and the controls available in the UI.我们的团队一直在努力改进 Google Home 应用和 UI 中可用的控件。 Right now for certain traits the touch controls are not available in the UI.目前,对于某些特征,触摸控件在 UI 中不可用。 For these controls you can always initiate them through voice.对于这些控件,您始终可以通过语音启动它们。

Your Sync response looks right for Vacuum .您的 Sync 响应看起来适合 Vacuum 。 If you need touch controls for modes on a vacuum device on Google Home App, you can create a feature request in Public Issue Tracker .如果您需要在 Google Home App 上对真空设备上的模式进行触控控制,您可以在Public Issue Tracker中创建功能请求。 This will help us with the prioritization in our roadmap.这将帮助我们确定路线图中的优先级。

What I have observed is there is a difference in terms of touch controls modes are not available google smart home app but we control it via the voice commands.我观察到的是触摸控制模式存在差异,谷歌智能家居应用程序不可用,但我们通过语音命令控制它。 Modes can only be displayed for now in the nest display.模式目前只能在嵌套显示中显示。

Reference https://developers.google.com/assistant/smarthome/develop/touch-controls参考https://developers.google.com/assistant/smarthome/develop/touch-controls

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM