|
@@ -46,7 +46,7 @@ public class TuyaUtilsSo {
|
|
|
public Context context;
|
|
|
private boolean isWeight = false;
|
|
|
private int heatType = 0;
|
|
|
- private int autoMaticType = -1;
|
|
|
+ public int autoMaticType = -1;
|
|
|
private static Map<Integer, Integer> map;
|
|
|
public boolean isUser = false; //避免重复上报问题
|
|
|
|
|
@@ -469,12 +469,13 @@ public class TuyaUtilsSo {
|
|
|
DevInfo info = CofarSDK.devInfo();
|
|
|
BaseDevMode mode = info.getMode();
|
|
|
int time = (int) System.currentTimeMillis();
|
|
|
- if (getAutoMaticModes(info.getRunningInstId()) != autoMaticType) {
|
|
|
- //称重的时候不忽略 由于称重的runningId 是 diy 对应不上,估在下面再处理多一个判断
|
|
|
- if (!info.isWeightStatus()){
|
|
|
- return;
|
|
|
- }
|
|
|
- }
|
|
|
+
|
|
|
+// if (getAutoMaticModes(info.getRunningInstId()) != autoMaticType) {
|
|
|
+// //称重的时候不忽略 由于称重的runningId 是 diy 对应不上,估在下面再处理多一个判断
|
|
|
+// if (!info.isWeightStatus()){
|
|
|
+// return;
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
// Log.e("tuya_iot",info.toString());
|
|
|
int status = info.getStatus();
|
|
@@ -491,6 +492,10 @@ public class TuyaUtilsSo {
|
|
|
} else {
|
|
|
pot_status = 0;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ //getStatus 0 stop 1 start 2 pause
|
|
|
+
|
|
|
int work_state = 0;
|
|
|
if (status == 0) {
|
|
|
work_state = 0;
|
|
@@ -595,9 +600,9 @@ public class TuyaUtilsSo {
|
|
|
private int getModes(String enumValue) {
|
|
|
|
|
|
|
|
|
- if (autoMaticType != -1) {
|
|
|
- return autoMaticType;
|
|
|
- }
|
|
|
+// if (autoMaticType != -1) {
|
|
|
+// return autoMaticType;
|
|
|
+// }
|
|
|
|
|
|
/**
|
|
|
* 0 DIY,1 和面(Knead) ,2 蒸汽(Steam), 3 低温慢煮(Sous_vide) ,4 煮米饭(Rice) ,
|
|
@@ -669,7 +674,7 @@ public class TuyaUtilsSo {
|
|
|
}
|
|
|
|
|
|
|
|
|
- private int getAutoMaticModes(String enumValue) {
|
|
|
+ public int getAutoMaticModes(String enumValue) {
|
|
|
/**
|
|
|
* 0 DIY,1 和面(Knead) ,2 蒸汽(Steam), 3 低温慢煮(Sous_vide) ,4 煮米饭(Rice) ,
|
|
|
* 5 搅碎(Chop) , 6 奶昔(Smoothie),7 称重(Weight) ,8 切丁(Dive), 9 去皮(Peeling) ,10 烧水(Boil_water),11 切丝切片 (Food_processor)
|