Browse Source

Safe CON09 barrier: fixes and rework

- convert entity naming from Polish to English, using translations where possible
- use "Open visualisation" as open sensor, rather than reusing the command switch.
- whitespace fixes

PR #3295
Jason Rumney 9 months ago
parent
commit
ae33c42f6a
1 changed files with 8 additions and 14 deletions
  1. 8 14
      custom_components/tuya_local/devices/safe_conn09_barrier.yaml

+ 8 - 14
custom_components/tuya_local/devices/safe_conn09_barrier.yaml

@@ -1,6 +1,7 @@
-name: Safe barrier controller
+name: Barrier controller
 products:
   - id: 07kifxaohklzpj0h
+    manufacturer: Safe
     model: CON09-01
 entities:
   - entity: cover
@@ -14,39 +15,32 @@ entities:
             value: "open"
           - dps_val: false
             value: "close"
-      - id: 1
+      - id: 103
         name: open
         type: boolean
   - entity: switch
-    name: Sygnalizacja dźwiękowa
+    translation_key: keytone
     category: config
     dps:
       - id: 101
         type: boolean
         name: switch
   - entity: switch
-    name: Tryb On/Off dla przekaźnika
+    name: Relay
     category: config
     dps:
       - id: 102
         type: boolean
         name: switch
-  - entity: switch
-    name: Wizualizacja stanu otwarcia
-    category: config
-    dps:
-      - id: 103
-        type: boolean
-        name: switch
   - entity: number
-    name: Czas pracy przekaźnika
+    name: Relay engage time
+    class: duration
     category: config
     dps:
       - id: 104
         type: integer
         name: value
         unit: s
-        mode: slider
         range:
           min: 1
-          max : 15
+          max: 15