| | |
| | | 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> |
| | |
| | | { |
| | | 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); |