This commit is contained in:
anlicheng 2023-09-08 11:06:27 +08:00
parent 3992c2eb0f
commit ad795b1f76

View File

@ -1,137 +1,193 @@
# 水表
## 流量累计值(数据)
```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": "W.h",
"unit": 2,
"name": "总能耗",
"label": "W.h",
"timestamp": int(10)
}
```
### 总运行时间
## 总运行时间(数据)
```text
{
"key": "total_runtime",
"value": float,
"type": "AI",
"unit": "h",
"unit": 0,
"name": "总运行时间",
"label": "h",
"timestamp": int(10)
}
```
### 实时功率
## 实时功率(数据)
```text
{
"key": "actual_power",
"value": float,
"type": "AI",
"unit": "W",
"unit": 18,
"name": "实时功率",
"label": "W",
"timestamp": int(10)
}
```
### 使用次数
## 使用次数(数据)
```text
{
"key": "use_times",
"value": int,
"type": "AI",
"unit": "次",
"unit": 0,
"name": "使用次数",
"label": "次",
"timestamp": int(10)
}
```
## 事件上报
### 灯开关
## 灯开关(事件)
```text
{
"key": "light_switch",
"value": bool, 1: 开0: 关
"type": "SOE",
"unit": "",
"unit": 0,
"name": "开关",
"timestamp": int(10)
}
```
### 亮度变化
## 亮度变化(事件)
```text
{
"key": "light_brightness",
"value": int, 范围: 0 ~ 100
"type": "SOE",
"unit": "",
"unit": 0,
"name": "亮度",
"timestamp": int(10)
}
```
### 变亮变暗时间
## 变亮变暗时间(事件)
```text
{
"key": "light_change_time",
"value": int, 范围: 1 ~ 200
"type": "SOE",
"unit": "",
"unit": 0,
"name": "变亮变暗时间",
"timestamp": int(10)
}
```
### 色温
## 色温(事件)
```text
{
"key": "light_rgb",
"value": int,
"type": "SOE",
"unit": "",
"unit": 0,
"name": "色温",
"timestamp": int(10)
}
```
### RGB
## RGB (事件)
```text
{
"key": "light_rgb",
"value": string,
"type": "SOE",
"unit": "",
"unit": 0,
"name": "RGB",
"timestamp": int(10)
}
```
### 是否损坏
## 是否损坏(事件)
```text
{
"key": "light_status",
"value": int, 0: 正常, 1: 不没, 2: 不亮, 3: 异常波动
"type": "SOE",
"unit": "",
"unit": 0,
"name": "是否损坏",
"timestamp": int(10)
}