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

E Chief SGH01 planter: naming changes, file disambiguation

- from manual link, "Dongguan E Chief" seems to be the manufacturer (assume the brand is without the city name prepended)
- avoid overriding default entity name where it is unnecessary
- follow HA case convention for names
- consistent use of "timer" rather than "countdown"
- readonly number entity should be a sensor

PR #3006
Jason Rumney 11 месяцев назад
Родитель
Сommit
ff18b2e1b2
1 измененных файлов с 9 добавлено и 18 удалено
  1. 9 18
      custom_components/tuya_local/devices/echief_sgh01_planter.yaml

+ 9 - 18
custom_components/tuya_local/devices/grow_planted.yaml → custom_components/tuya_local/devices/echief_sgh01_planter.yaml

@@ -1,12 +1,11 @@
-name: Grow Planter
+name: Hydroponic grower
 products:
   - id: key8cpvp7wxgptce
+    manufacturer: Dongguan E Chief
     model: SGH01
-    name: Grow planter
 entities:
   - entity: switch
     icon: "mdi:sprout"
-    name: Power
     dps:
       - id: 101
         type: boolean
@@ -26,7 +25,6 @@ entities:
   #       type: integer
   #       name: switch
   - entity: light
-    name: Led Lights
     icon: "mdi:ceiling-light-multiple-outline"
     category: config
     dps:
@@ -34,37 +32,30 @@ entities:
         type: boolean
         name: switch
   - entity: number
-    name: Set Nutrient Countdown
+    name: Nutrient timer
     category: config
     class: duration
     translation_key: timer
-    mode: slider
     dps:
       - id: 106
-        unit: days
+        unit: d
         type: integer
         name: value
         range:
           min: 0
           max: 30
-  - entity: number
-    name: Nutrient Countdown
+  - entity: sensor
+    name: Nutrient time remaining
     category: config
     class: duration
-    translation_key: timer
-    # mode: slider
+    translation_key: time_remaining
     dps:
       - id: 107
         type: integer
-        name: value
-        readonly: true
-        range:
-          min: 0
-          max: 30
+        name: sensor
   - entity: select
-    translation_key: lightmode
     category: config
-    name: LED Mode
+    name: LED mode
     dps:
       - id: 105
         type: string