iot/docs/north_data.md
2023-09-14 15:10:57 +08:00

198 lines
3.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 概念说明
遥测为AI遥信为DI事件为SOE。其中AI和DI我可以实现数据的展示SOE只能报警显示无法实现画面的二次应用。对于智慧照明开关灯定义为SOE我后台这边只存在一条事件
# 水表
## 流量累计值(数据)
```text
{
"key": "flow",
"value": float,
"type": "AI",
"unit": 44, (立方米)
"label": "m3"
"name": "流量",
"timestamp": int(10)
}
```
# 电表
## 正向有功总电能(数据)
```text
{
"key": " positive_power",
"value": float,
"type": "AI",
"unit": 5,
"label": "kwh"
"name": "正向有功总电能",
"timestamp": int(10)
}
```
## A相电压(数据)
```text
{
"key": "voltage_A",
"value": float,
"type": "AI",
"unit": 0,
"label": "V"
"name": "A相电压",
"timestamp": int(10)
}
```
## 设备状态变化(事件:水表或者电表)
```text
{
"key": "device_status",
"value": NewStatus, 0: 离线, 1: 在线, 2: 未知
"unit": 0,
"type": <<"SOE">>,
"name": "设备状态",
"timestamp": int(10)
}
```
# 智慧照明
## 总能耗(数据)
```text
{
"key": "total_power",
"value": float,
"type": "AI",
"unit": 2,
"name": "总能耗",
"label": "W.h",
"timestamp": int(10)
}
```
## 总运行时间(数据)
```text
{
"key": "total_runtime",
"value": float,
"type": "AI",
"unit": 0,
"name": "总运行时间",
"label": "h",
"timestamp": int(10)
}
```
## 实时功率(数据)
```text
{
"key": "actual_power",
"value": float,
"type": "AI",
"unit": 18,
"name": "实时功率",
"label": "W",
"timestamp": int(10)
}
```
## 使用次数(数据)
```text
{
"key": "use_times",
"value": int,
"type": "AI",
"unit": 0,
"name": "使用次数",
"label": "次",
"timestamp": int(10)
}
```
## 灯开关(事件)
```text
{
"key": "light_switch",
"value": bool, 1: 开0: 关
"type": "DI",
"unit": 0,
"name": "开关",
"timestamp": int(10)
}
```
## 亮度变化(事件)
```text
{
"key": "light_brightness",
"value": int, 范围: 0 ~ 100
"type": "SOE",
"unit": 0,
"name": "亮度",
"timestamp": int(10)
}
```
## 变亮变暗时间(事件)
```text
{
"key": "light_change_time",
"value": int, 范围: 1 ~ 200
"type": "SOE",
"unit": 0,
"name": "变亮变暗时间",
"timestamp": int(10)
}
```
## 色温(事件)
```text
{
"key": "light_rgb",
"value": int,
"type": "SOE",
"unit": 0,
"name": "色温",
"timestamp": int(10)
}
```
## RGB (事件)
```text
{
"key": "light_rgb",
"value": string,
"type": "SOE",
"unit": 0,
"name": "RGB",
"timestamp": int(10)
}
```
## 是否损坏(事件)
```text
{
"key": "light_status",
"value": int, 0: 正常, 1: 不没, 2: 不亮, 3: 异常波动
"type": "SOE",
"unit": 0,
"name": "是否损坏",
"timestamp": int(10)
}
```