Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

插件获取定时列表 #1691

Open
sikaiven opened this issue Jul 13, 2021 · 0 comments
Open

插件获取定时列表 #1691

sikaiven opened this issue Jul 13, 2021 · 0 comments
Assignees

Comments

@sikaiven
Copy link

是否为新品(必填)
新品

关联的产品model
leshow.heater.bs3

项目ID(必填)
/

用户ID(必填)
/

企业名称(必填)
乐秀

环境(必填)

  • 电脑操作系统:[eg.Windows/Mac OS/Linux]
  • 手机系统:[eg.Android 8.1/iOS 11.0]
  • iOS14.6
  • SDK分支: [eg.master/10000/...]
  • 10054
  • 相关模块:[eg.Host/Service/Account]
  • Service

现象(必填)
Device.getDeviceWifi().callMethod('scene/list', { "api_version":0, "did":Device.did, "dids":Device.dids, "filter":"",
"format":"", "has_authed":true, "has_setting":true, "identify":"", "name":"",
"pd_ids":null, "st_id":8, "support_second":false, "uid":Device.uid}).then((json) => {
alert('=='+JSON.stringify(json));
});

Device.getDeviceWifi().callMethod('miIO.xget', ["x.timer.*"]).then((json) => {
alert('=='+JSON.stringify(json));
});
这两个方法调用报错。

Device.loadTimerScenes().then((sceneArr) => {})
这个方法获取到的是空的数据。

期望(必填)
获取到在插件上设置的定时列表。

f35d0453558a980cd98bdea10f4cfd1
a7b55938c9729c4dfa0728c47a72ed8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants