1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- # -*- coding: utf-8 -*-
- """
- @Author : Rocky
- @Time : 2022/8/8 11:20
- @File :gatewaySensorConfig.py
- """
- # MQTT主题名
- SMART_SCENE_TOPIC = 'loocam/gateway_sensor/smart_scene/{}'
- GET_SCENE_TOPIC = 'loocam/gateway_sensor/get_scene/{}'
- SMART_SOCKET_TOPIC = 'loocam/smart-socket/{}'
- ANSJER_GENERIC_TOPIC = 'ansjer/generic/{}'
- # 设备类型
- DEVICE_TYPE = {
- 'gateway': 200,
- 'socket': 201,
- 'switch': 202,
- 'C516': 24
- }
- # 传感器类型
- SENSOR_TYPE = {
- 'door_magnet': 215,
- 'smart_button': 216,
- 'water_flood_sensor': 217,
- 'smoke_sensor': 218,
- 'body_sensor': 219,
- 'tem_hum_sensor': 220,
- }
- # 事件类型
- EVENT_TYPE = {
- # 门磁
- 'door_magnet_opening': 2150,
- 'door_magnet_closure': 2151,
- 'door_magnet_removal': 2156,
- 'door_magnet_low_power': 2153,
- 'door_magnet_start_detection': 2154,
- 'door_magnet_closure_detection': 2155,
- # 智能按钮
- 'smart_button_press': 2160,
- 'smart_button_click': 2161,
- 'smart_button_double_click': 2162,
- 'smart_button_three_click': 2163,
- 'smart_button_low_power': 2164,
- # 水浸
- 'flood_trigger': 2170,
- 'flood_recovery': 2171,
- 'flood_low_power': 2172,
- # 烟雾
- 'smoke_trigger': 2180,
- 'smoke_recovery': 2181,
- 'smoke_removal': 2182,
- 'smoke_low_power': 2183,
- # 人体红外
- 'someone_moves': 2190,
- 'no_one_moves': 2191,
- 'body_sensor_removal': 2192,
- 'body_sensor_low_power': 2193,
- 'body_sensor_start_detection': 2194,
- 'body_sensor_closure_detection': 2195,
- # 温湿度
- 'temperature': 2200,
- 'humidity': 2201,
- 'tem_hum_sensor_low_power': 2202,
- # 插座电源
- 'socket_power_on': 2010,
- 'socket_power_off': 2011,
- # 摄像头
- 'detection_reminder_on': 1002,
- 'detection_reminder_off': 1003,
- 'snapshot': 1004,
- 'record_video': 1005,
- 'human_tracking_on': 1006,
- 'human_tracking_off': 1007,
- }
|