138 lines
2.1 KiB
Markdown
138 lines
2.1 KiB
Markdown
# 水表
|
||
|
||
# 电表
|
||
|
||
# 智慧照明
|
||
|
||
## 数据上报
|
||
|
||
### 总能耗
|
||
|
||
```text
|
||
{
|
||
"key": "total_power",
|
||
"value": float,
|
||
"type": "AI",
|
||
"unit": "W.h",
|
||
"name": "总能耗",
|
||
"timestamp": int(10)
|
||
}
|
||
```
|
||
|
||
### 总运行时间
|
||
|
||
```text
|
||
{
|
||
"key": "total_runtime",
|
||
"value": float,
|
||
"type": "AI",
|
||
"unit": "h",
|
||
"name": "总运行时间",
|
||
"timestamp": int(10)
|
||
}
|
||
```
|
||
|
||
### 实时功率
|
||
|
||
```text
|
||
{
|
||
"key": "actual_power",
|
||
"value": float,
|
||
"type": "AI",
|
||
"unit": "W",
|
||
"name": "实时功率",
|
||
"timestamp": int(10)
|
||
}
|
||
```
|
||
|
||
### 使用次数
|
||
|
||
```text
|
||
{
|
||
"key": "use_times",
|
||
"value": int,
|
||
"type": "AI",
|
||
"unit": "次",
|
||
"name": "使用次数",
|
||
"timestamp": int(10)
|
||
}
|
||
```
|
||
|
||
## 事件上报
|
||
|
||
### 灯开关
|
||
```text
|
||
{
|
||
"key": "light_switch",
|
||
"value": bool, 1: 开,0: 关
|
||
"type": "SOE",
|
||
"unit": "",
|
||
"name": "开关",
|
||
"timestamp": int(10)
|
||
}
|
||
```
|
||
|
||
### 亮度变化
|
||
|
||
```text
|
||
{
|
||
"key": "light_brightness",
|
||
"value": int, 范围: 0 ~ 100
|
||
"type": "SOE",
|
||
"unit": "",
|
||
"name": "亮度",
|
||
"timestamp": int(10)
|
||
}
|
||
```
|
||
|
||
### 变亮变暗时间
|
||
|
||
```text
|
||
{
|
||
"key": "light_change_time",
|
||
"value": int, 范围: 1 ~ 200
|
||
"type": "SOE",
|
||
"unit": "",
|
||
"name": "变亮变暗时间",
|
||
"timestamp": int(10)
|
||
}
|
||
```
|
||
|
||
### 色温
|
||
|
||
```text
|
||
{
|
||
"key": "light_rgb",
|
||
"value": int,
|
||
"type": "SOE",
|
||
"unit": "",
|
||
"name": "色温",
|
||
"timestamp": int(10)
|
||
}
|
||
```
|
||
|
||
### RGB
|
||
|
||
```text
|
||
{
|
||
"key": "light_rgb",
|
||
"value": string,
|
||
"type": "SOE",
|
||
"unit": "",
|
||
"name": "RGB",
|
||
"timestamp": int(10)
|
||
}
|
||
```
|
||
|
||
### 是否损坏
|
||
|
||
```text
|
||
{
|
||
"key": "light_status",
|
||
"value": int, 0: 正常, 1: 不没, 2: 不亮, 3: 异常波动
|
||
"type": "SOE",
|
||
"unit": "",
|
||
"name": "是否损坏",
|
||
"timestamp": int(10)
|
||
}
|
||
``` |