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

上传了数据 喊控制找不到设备 #6

Open
Agurning opened this issue Dec 5, 2019 · 15 comments
Open

上传了数据 喊控制找不到设备 #6

Agurning opened this issue Dec 5, 2019 · 15 comments
Assignees
Labels
bug Something isn't working smarthome 智能家居

Comments

@Agurning
Copy link

Agurning commented Dec 5, 2019

{"header":{"authorization":{"token":"e937452656d94fd293fe7888d6a3d0d6","type":"BearerToken"},"messageId":"7c4d0b926b7848beac4d9175731b161d","name":"DiscoveryResponse","namespace":"Rokid","payloadVersion":"v1"},"payload":{"endpoints":[{"additionalInfo":{},"capabilities":[{"interface":"Switch","proactivelyReported":true,"retrievable":false,"supportedOperations":["On","Off"]},{"interface":"Color","proactivelyReported":true,"retrievable":false,"supportedOperations":["Set"]},{"interface":"ColorTemperature","proactivelyReported":true,"retrievable":false,"supportedOperations":["Set","SetMax","SetMin","Adjust"]},{"interface":"Brightness","proactivelyReported":true,"retrievable":false,"supportedOperations":["Set","SetMax","SetMin","Adjust"]}],"displayName":"灯","displayType":"light","endpointId":"room_100","offline":false,"recommendHomeName":"宁波的家","recommendRoomName":"1号房间","states":[]},{"additionalInfo":{},"capabilities":[{"interface":"Switch","proactivelyReported":true,"retrievable":false,"supportedOperations":["On","Off"]},{"interface":"Color","proactivelyReported":true,"retrievable":false,"supportedOperations":["Set"]},{"interface":"ColorTemperature","proactivelyReported":true,"retrievable":false,"supportedOperations":["Set","SetMax","SetMin","Adjust"]},{"interface":"Brightness","proactivelyReported":true,"retrievable":false,"supportedOperations":["Set","SetMax","SetMin","Adjust"]}],"displayName":"灯","displayType":"light","endpointId":"room_103","offline":false,"recommendHomeName":"宁波的家","recommendRoomName":"卧室","states":[]},{"additionalInfo":{},"capabilities":[{"interface":"Switch","proactivelyReported":true,"retrievable":false,"supportedOperations":["On","Off"]},{"interface":"Color","proactivelyReported":true,"retrievable":false,"supportedOperations":["Set"]},{"interface":"ColorTemperature","proactivelyReported":true,"retrievable":false,"supportedOperations":["Set","SetMax","SetMin","Adjust"]},{"interface":"Brightness","proactivelyReported":true,"retrievable":false,"supportedOperations":["Set","SetMax","SetMin","Adjust"]}],"displayName":"灯","displayType":"light","endpointId":"room_104","offline":false,"recommendHomeName":"宁波的家","recommendRoomName":"厨房","states":[]},{"additionalInfo":{},"capabilities":[{"interface":"Switch","proactivelyReported":true,"retrievable":false,"supportedOperations":["On","Off"]},{"interface":"Color","proactivelyReported":true,"retrievable":false,"supportedOperations":["Set"]},{"interface":"ColorTemperature","proactivelyReported":true,"retrievable":false,"supportedOperations":["Set","SetMax","SetMin","Adjust"]},{"interface":"Brightness","proactivelyReported":true,"retrievable":false,"supportedOperations":["Set","SetMax","SetMin","Adjust"]}],"displayName":"灯","displayType":"light","endpointId":"room_105","offline":false,"recommendHomeName":"宁波的家","recommendRoomName":"洗手间","states":[]}]}}

@Agurning Agurning added the bug Something isn't working label Dec 5, 2019
@yorkie
Copy link
Contributor

yorkie commented Dec 5, 2019

请按照我们的 Bug 模板补充下信息,比如复现步骤,以及调用了什么接口等,多谢

@yorkie
Copy link
Contributor

yorkie commented Dec 5, 2019

另外,请 @maxbbn 帮忙看看问题。

@Agurning
Copy link
Author

Agurning commented Dec 5, 2019

问题:授权同步完数据 区域为宁波的家 4个子房间 喊出单个房间的灯进行控制,若祺回复没有发现设备,请在APP查看

