iot/docs/north_data.md
2023-09-14 16:36:42 +08:00

3.5 KiB
Raw Blame History

概念说明

遥测为AI遥信为DI事件为SOE。其中AI和DI我可以实现数据的展示SOE只能报警显示无法实现画面的二次应用。对于智慧照明开关灯定义为SOE我后台这边只存在一条事件

水表

流量累计值(数据)

 {
        "key": "flow",
        "value": float,
        "type": "AI",
        "unit": 44, (立方米)
        "label": "m3"
        "name": "流量",
        "timestamp": int(10)
    }

电表

正向有功总电能(数据)

 {
        "key": " positive_power",
        "value": float,
        "type": "AI",
        "unit": 5,
        "label": "kwh"
        "name": "正向有功总电能",
        "timestamp": int(10)
    }

A相电压(数据)

 {
        "key": "voltage_A",
        "value": float,
        "type": "AI",
        "unit": 0,
        "label": "V"
        "name": "A相电压",
        "timestamp": int(10)
    }

设备状态变化


{
    "key": "device_status",
    "value": NewStatus, 0: 离线, 1: 在线
    "unit": 0,
    "type": <<"DI">>,
    "name": "设备状态",
    "timestamp": int(10)
}

边缘主机设备状态变化


{
    "key": "host_status",
    "value": NewStatus, 0: 离线, 1: 在线
    "unit": 0,
    "type": <<"DI">>,
    "name": "主机状态",
    "timestamp": int(10)
}

智慧照明

总能耗(数据)

 {
        "key": "total_power",
        "value": float,
        "type": "AI",
        "unit": 2,
        "name": "总能耗",
        "label": "W.h",
        "timestamp": int(10)
    }

总运行时间(数据)

 {
        "key": "total_runtime",
        "value": float,
        "type": "AI",
        "unit": 0,
        "name": "总运行时间",
        "label": "h",
        "timestamp": int(10)
    }

实时功率(数据)

 {
        "key": "actual_power",
        "value": float,
        "type": "AI",
        "unit": 18,
        "name": "实时功率",
        "label": "W",
        "timestamp": int(10)
    }

使用次数(数据)

 {
        "key": "use_times",
        "value": int,
        "type": "AI",
        "unit": 0,
        "name": "使用次数",
        "label": "次",
        "timestamp": int(10)
    }

灯开关(事件)

 {
        "key": "light_switch",
        "value": bool, 1: 开0: 关
        "type": "DI",
        "unit": 0,
        "name": "开关",
        "timestamp": int(10)
    }

亮度变化(事件)

 {
        "key": "light_brightness",
        "value": int, 范围: 0 ~ 100
        "type": "SOE",
        "unit": 0,
        "name": "亮度",
        "timestamp": int(10)
    }

变亮变暗时间(事件)

 {
        "key": "light_change_time",
        "value": int, 范围: 1 ~ 200
        "type": "SOE",
        "unit": 0,
        "name": "变亮变暗时间",
        "timestamp": int(10)
    }

色温(事件)

 {
        "key": "light_rgb",
        "value": int,
        "type": "SOE",
        "unit": 0,
        "name": "色温",
        "timestamp": int(10)
    }

RGB (事件)

 {
        "key": "light_rgb",
        "value": string,
        "type": "SOE",
        "unit": 0,
        "name": "RGB",
        "timestamp": int(10)
    }

是否损坏(事件)

 {
        "key": "light_status",
        "value": int, 0: 正常, 1: 不没, 2: 不亮, 3: 异常波动
        "type": "SOE",
        "unit": 0,
        "name": "是否损坏",
        "timestamp": int(10)
    }