Browse Source

making DPID 10 and 20 optional

Robert Campo 1 year ago
parent
commit
9b00f756d0

+ 3 - 1
custom_components/tuya_local/devices/zemismart_roller_shade_zm25r2.yaml

@@ -100,6 +100,7 @@ secondary_entities:
       - id: 10
       - id: 10
         name: sensor
         name: sensor
         type: integer
         type: integer
+        optional: true
         unit: ms
         unit: ms
   - entity: select
   - entity: select
     name: Click Control
     name: Click Control
@@ -109,9 +110,10 @@ secondary_entities:
       - id: 20
       - id: 20
         name: option
         name: option
         type: string
         type: string
+        optional: true
         mapping:
         mapping:
           - dps_val: continuous
           - dps_val: continuous
-            value: continuous
+            value: Continuous
           - dps_val: Intermittently
           - dps_val: Intermittently
             value: Intermittently
             value: Intermittently
   - entity: button
   - entity: button