@yorkie yorkie added the smarthome 智能家居 label Dec 5, 2019
@yorkie
Copy link
Contributor

yorkie commented Dec 5, 2019

好的,可能还需要提供一下若琪的 SN 号以及发出控制指令的时间,这样我们方便后台查询日志。

@maxbbn
Copy link
Contributor

maxbbn commented Dec 5, 2019

确定下, 若琪只能控制当前家庭的设备, 若琪和设备是否不在一个家庭

@Agurning
Copy link
Author

Agurning commented Dec 5, 2019

我在手机把区域切换了宁波的家 下面有显示4个子房间 S/N0302041928000850 指令控制时间下午有很多条随便抽一条即可

@Agurning
Copy link
Author

Agurning commented Dec 5, 2019

而且我有把区域房间改名,但是之前的名称都变成缓存遗留这个太有问题了

@maxbbn
Copy link
Contributor

maxbbn commented Dec 5, 2019

后台看过了, 确定是这个问题, 回到我的家, 找到若琪, 设置到 宁波的家里, 就好了

@Agurning
Copy link
Author

Agurning commented Dec 5, 2019

一直控制失败
2019.12,5 19:50左右
喊的命令是把卧室的灯亮度变成50

接受的数据是{"endpoint":{"endpointId":"room_103","additionalInfo":{},"states":[]},"payload":{"value":50},"header":{"messageId":"391685e32d59f364a1ff391ab8f9f9e","namespace":"Rokid.Control","name":"Brightness.Set","authorization":{"type":"BearerToken","token":"e937452656d94fd293fe7888d6a3d0d6"},"payloadVersion":"v1"}}
我这边返回的是
{"endpoints":{"additionalInfo":{},"endpointId":"room_103","offline":false,"states":[{"interface":"Brightness","timeOfSample":1575546583746,"value":"Set"}]},"header":{"authorization":{"token":"e937452656d94fd293fe7888d6a3d0d6","type":"BearerToken"},"messageId":"391685e32d59f364a1ff391ab8f9f9e","name":"Brightness.Set","namespace":"Rokid","payloadVersion":"v1"},"payload":{"value":50}}

帮忙看下哪块的协议和文档不一样

@maxbbn
Copy link
Contributor

maxbbn commented Dec 6, 2019

建议用 RHome 工具先验证下格式

@maxbbn
Copy link
Contributor

maxbbn commented Dec 6, 2019

一直控制失败
2019.12,5 19:50左右
喊的命令是把卧室的灯亮度变成50

接受的数据是{"endpoint":{"endpointId":"room_103","additionalInfo":{},"states":[]},"payload":{"value":50},"header":{"messageId":"391685e32d59f364a1ff391ab8f9f9e","namespace":"Rokid.Control","name":"Brightness.Set","authorization":{"type":"BearerToken","token":"e937452656d94fd293fe7888d6a3d0d6"},"payloadVersion":"v1"}}
我这边返回的是
{"endpoints":{"additionalInfo":{},"endpointId":"room_103","offline":false,"states":[{"interface":"Brightness","timeOfSample":1575546583746,"value":"Set"}]},"header":{"authorization":{"token":"e937452656d94fd293fe7888d6a3d0d6","type":"BearerToken"},"messageId":"391685e32d59f364a1ff391ab8f9f9e","name":"Brightness.Set","namespace":"Rokid","payloadVersion":"v1"},"payload":{"value":50}}

帮忙看下哪块的协议和文档不一样

截屏2019-12-06下午4 15 58

header 里面字段格式不符合要求

@maxbbn
Copy link
Contributor

maxbbn commented Dec 10, 2019

@yorkie 这个issue 应该解决了, 你那边可以关闭吗

@yorkie
Copy link
Contributor

yorkie commented Dec 11, 2019

由作者关闭吧,原则上我们不应该主动关闭,另外问题原因是什么呢?文档问题吗?

@maxbbn
Copy link
Contributor

maxbbn commented Dec 12, 2019

文档没有问题, 返回格式不符合协议约定

@yorkie
Copy link
Contributor

yorkie commented Dec 12, 2019

我们是否可以提供 SDK 的形式,这样可以避免一些协议的问题?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working smarthome 智能家居
Projects
None yet
Development

No branches or pull requests

3 participants