| | |
| | | 7170=Human presence detection |
| | | 7171=continue |
| | | 7172=Rgb color plate |
| | | 7173=Illuminance |
| | | 7174=Exceed |
| | | 7175=Under |
| | | |
| | | 8501=Video door lock |
| | | 8502=Electric quantity |
| | |
| | | 7170=人体存在检测 |
| | | 7171=持续 |
| | | 7172=RGB色盘 |
| | | 7173=照明度 |
| | | 7174=照明度高于 |
| | | 7175=照明度低于 |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | |
| | | 7170=Human presence detection |
| | | 7171=continue |
| | | 7172=Rgb color plate |
| | | 7173=Illuminance |
| | | 7174=Exceed |
| | | 7175=Under |
| | | |
| | | 8501=Video door lock |
| | | 8502=Electric quantity |
| | |
| | | 7170=Human presence detection |
| | | 7171=continue |
| | | 7172=Rgb color plate |
| | | 7173=Illuminance |
| | | 7174=Exceed |
| | | 7175=Under |
| | | |
| | | 8501=Video door lock |
| | | 8502=Electric quantity |
| | |
| | | 7170=Human presence detection |
| | | 7171=continue |
| | | 7172=Rgb color plate |
| | | 7173=Illuminance |
| | | 7174=Exceed |
| | | 7175=Under |
| | | |
| | | 8501=Video door lock |
| | | 8502=Electric quantity |
| | |
| | | <MtouchArch>x86_64</MtouchArch> |
| | | <MtouchLink>Full</MtouchLink> |
| | | <MtouchDebug>true</MtouchDebug> |
| | | <CodesignKey>Apple Development: xuebiao huang (4P32GXQWWK)</CodesignKey> |
| | | <CodesignKey>iPhone Developer</CodesignKey> |
| | | <MtouchExtraArgs>-gcc_flags="-dead_strip -ObjC"</MtouchExtraArgs> |
| | | <CodesignProvision>OnPro2307291-Dev</CodesignProvision> |
| | | <AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
| | | <MtouchI18n>cjk</MtouchI18n> |
| | | </PropertyGroup> |
| | | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' "> |
| | | <DebugType>none</DebugType> |
| | |
| | | <ErrorReport>prompt</ErrorReport> |
| | | <WarningLevel>4</WarningLevel> |
| | | <MtouchArch>ARM64</MtouchArch> |
| | | <CodesignKey>iPhone Developer</CodesignKey> |
| | | <CodesignKey>Apple Development: xuebiao huang (4P32GXQWWK)</CodesignKey> |
| | | <MtouchDebug>true</MtouchDebug> |
| | | <MtouchI18n>cjk</MtouchI18n> |
| | | <MtouchLink>SdkOnly</MtouchLink> |
| | |
| | | <MtouchEnableSGenConc>false</MtouchEnableSGenConc> |
| | | <CodesignEntitlements>Entitlements.plist</CodesignEntitlements> |
| | | <AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
| | | <CodesignProvision>自动</CodesignProvision> |
| | | <CodesignProvision>OnPro2307291-Dev</CodesignProvision> |
| | | </PropertyGroup> |
| | | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' "> |
| | | <DebugType>none</DebugType> |
| | |
| | | 7170=Human presence detection |
| | | 7171=continue |
| | | 7172=Rgb color plate |
| | | 7173=Illuminance |
| | | 7174=Exceed |
| | | 7175=Under |
| | | |
| | | 8501=Video door lock |
| | | 8502=Electric quantity |
| | |
| | | 7170=人体存在检测 |
| | | 7171=持续 |
| | | 7172=RGB色盘 |
| | | 7173=照明度 |
| | | 7174=照明度高于 |
| | | 7175=照明度低于 |
| | | |
| | | |
| | | |
| | |
| | | 7170=Human presence detection |
| | | 7171=continue |
| | | 7172=Rgb color plate |
| | | 7173=Illuminance |
| | | 7174=Exceed |
| | | 7175=Under |
| | | |
| | | 8501=Video door lock |
| | | 8502=Electric quantity |
| | |
| | | 7170=Human presence detection |
| | | 7171=continue |
| | | 7172=Rgb color plate |
| | | 7173=Illuminance |
| | | 7174=Exceed |
| | | 7175=Under |
| | | |
| | | 8501=Video door lock |
| | | 8502=Electric quantity |
| | |
| | | 7170=Human presence detection |
| | | 7171=continue |
| | | 7172=Rgb color plate |
| | | 7173=Illuminance |
| | | 7174=Exceed |
| | | 7175=Under |
| | | |
| | | 8501=Video door lock |
| | | 8502=Electric quantity |
| | |
| | | /// RGB色盘 |
| | | /// </summary> |
| | | public const int rgbsepan = 7172; |
| | | |
| | | /// <summary> |
| | | /// 照明度 |
| | | /// </summary> |
| | | public const int zhaomingdu = 7173; |
| | | /// <summary> |
| | | /// 照明度高于 |
| | | /// </summary> |
| | | public const int zhaomingdugaoyu = 7174; |
| | | /// <summary> |
| | | /// 照明度低于 |
| | | /// </summary> |
| | | public const int zhaomingdudiyu = 7175; |
| | | |
| | | |
| | | |
| | |
| | | /// 固定域名,正式环境 |
| | | /// 公共域名就近解析 |
| | | /// </summary> |
| | | //public const string GlobalRequestHttpsHost = "https://nearest.hdlcontrol.com"; |
| | | public const string GlobalRequestHttpsHost = "https://test-gz.hdlcontrol.com"; |
| | | public const string GlobalRequestHttpsHost = "https://nearest.hdlcontrol.com"; |
| | | //public const string GlobalRequestHttpsHost = "https://test-gz.hdlcontrol.com"; |
| | | const string APP_KEY = "HDL-HOME-APP-TEST"; |
| | | const string SECRET_KEY = "WeJ8TY88vbakCcnvH8G1tDUqzLWY8yss"; |
| | | |
| | |
| | | spkList.Add(SensorEnvironment2); |
| | | spkList.Add(SensorEnvironment3); |
| | | spkList.Add(SensorHcho); |
| | | spkList.Add(SensorLight); |
| | | return spkList; |
| | | } |
| | | /// <summary> |
| | |
| | | spkList.Add(SensorTVOC); |
| | | spkList.Add(SensorHumidity); |
| | | spkList.Add(SensorHcho); |
| | | spkList.Add(SensorLight); |
| | | return spkList; |
| | | } |
| | | |
| | |
| | | spkList.Add(SensorEnvironment); spkList.Add(SensorEnvironmentHailin); |
| | | spkList.Add(SensorEnvironment2); |
| | | spkList.Add(SensorEnvironment3); |
| | | |
| | | return spkList; |
| | | } |
| | | |
| | |
| | | }; |
| | | } |
| | | break; |
| | | //照度传感器 |
| | | case SPK.SensorLight: |
| | | { |
| | | |
| | | ///照度传感器 |
| | | LogicView.FunTypeView illuminanceView = new LogicView.FunTypeView(); |
| | | illuminanceView.btnText.TextID = StringId.zhaomingdu; |
| | | fLayout.AddChidren(illuminanceView.FLayoutView()); |
| | | |
| | | ///点击事件 |
| | | illuminanceView.btnClick.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | new PublicInterface { }.ViewZuHe(this, StringId.zhaomingdugaoyu, StringId.zhaomingdudiyu, (intText, view) => |
| | | { |
| | | InputBoxAction(device, intText, index, edit); |
| | | }); |
| | | |
| | | }; |
| | | } |
| | | break; |
| | | //甲醛 |
| | | case SPK.SensorHcho: |
| | | { |
| | |
| | | { |
| | | if (edit) |
| | | { |
| | | this.function = device; |
| | | Input inputs = Logic.currlogic.input[index]; |
| | | //清除之前旧数据 |
| | | dicSateteList.Clear(); |
| | |
| | | dicSateteList.AddRange(inputs.condition); |
| | | } |
| | | } |
| | | int max = 100; |
| | | if (device.spk == SPK.SensorLight) |
| | | { |
| | | //照明传感器 |
| | | max =int.MaxValue; |
| | | } |
| | | |
| | | new LogicView.TipPopView { }.InputBox(textInt, stateValue, (value) => |
| | | { |
| | | string keyValue = "20"; |
| | | string key = "20"; |
| | | string data_type = "integer"; |
| | | string comparator = "="; |
| | | switch (textInt) |
| | | { |
| | | case StringId.wendugaoyu: |
| | | { |
| | | keyValue = "temperature"; |
| | | key = "temperature"; |
| | | comparator = ">"; |
| | | data_type = "float"; |
| | | } |
| | | break; |
| | | case StringId.wendudiyu: |
| | | { |
| | | keyValue = "temperature"; |
| | | key = "temperature"; |
| | | comparator = "<"; |
| | | data_type = "float"; |
| | | } |
| | | break; |
| | | case StringId.shidugaoyu: |
| | | { |
| | | keyValue = "humidity"; |
| | | key = "humidity"; |
| | | comparator = ">"; |
| | | } |
| | | break; |
| | | case StringId.shidudiyu: |
| | | { |
| | | keyValue = "humidity"; |
| | | key = "humidity"; |
| | | comparator = "<"; |
| | | } |
| | | break; |
| | | case StringId.zhaomingdugaoyu: |
| | | { |
| | | key = "illuminance"; |
| | | comparator = ">"; |
| | | } |
| | | break; |
| | | case StringId.zhaomingdudiyu: |
| | | { |
| | | key = "illuminance"; |
| | | comparator = "<"; |
| | | } |
| | | break; |
| | | } |
| | | selectedState = device.spk + "_" + value; |
| | | AddDictionary(keyValue, value, data_type, comparator); |
| | | AddDictionary(key, value, data_type, comparator); |
| | | SaveInput(device,index, edit); |
| | | }); |
| | | },1,max); |
| | | } |
| | | /// PM2.5,Co2,Tvoc设置值 |
| | | /// </summary> |
| | |
| | | /// <returns></returns> |
| | | private bool CheckSpk() |
| | | { |
| | | if (this.function == null) |
| | | { |
| | | return false; |
| | | } |
| | | if (this.function.spk == SPK.VideoDoorLock || |
| | | this.function.spk == SPK.doorgate |
| | | ) |
| | |
| | | } |
| | | return false; |
| | | |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// 判断dictionaryB是否完整包含另一个dictionaryA |
| | | /// </summary> |
| | |
| | | inputView.btnState.Text = str; |
| | | } |
| | | break; |
| | | case SPK.SensorLight: |
| | | { |
| | | string str = this.GetText(dicList, "illuminance"); |
| | | inputView.btnState.Text = str; |
| | | |
| | | } |
| | | break; |
| | | case SPK.DoorLock: |
| | | { |
| | | string value = this.GetValue(dicList); |
| | |
| | | if (device.spk == SPK.SensorEnvironment || device.spk == SPK.SensorEnvironmentHailin |
| | | || device.spk == SPK.SensorEnvironment2 |
| | | || device.spk == SPK.SensorEnvironment3 |
| | | || device.spk == SPK.SensorLight |
| | | ) |
| | | { |
| | | ///当前的索引值数据对象 |
| | |
| | | switch (key) |
| | | { |
| | | |
| | | case "illuminance": |
| | | { |
| | | int titleInt = 0; |
| | | if (comparator == ">") |
| | | { |
| | | titleInt = StringId.zhaomingdugaoyu; |
| | | } |
| | | else if (comparator == "<") |
| | | { |
| | | titleInt = StringId.zhaomingdudiyu; |
| | | } |
| | | ConditionDeviceFunList.Current.InputBoxAction(device, titleInt, indexVulae, true, stateValue); |
| | | } |
| | | break; |
| | | case "temperature": |
| | | { |
| | | int titleInt = 0; |
| | |
| | | switch (key) |
| | | { |
| | | |
| | | case "illuminance": |
| | | { |
| | | if (comparator == ">") |
| | | { |
| | | strtext = ">" + value; |
| | | } |
| | | else if (comparator == "<") |
| | | { |
| | | strtext = "<" + value; |
| | | } |
| | | |
| | | } |
| | | break; |
| | | case "temperature": |
| | | { |
| | | if (comparator == ">") |
| | |
| | | { |
| | | return "MusicIcon/localMusic.png"; |
| | | } |
| | | else if (SPK.SensorPm10 == device.spk || SPK.SensorPirHold == device.spk) |
| | | else if (SPK.SensorPm10 == device.spk |
| | | || SPK.SensorPirHold == device.spk |
| | | || SPK.SensorLight == device.spk) |
| | | { |
| | | return "LogicIcon/sensor.png"; |
| | | } |
| | |
| | | { |
| | | return "FunctionIcon/DoorLock/DoorLock.png"; |
| | | } |
| | | |
| | | //LogicIcon/heatlogic.png" |
| | | return $"FunctionIcon/Icon/{device.IconName}.png"; |
| | | |
| | |
| | | || device.spk == SPK.SensorHelp |
| | | || device.spk == SPK.SensorPm10 |
| | | || device.spk == SPK.SensorPirHold |
| | | || device.spk == SPK.SensorLight |
| | | ); |
| | | if (sensor != null) |
| | | { |
| | |
| | | functionTypeList.Add(SPK.SensorHelp); |
| | | functionTypeList.Add(SPK.SensorPm10); |
| | | functionTypeList.Add(SPK.SensorPirHold); |
| | | functionTypeList.Add(SPK.SensorLight); |
| | | |
| | | |
| | | } |
| | |
| | | functionTypeList.Add(SPK.AcIr); |
| | | functionTypeList.Add(SPK.SensorPirHold); |
| | | functionTypeList.Add(SPK.ElectricalTvHisense); |
| | | functionTypeList.Add(SPK.SensorLight); |
| | | |
| | | } |
| | | |
| | |
| | | deviceTypeList.Add(SPK.VideoDoorLock); |
| | | deviceTypeList.Add(SPK.AcIr); |
| | | deviceTypeList.Add(SPK.SensorPirHold); |
| | | deviceTypeList.Add(SPK.SensorLight); |
| | | |
| | | } |
| | | break; |
| | |
| | | { |
| | | //模拟设备 |
| | | var functions = new List<Function> { |
| | | //new Entity.Function { sid = "1234567890", name = "超声波传感器", spk = Entity.SPK.SensorUtrasonic }, |
| | | new Entity.Function { sid = "1234567890", name = "照明传感器", spk = Entity.SPK.SensorLight }, |
| | | // new Entity.Function { sid = "1234567891", name = "温度传感器", spk = Entity.SPK.SensorTemperature }, |
| | | // new Entity.Function { sid = "1234567892", name = "湿度传感器", spk = Entity.SPK.SensorHumidity }, |
| | | //new Entity.Function { sid = "12345678933456", name = "门锁", spk = Entity.SPK.DoorLock }, |