修改香薰机
This commit is contained in:
parent
d625195755
commit
9c76284402
@ -20,6 +20,9 @@ public enum TuyaCategoryEnum {
|
|||||||
|
|
||||||
SD("sd", "扫地机器人", "power"),
|
SD("sd", "扫地机器人", "power"),
|
||||||
|
|
||||||
|
DD("dd", "灯带", "switch_led"),
|
||||||
|
|
||||||
|
XXJ("xxj", "香薰机", "switch"),
|
||||||
|
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@ -190,7 +190,7 @@ public class TuyaDeviceService {
|
|||||||
int intValue = (int) value;
|
int intValue = (int) value;
|
||||||
jsonObject.put("value", intValue <= min ? min + 1 : intValue);
|
jsonObject.put("value", intValue <= min ? min + 1 : intValue);
|
||||||
}
|
}
|
||||||
if (javaList.contains(jsonObject)) {
|
if (javaList.contains(jsonObject)&&!Objects.equals(deviceInfo.getString("category"),"xxj")) {
|
||||||
tuyaResponse.setMessage("已在当前状态");
|
tuyaResponse.setMessage("已在当前状态");
|
||||||
tuyaResponse.setCode(200);
|
tuyaResponse.setCode(200);
|
||||||
return Mono.just(tuyaResponse);
|
return Mono.just(tuyaResponse);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user