소스 검색

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"