浏览代码

Ovlaim ceiling fan: timer off is off, hour is spelt in full

Based on log, the device is sending "off" rather than "cancel" for timer off
From the QueryThingsDataModel result, we can see it also spells out
hour in full for the other options.

Discussion #1728
Jason Rumney 2 年之前
父节点
当前提交
2e7adb4090
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      custom_components/tuya_local/devices/ovlaim_ceiling_fan_light.yaml

+ 5 - 5
custom_components/tuya_local/devices/ovlaim_ceiling_fan_light.yaml

@@ -58,13 +58,13 @@ secondary_entities:
         type: string
         name: option
         mapping:
-          - dps_val: cancel
+          - dps_val: "off"
             value: "Off"
-          - dps_val: "1h"
+          - dps_val: "1hour"
             value: "1 hour"
-          - dps_val: "2h"
+          - dps_val: "2hour"
             value: "2 hours"
-          - dps_val: "4h"
+          - dps_val: "4hour"
             value: "4 hours"
-          - dps_val: "8h"
+          - dps_val: "8hour"
             value: "8 hours"