Просмотр исходного кода

Update moes_motionsensor_switch.yaml

Daniel Levine 1 год назад
Родитель
Сommit
932ecfe5e6
1 измененных файлов с 19 добавлено и 7 удалено
  1. 19 7
      custom_components/tuya_local/devices/moes_motionsensor_switch.yaml

+ 19 - 7
custom_components/tuya_local/devices/moes_motionsensor_switch.yaml

@@ -1,6 +1,23 @@
 # Example DPS Status
 # Example DPS Status
-# {"dps": { "1": false, "14": "memory", "15": "relay", "43": false, "44": "on", "45": "default", "46": true, "47": "on", "48": "high", "49": 3600, "101": 0, "102": 0}
-# Additional DPS 44 "Illuminance State" and 47 "Motion State". I couldn't figure out what those did, device debugger appears to indicate that these were set exactly once (to "on") when the switch was powered on and does NOT seem to trigger or respond when Illuminance or Motion trigger is met, but maybe I just don't know how to check that well. A final DPS shows up only in the Tuya Cloud API: 103 "Timer". There are "timers" in the Smart Life App for this device but I couldn't figure out how they work.
+# {"dps": { "1": false, "14": "memory", "15": "relay", "43": false, "44": "on",
+# "45": "default", "46": true, "47": "on", "48": "high", "49": 3600, "101": 0,
+# "102": 0}
+# Additional DPS 44 "Illuminance State" and 47 "Motion State". I couldn't
+# figure out what those did, device debugger appears to indicate that these
+# were set exactly once (to "on") when the switch was powered on and does NOT
+# seem to trigger or respond when Illuminance or Motion trigger is met, but
+# maybe I just don't know how to check that well. A final DPS shows up only in
+# the Tuya Cloud API: 103 "Timer". There are "timers" in the Smart Life App for
+# this device but I couldn't figure out how they work.
+# Illuminance Switch: Enables/disables illuminance threshold for motion
+#                     activation
+# Motion Switch: Enables/disables motion-triggered switch
+# Motion Auto-Off Delay: Time in seconds after which to turn off light if
+#                        triggered by motion
+# Appointment Time: Time of day in minutes when motion switch stops activating,
+#                   0 for always
+# Target Time: Time of day in minutes when motion switch can activate, 0 for
+#              always
 name: MOES Motion Sensor Smart Switch
 name: MOES Motion Sensor Smart Switch
 products:
 products:
   - id: vd5jgg8vgdbaqerq
   - id: vd5jgg8vgdbaqerq
@@ -38,7 +55,6 @@ secondary_entities:
           - dps_val: relay
           - dps_val: relay
             value: Indicate switch on/off
             value: Indicate switch on/off
   - entity: switch
   - entity: switch
-    # Enable or disable illuminance threshold for motion activation
     dps:
     dps:
       - id: 43
       - id: 43
         name: Illuminance Switch
         name: Illuminance Switch
@@ -56,7 +72,6 @@ secondary_entities:
           - dps_val: now
           - dps_val: now
             value: Current Illuminance
             value: Current Illuminance
   - entity: switch
   - entity: switch
-    # Enable or disable motion-triggered switch
     dps:
     dps:
       - id: 46
       - id: 46
         name: Motion Switch
         name: Motion Switch
@@ -77,7 +92,6 @@ secondary_entities:
             value: "High"
             value: "High"
   - entity: number
   - entity: number
     name: Motion Auto-Off Delay
     name: Motion Auto-Off Delay
-    # Time in seconds after which to turn off light if triggered by motion
     category: config
     category: config
     dps:
     dps:
       - id: 49
       - id: 49
@@ -89,7 +103,6 @@ secondary_entities:
           max: 3600
           max: 3600
   - entity: number
   - entity: number
     name: Appointment Time
     name: Appointment Time
-    # Time of day in minutes when motion switch stops activating, 0 for always
     category: config
     category: config
     dps:
     dps:
       - id: 101
       - id: 101
@@ -101,7 +114,6 @@ secondary_entities:
           max: 1440
           max: 1440
   - entity: number
   - entity: number
     name: Target Time
     name: Target Time
-    # Time of day in minutes when motion switch can activate, 0 for always
     category: config
     category: config
     dps:
     dps:
       - id: 102
       - id: 102