ソースを参照

Update CT20W_pir_motion_detector.yaml

sityware 2 年 前
コミット
5222d3b912

+ 8 - 12
custom_components/tuya_local/devices/CT20W_pir_motion_detector.yaml

@@ -19,8 +19,7 @@ primary_entity:
           value: armed_home
           value: armed_home
 secondary_entities:
 secondary_entities:
   - entity: binary_sensor
   - entity: binary_sensor
-    name: PIR State
-    class: sound
+    class: motion
     dps:
     dps:
       - id: 6
       - id: 6
         type: string
         type: string
@@ -31,7 +30,6 @@ secondary_entities:
           - dps_val: pir
           - dps_val: pir
             value: True
             value: True
   - entity: sensor
   - entity: sensor
-    name: Battery Percentage
     class: battery
     class: battery
     unit: "%"
     unit: "%"
     dps:
     dps:
@@ -39,14 +37,13 @@ secondary_entities:
         type: integer
         type: integer
         name: sensor
         name: sensor
   - entity: binary_sensor
   - entity: binary_sensor
-    name: USB Power Status
+    class: plug
     dps:
     dps:
       - id: 102
       - id: 102
         type: boolean
         type: boolean
         name: sensor
         name: sensor
-        optional: true
   - entity: number
   - entity: number
-    name: Alarm Duration
+    name: Alarm duration
     category: config
     category: config
     icon: "mdi:timer"
     icon: "mdi:timer"
     mode: box
     mode: box
@@ -57,10 +54,9 @@ secondary_entities:
         unit: s
         unit: s
         range:
         range:
           min: 0
           min: 0
-          max: 255
-          default: 10
+          max: 300
   - entity: select
   - entity: select
-    name: Alert Option
+    name: Alert option
     icon: "mdi:settings"
     icon: "mdi:settings"
     category: config
     category: config
     dps:
     dps:
@@ -69,11 +65,11 @@ secondary_entities:
         name: option
         name: option
         mapping:
         mapping:
           - dps_val: "OnlySound_mode"
           - dps_val: "OnlySound_mode"
-            value: "Sound Only"
+            value: "Sound only"
           - dps_val: "OnlyLight_mode"
           - dps_val: "OnlyLight_mode"
-            value: "Light Only"
+            value: "Light only"
           - dps_val: "SoundLight_mode"
           - dps_val: "SoundLight_mode"
-            value: "Sound and Light"
+            value: "Sound and light"
           - dps_val: "Mute_mode"
           - dps_val: "Mute_mode"
             value: "Mute"
             value: "Mute"