Parcourir la source

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 il y a 1 an
Parent
commit
2e7adb4090

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

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