# -*- 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/{}'

# 传感器类型
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': 2152,
    '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,
}
