| | |
| | | /// </summary> |
| | | public string deviceId = "0"; |
| | | /// <summary> |
| | | /// 第三方设备扩展id |
| | | /// </summary> |
| | | public string extDevId = string.Empty; |
| | | /// <summary> |
| | | /// 设备spk |
| | | /// </summary> |
| | | public string spk = ""; |
| | |
| | | case FunctionAttributeKey.CCT: |
| | | case FunctionAttributeKey.RGB: |
| | | case FunctionAttributeKey.Angle: |
| | | case "security": |
| | | //case FunctionAttributeKey.FadeTime: |
| | | if (attr.curValue.ToString() == "{}") |
| | | { |
| | |
| | | attr.curValue = "day"; |
| | | } |
| | | } |
| | | } |
| | | else if(attr.key == "security") |
| | | { |
| | | attr.curValue = "false"; |
| | | } |
| | | else |
| | | { |
| | |
| | | public static class FunctionAttributeKey |
| | | { |
| | | public const string _null = ""; |
| | | /// <summary> |
| | | /// 安防布防状态 |
| | | /// </summary> |
| | | public const string Security = "security"; |
| | | /// <summary> |
| | | /// 开关 |
| | | /// </summary> |
| | |
| | | /// 通用开关 |
| | | /// </summary> |
| | | public const string OtherCommon = "other.common"; |
| | | |
| | | /// <summary> |
| | | /// 大华摄像头 |
| | | /// </summary> |
| | | public const string IpCam_Imou = "security.ipcam.imou"; |
| | | /// <summary> |
| | | /// 机械手 |
| | | /// </summary> |
| | | public const string MechanicalArm = "electrical.mechanical_arm"; |
| | | /// <summary> |
| | | /// 空调科技系统(绿建) |
| | | /// 总控 |
| | |
| | | public const string SenesorMegahealth = "sensor.megahealth"; |
| | | public const string SenesorMegahealth2 = "sensor.megahealth.zg"; |
| | | /// <summary> |
| | | /// 毫米波传感器(姿态版) |
| | | /// </summary> |
| | | public const string SensorMmvPose = "sensor.mmv_pose"; |
| | | /// <summary> |
| | | /// 紧急呼叫 |
| | | /// </summary> |
| | | public const string SensorHelp = "sensor.help"; |
| | |
| | | spkList.Add(SensorDryContact2); |
| | | spkList.Add(SenesorMegahealth); |
| | | spkList.Add(SenesorMegahealth2); |
| | | spkList.Add(SensorMmvPose); |
| | | return spkList; |
| | | } |
| | | #endregion |
| | |
| | | } |
| | | |
| | | #region 环境传感器 |
| | | /// <summary> |
| | | /// (PM10传感器) |
| | | /// </summary> |
| | | public const string SensorPm10 = "sensor.pm10"; |
| | | /// <summary> |
| | | /// (温度传感器) |
| | | /// </summary> |
| | |
| | | { |
| | | var spkList = new List<string>(); |
| | | spkList.Add(SensorTemperature); |
| | | spkList.Add(SensorPm10); |
| | | spkList.Add(SensorPm25); |
| | | spkList.Add(SensorCO2); |
| | | spkList.Add(SensorTVOC); |
| | |
| | | { |
| | | var spkList = new List<string>(); |
| | | spkList.Add(SensorTemperature); |
| | | spkList.Add(SensorPm10); |
| | | spkList.Add(SensorPm25); |
| | | spkList.Add(SensorCO2); |
| | | spkList.Add(SensorTVOC); |
| | |
| | | spkList.Add(ElectricTuyaWaterValve2); |
| | | spkList.Add(ElectricTuyaWeepRobot); |
| | | spkList.Add(ElectricTuyaWeepRobot2); |
| | | spkList.Add(SensorMmvPose); |
| | | spkList.Add(SenesorMegahealth); |
| | | spkList.Add(SenesorMegahealth2); |
| | | return spkList; |
| | |
| | | list.Add(ElectricTuyaWeepRobot2); |
| | | break; |
| | | case BrandType.All3tyBrand: |
| | | list.Add(SenesorMegahealth);//兆观 |
| | | list.Add(SenesorMegahealth2);//兆观 |
| | | break; |
| | | } |
| | | return list; |