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

MRC Magnum: make some dps optional

Discussion #1279
Jason Rumney 2 лет назад
Родитель
Сommit
7c34958747
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      custom_components/tuya_local/devices/mrc_magnum_floorheater.yaml

+ 5 - 0
custom_components/tuya_local/devices/mrc_magnum_floorheater.yaml

@@ -113,6 +113,7 @@ secondary_entities:
       - id: 102
         type: string
         name: option
+        optional: true
         mapping:
           - dps_val: "0" 
             value: "0.1"
@@ -120,6 +121,9 @@ secondary_entities:
             value: "0.5"
           - dps_val: "2"
             value: "1.0"
+          - dps_val: null
+            value: Not set
+            hidden: true
   - entity: number
     name: Setback adjustment
     category: config
@@ -128,6 +132,7 @@ secondary_entities:
       - id: 103
         type: integer
         name: value
+        optional: true
         range:
           min: 2
           max: 8