| | |
| | | break; |
| | | case SPK.IpCam_Imou: |
| | | { |
| | | if (inputCondition.identifier == "door_caipcam_region_alram_eventll_cloud_event") |
| | | if (inputCondition.identifier == "ipcam_region_alram_event") |
| | | { |
| | | inputView.btnState.Text = Language.StringByID(StringId.quyuruqingaojing); |
| | | } |
| | |
| | | } |
| | | break; |
| | | case SPK.Ev_Ipcam: |
| | | if (inputCondition.identifier == "motiondetect_event") |
| | | { |
| | | inputView.btnState.Text = Language.StringByID(StringId.shi); |
| | | } |
| | | break; |
| | | case SPK.Peephole: |
| | | if (inputCondition.identifier == "pir_event") |
| | | { |
| | | inputView.btnState.Text = Language.StringByID(StringId.On); |
| | | inputView.btnState.Text = Language.StringByID(StringId.shi); |
| | | } |
| | | break; |
| | | case SPK.SensorPirHold: |
| | |
| | | string on_off = GetKeyValue("on_off", dicList); |
| | | string brightness = GetKeyValue("brightness", dicList); |
| | | string cct = GetKeyValue(FunctionAttributeKey.CCT, dicList); |
| | | string colorful = GetKeyValue(FunctionAttributeKey.Colorful, dicList); |
| | | //自动化组控 炫彩功能 |
| | | //string colorful = GetKeyValue(FunctionAttributeKey.Colorful, dicList); |
| | | string rgb = GetKeyValue("rgb", dicList); |
| | | |
| | | |
| | |
| | | stateStr += "," + Language.StringByID(StringId.ColorTemperature) + cct + "k"; |
| | | } |
| | | |
| | | if (!string.IsNullOrEmpty(colorful)) |
| | | { |
| | | stateStr += "," + Language.StringByID(StringId.ColorfulFunction); |
| | | if (colorful == "on") |
| | | { |
| | | stateStr += Language.StringByID(StringId.onLogic); |
| | | } |
| | | else if (colorful == "off") |
| | | { |
| | | stateStr += Language.StringByID(StringId.offLogic); |
| | | } |
| | | |
| | | } |
| | | //if (!string.IsNullOrEmpty(colorful)) |
| | | //{ |
| | | // stateStr += "," + Language.StringByID(StringId.ColorfulFunction); |
| | | // if (colorful == "on") |
| | | // { |
| | | // stateStr += Language.StringByID(StringId.onLogic); |
| | | // } |
| | | // else if (colorful == "off") |
| | | // { |
| | | // stateStr += Language.StringByID(StringId.offLogic); |
| | | // } |
| | | //} |
| | | |
| | | if (!string.IsNullOrEmpty(rgb) && rgb.Length > 6) |
| | | { |
| | |
| | | button1.Tag = tag; |
| | | } |
| | | break; |
| | | |
| | | |
| | | case SPK.MusicStandard: |
| | | case SPK.AvMusic: |
| | | { |
| | |
| | | public string GetTemperatureUnit(Entity.Function device) |
| | | { |
| | | string unit = string.Empty; |
| | | if (device.GetAttribute("temperature_type") != null && device.GetAttribute("temperature_type").value.Count > 0) |
| | | if (device.GetAttribute("temperature_type") != null) |
| | | { |
| | | unit = device.GetAttribute("temperature_type").value[0]; |
| | | unit = device.GetAttribute("temperature_type").unit; |
| | | } |
| | | if (string.IsNullOrEmpty(unit)) |
| | | { |