| | |
| | | var list = new List<FunctionAttributes>(); |
| | | if (spk == SPK.GroupControl) |
| | | { |
| | | var gc = FunctionList.List.groupControls.Find((obj) => obj.sid == sid); |
| | | if (gc != null) |
| | | lock (list) |
| | | { |
| | | foreach (var temp in gc.sids) |
| | | var gc = FunctionList.List.groupControls.Find((obj) => obj.sid == sid); |
| | | if (gc != null) |
| | | { |
| | | var light = FunctionList.List.GetLightList().Find((obj) => obj.sid == temp.sid); |
| | | if (light != null) |
| | | foreach (var temp in gc.sids) |
| | | { |
| | | foreach (var attr in light.attributes) |
| | | var light = FunctionList.List.GetLightList().Find((obj) => obj.sid == temp.sid); |
| | | if (light != null) |
| | | { |
| | | if (list.Find((obj) => obj.key == attr.key) == null) |
| | | foreach (var attr in light.attributes) |
| | | { |
| | | list.Add(attr); |
| | | if (list.Find((obj) => obj.key == attr.key) == null) |
| | | { |
| | | list.Add(attr); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | else |
| | | { |
| | |
| | | /// 当前值 |
| | | /// </summary> |
| | | public object curValue = new object(); |
| | | /// <summary> |
| | | /// 属性单位 |
| | | /// </summary> |
| | | public string unit=string.Empty; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | public const string Ev_Ipcam = "security.ipcam.ez"; |
| | | /// <summary> |
| | | /// 影音中控 |
| | | /// </summary> |
| | | public const string AvZkAiks = "av.zk.aiks"; |
| | | |
| | | /// <summary> |
| | | /// 萤石视频门锁spk列表 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | |
| | | { |
| | | var list = new List<string>(); |
| | | list.Add(VideoDoorLock); |
| | | return list; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 影音中控spk列表 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public static List<string> GetVideoControlsSPKList() |
| | | { |
| | | var list = new List<string> |
| | | { |
| | | AvZkAiks |
| | | }; |
| | | return list; |
| | | } |
| | | |
| | |
| | | |
| | | #region 家电 |
| | | /// <summary> |
| | | /// 海信电视 |
| | | /// </summary> |
| | | public const string ElectricalTvHisense = "electrical.tv.hisense"; |
| | | /// <summary> |
| | | /// 家电、插座 |
| | | /// </summary> |
| | | public const string ElectricSocket = "electrical.socket"; |
| | |
| | | spkList.Add(ElectricTuyaWaterValve); |
| | | spkList.Add(ElectricTuyaWaterValve2); |
| | | spkList.Add(AirSwitch); |
| | | spkList.Add(ElectricalTvHisense); |
| | | return spkList; |
| | | } |
| | | |