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

属性为数组类型的场景联动触发异常 #474

Open
liunanhao opened this issue Feb 4, 2024 · 0 comments
Open

属性为数组类型的场景联动触发异常 #474

liunanhao opened this issue Feb 4, 2024 · 0 comments
Assignees

Comments

@liunanhao
Copy link

描述

当属性为数组类型时,尝试在场景联动中设置触发条件为不包含或全部包含在时,场景联动判断异常。
1707036189838

物模型只有一个温度数组属性
{
  "properties": [
    {
      "id": "temps",
      "name": "分布式温度",
      "expands": {
        "source": "device",
        "type": [
          "report"
        ]
      },
      "valueType": {
        "elementType": {
          "type": "float",
          "scale": 2
        },
        "type": "array"
      }
    }
  ]
}

异常结果

设置条件为不包含(20,60)时,以下输入结果仍旧触发

{
	"deviceId": "1754018387737407488",
	"properties": {
		"temps": [23.2,33.4]
	}
}

触发结果如下
1707036512006

疑问

请问是代码出现了问题,还是本人物模型或者场景联动设置错误,抑或是数据上报的json结构有误,望解答,谢谢

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