using System;
namespace ZigBee.Device
{
//设备功能
public enum Cluster_ID
{
Gateway = 0,
///
/// 基础属性
///
Basic = 0,
///
/// 查询电量
///
Power = 1,
///
/// 设备识别功能
///
Identify = 3,
///
/// 组功能
///
Groups = 4,
///
///场景功能
///
Scenes = 5,
///
///开光
///
Switch = 6,
///
/// 程度调节功能
///
LevelControl = 8,
///
/// 颜色调节功能
///
ColorControl = 768,
///
/// 窗帘功能
///
WindowCovering = 258,
///
/// 温度测量功能
///
TemperatureMeasurement = 1026,
///
///湿度测量功能
///
RelativeHumidityMeasurement = 1029,
///
///PM2.5测量功能
///
PmTwoPointFiveMeasurement = 1066,
///
/// 恒温器功能
///
Thermostat = 513,
///
/// 恒温器功能(风扇)
///
FanControl = 514,
///
/// 恒温器功能(风扇扫风)
///
FanSwing = 514,
///
/// 门锁功能
///
DoorLock = 10,
///
/// IAS安防功能
///
IAS = 1280,
///
/// 私有按键
///
HdlKey = 6,
///
/// IAS报警设备功能
///
IASWD = 1282,
///
/// 查询设备的镜像类型和版本
///
Ota = 25,
}
///
/// 属性id
///
public enum AttriButeId
{
Switch = 0,//开关状态 开关
///
/// 当前色调值
///
CurrentHue = 0,
///
/// 当前饱和度值
///
CurrentSaturation = 1,
///
/// 当前增强型色调值
///
EnhancedCurrentHu = 16384,
///
/// 当前标准色度值X
///
CurrentX = 3,
///
/// 当前标准色度值Y
///
CurrentY = 4,
///
/// 当前的色温值
///
ColorTemperatureMireds = 7,
///
/// 硬件支持的最小色温值
///
ColorTempPhysicalMinMireds = 16395,
///
/// 硬件支持的最大色温值
///
ColorTempPhysicalMaxMireds = 16396,
///
///温度测量 温度
///
MeasuredValue = 0,
///
/// 1、此属性为当前测量设备所能测量的湿度下限。
///2、最大分辨率为0.01%。
///3、此属性值的范围为
///0%(0x0000)~99.99%(0x270f)
///4、若MinMeasuredValue为0xffff,表明此属性值未定义。
///
MinMeasuredValue = 1,
///
///1、此属性为当前测量设备所能测量的温度上限。
///2、最大分辨率为0.01%。
///3、此属性值的范围为
///0.01%(0x0001)~100%(0x2710)
///4、若MaxMeasuredValue为0xffff,表明此属性值未定义。
///
MaxMeasuredValue = 2,
///
///1、此属性表明此湿度传感器的测量误差。
///2、真实温度值MeasuredValue应为:
///(MeasuredValue-Tolerance)~
///( MeasuredValue+Tolerance)
///
Tolerance = 3,
///
///程度状态
///
LevelControl = 0,
///
/// //门锁状态
///
DoorLock = 0,
///
///IAS安防设备设备类型上报
///
IAS = 1,
///
///灯具种类
///
ColorCapabilities = 16394,
#region 窗帘
///
///窗帘设备类型
///
WindowCoveringType = 0,
///
///窗帘设备总长
///
WindowCoveringLength = 1,
///
///窗帘当前高度,单位:cm
///
CurrentPositionLift = 3,
///
///当前窗帘所在的位置(百分比)
///
CurrentPositionLiftPercentage = 8,
///
///窗帘全开所在的位置,单位:cm
///
InstalledOpenLimitLift = 16,
///
///窗帘全关所在的位置,单位:cm
///
InstalledClosedLimitLift = 17,
///
///窗帘全开所在的角度,单位:0.1°
///
InstalledOpenLimitTilt = 18,
///
///窗帘全关所在的角度,单位:0.1°
///
InstalledClosedLimitTilt = 19,
///
///窗帘当前模式
///
WindowCoveringMode = 23,
#endregion
#region (恒温设备)空调
///
///当前室内温度(当前的温度*100,实际温度为“LocalTemperature/100”,单位:℃。)
///2、最大分辨率为0.01℃。
///3、范围值为:-273.15℃ ~ 327.67℃
///
LocalTemperature = 0,
///
///当前的制冷温度
///1、实际温度为“CoolingSetpoint/100”,单位:℃。
///2、最大分辨率为0.01℃。
///3、范围值为:
///MinCoolSetpointLimit ~ MaxCoolSetpointLimit
///
CoolingSetpoint = 17,
///
///当前的制热温
///实际温度为“HeatingSetpoint/100”,单位:℃。
///2、最大分辨率为0.01℃。
///3、范围值为:MinHeatSetpointLimit ~ MaxHeatSetpointLimit
///
HeatingSetpoint = 18,
///
/// 当前自动温度
///
AutoSetpoint = 4096,
///
///恒温设备类型
///MinCoolSetpointLimit ~ MaxCoolSetpointLimit
///
ControlSequenceOfOperation = 27,
///
///恒温设备模式
///MinCoolSetpointLimit ~ MaxCoolSetpointLimit
///
SystemMode = 28,
///
///风扇当前的工作模式
///
FanMode = 0,
///
///风扇拥有的工作模式种类
///
FanModeSequence = 1,
///
/// 过虑网清洗标志,如果返回十进制【42】则代表需要清洗滤网
///
FilterCleaningStatus = 4097,
///
/// 空调自定义设置的支持模式
///
AcModeSupport = 4099,
///
/// 空调摆风
///
FanSwing = 4096,
///
/// 过虑网清洗标志:42
///
CleanStatu = 4097,
///
/// 启用空调摆风模式的状态(打开 或者 关闭)
///
UseAcSwingFunctionStatu = 4097,
#endregion
#region 私有按键属性
///
/// 私有按键属性
///
HdlKey = 6533,
#endregion
#region 安防
///
/// 报警设备在无停止命令时能发出的最长报警时长,单位:秒
///
MaxDuration = 33,
#endregion
///
/// 当前运行程序版本信息(设备版本)
///
ImgVersion = 2,
///
/// 设备镜像类型ID
///
ImgTypeId = 8,
///
/// 硬件版本
///
mgHWversion = 65024,
///
/// 门锁电量
///
DoorLockPower = 33,
}
///
/// 操作命令
///
public enum Command
{
AddLogic = 2000,
ReviseAttribute = 2001,
GetLogicInfo = 2002,
GetLogicList= 2004,
LogicChangeCondition = 2005,
LogicSetConditionData = 2006,
LogicChangeAction = 2007,
LogicDelAction = 2008,
DelLogic= 2009,
///
/// 推迟定时
///
LogicTimingWillArrive = 2010,
///
/// 推迟定时
///
LogicTimeDelayTrigger = 2011,
///
/// 执行逻辑动作
///
ControlLogic = 2012,
SceneGetNewId = 800,
SceneAddMember = 810,
}
}