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

Update benexmart_blind_motor.yaml

Thanks for the feedback. I have made some adjustments and also now added a working switch for motor reverse.
Chris Jones 3 лет назад
Родитель
Сommit
d8ad3dafa6
1 измененных файлов с 11 добавлено и 4 удалено
  1. 11 4
      custom_components/tuya_local/devices/benexmart_blind_motor.yaml

+ 11 - 4
custom_components/tuya_local/devices/benexmart_blind_motor.yaml

@@ -19,8 +19,15 @@ primary_entity:
       range:
       range:
         min: 0
         min: 0
         max: 100
         max: 100
-      mapping:
-        - invert: true
     - id: 5
     - id: 5
-      name: motor_reverse
-      type: boolean
+      type: boolean
+      name: reversed
+secondary_entities:
+    - entity: switch
+      category: config
+      name: Reversed
+      icon: "mdi:arrow-u-down-left"
+      dps:
+        - id: 5
+          type: boolean
+          name: switch