Explorar el Código

ZYM-100W presence: use dp 1 for occupancy sensor

Based on discussion #2645, dp 104 is not providing reliable results to use
for presence.
Jason Rumney hace 1 año
padre
commit
fe9447a8ce

+ 9 - 8
custom_components/tuya_local/devices/zym100w_presence_sensor.yaml

@@ -10,12 +10,9 @@ primary_entity:
       type: string
       type: string
       name: sensor
       name: sensor
       mapping:
       mapping:
-        - dps_val: presence
-          value: false
         - dps_val: move
         - dps_val: move
           value: true
           value: true
-        - dps_val: none
-          value: false
+        - value: false
 secondary_entities:
 secondary_entities:
   - entity: number
   - entity: number
     name: Sensitivity
     name: Sensitivity
@@ -92,14 +89,18 @@ secondary_entities:
   - entity: binary_sensor
   - entity: binary_sensor
     class: occupancy
     class: occupancy
     dps:
     dps:
-      - id: 104
+      - id: 1
         type: string
         type: string
         name: sensor
         name: sensor
         mapping:
         mapping:
-          - dps_val: nobody
-            value: false
-          - dps_val: exist
+          - dps_val: presence
+            value: true
+          - dps_val: move
             value: true
             value: true
+          - value: false
+      - id: 104
+        type: string
+        name: manned
   - entity: number
   - entity: number
     name: Delay
     name: Delay
     category: config
     category: config