首页 > 解决方案 > 智能家居测试套件无法执行

问题描述

我正在尝试在我的服务上运行 Google Smarthome 自动化测试。我测试正确地检索了我的服务的设备和特征。但是,当我开始测试时,什么也没有发生。没有超时,没有错误,什么都没有。

在我的网络浏览器开发人员看来,我从 Google 的测试套件应用程序中看到以下错误。会不会导致测试无法启动?这是我的问题还是谷歌的问题?

ERROR a.split is not a function
Yh  @   app_compiled.js?523e…-6feac3eecc6b:18199
Zh.handleError  @   app_compiled.js?523e…-6feac3eecc6b:18199
next    @   app_compiled.js?523e…-6feac3eecc6b:18335
f   @   app_compiled.js?523e…-6feac3eecc6b:18316
g.ht    @   app_compiled.js?523e…-6feac3eecc6b:18293
g.next  @   app_compiled.js?523e…-6feac3eecc6b:18292
g.ba    @   app_compiled.js?523e…-6feac3eecc6b:18290
g.next  @   app_compiled.js?523e…-6feac3eecc6b:18290
g.next  @   app_compiled.js?523e…-6feac3eecc6b:18295
Ln.emit @   app_compiled.js?523e…-6feac3eecc6b:18315
(anonymous) @   app_compiled.js?523e…-6feac3eecc6b:18320
u.vb    @   app_compiled.js?523e…-6feac3eecc6b:18086
p.run   @   app_compiled.js?523e…-6feac3eecc6b:18078
Nn.Aa   @   app_compiled.js?523e…-6feac3eecc6b:18319
Nj  @   app_compiled.js?523e…-6feac3eecc6b:18320
u.handleError   @   app_compiled.js?523e…-6feac3eecc6b:18086
p.Zo    @   app_compiled.js?523e…-6feac3eecc6b:18079
t.gi    @   app_compiled.js?523e…-6feac3eecc6b:18088
p   @   app_compiled.js?523e…-6feac3eecc6b:18115
q   @   app_compiled.js?523e…-6feac3eecc6b:18115
load (async)        
ia  @   app_compiled.js?523e…-6feac3eecc6b:18108
u.Xg    @   app_compiled.js?523e…-6feac3eecc6b:18086
mi  @   app_compiled.js?523e…-6feac3eecc6b:18169
u.Xg    @   app_compiled.js?523e…-6feac3eecc6b:18086
mi  @   app_compiled.js?523e…-6feac3eecc6b:18083
u.Xg    @   app_compiled.js?523e…-6feac3eecc6b:18086
p.Xg    @   app_compiled.js?523e…-6feac3eecc6b:18080
p.Es    @   app_compiled.js?523e…-6feac3eecc6b:18081
(anonymous) @   app_compiled.js?523e…-6feac3eecc6b:18111
(anonymous) @   app_compiled.js?523e…-6feac3eecc6b:18977
Show 36 more frames

标签: google-smart-home

解决方案


在这里跟进 - 我遇到的问题是我使用了关于如何在 Sync 请求中可用ThermostatModes 的推荐定义,这是字符串的 JSON 区域。

相反,我被要求实现已弃用的表示格式,它是一个逗号分隔的字符串。一旦切换到不推荐使用的格式,套件就会运行。

请参阅:https ://developers.google.com/assistant/smarthome/traits/temperaturesetting

对于 2 种格式。同样,我不得不使用已弃用的格式(不是最新的推荐格式)。


推荐阅读