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

Gautone alarm: Mark subclass optional for better compatibility

Same or related model reported in Issue #911

There are some more dps in the QuerySmartThingsModel result there, but not
present in the log, so format cannot be confirmed.
Jason Rumney 2 лет назад
Родитель
Сommit
ca6ceb6ccf
1 измененных файлов с 5 добавлено и 2 удалено
  1. 5 2
      custom_components/tuya_local/devices/gautone_pg103_alarm.yaml

+ 5 - 2
custom_components/tuya_local/devices/gautone_pg103_alarm.yaml

@@ -2,6 +2,8 @@ name: Alarm security system
 products:
 products:
   - id: eb26b0818666ecd284o4qe
   - id: eb26b0818666ecd284o4qe
     name: GauTone PG-103
     name: GauTone PG-103
+  - id: gyitctrjj1kefxp2
+    name: "PG103/PG105/PG106/PG107/PG109"
 primary_entity:
 primary_entity:
   entity: alarm_control_panel
   entity: alarm_control_panel
   dps:
   dps:
@@ -23,6 +25,7 @@ primary_entity:
     - id: 36
     - id: 36
       type: string
       type: string
       name: sub_class
       name: sub_class
+      optional: true
     - id: 101
     - id: 101
       type: string
       type: string
       name: power_state
       name: power_state
@@ -35,7 +38,7 @@ secondary_entities:
       - id: 2
       - id: 2
         type: integer
         type: integer
         name: value
         name: value
-        unit: sec
+        unit: s
         range:
         range:
           min: 0
           min: 0
           max: 1000
           max: 1000
@@ -47,7 +50,7 @@ secondary_entities:
       - id: 28
       - id: 28
         type: integer
         type: integer
         name: value
         name: value
-        unit: sec
+        unit: s
         range:
         range:
           min: 0
           min: 0
           max: 1000
           max: 1000