| | |
| | | } |
| | | break; |
| | | case SPK.SensorPir: |
| | | case SPK.SensorPirHold: |
| | | if (inputValue == "true") |
| | | { |
| | | text += Language.StringByID(StringId.youren) + " "; |
| | |
| | | } |
| | | break; |
| | | case SPK.SensorPir: |
| | | case SPK.SensorPirHold: |
| | | foreach (var con in condition) |
| | | { |
| | | if (con.value == "true") |
| | |
| | | { |
| | | /// <summary> |
| | | /// 控制目标类型 |
| | | /// 0:设备 |
| | | /// 1:场景 |
| | | /// 2:自动化 |
| | | /// 1:设备 |
| | | /// 2:场景 |
| | | /// 3:自动化 |
| | | /// </summary> |
| | | public string target_type = "0"; |
| | | public string target_type = "1"; |
| | | /// <summary> |
| | | /// 输出目标的sid |
| | | /// </summary> |
| | |
| | | public string StateText() |
| | | { |
| | | string text = ""; |
| | | if (target_type == "0") |
| | | if (target_type == "1") |
| | | { |
| | | switch (spk) |
| | | { |
| | |
| | | } |
| | | break; |
| | | } |
| | | }else if(target_type == "1") |
| | | }else if(target_type == "2") |
| | | { |
| | | text = Language.StringByID(StringId.Open); |
| | | } |