소스 검색

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 년 전
부모
커밋
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:
   - id: eb26b0818666ecd284o4qe
     name: GauTone PG-103
+  - id: gyitctrjj1kefxp2
+    name: "PG103/PG105/PG106/PG107/PG109"
 primary_entity:
   entity: alarm_control_panel
   dps:
@@ -23,6 +25,7 @@ primary_entity:
     - id: 36
       type: string
       name: sub_class
+      optional: true
     - id: 101
       type: string
       name: power_state
@@ -35,7 +38,7 @@ secondary_entities:
       - id: 2
         type: integer
         name: value
-        unit: sec
+        unit: s
         range:
           min: 0
           max: 1000
@@ -47,7 +50,7 @@ secondary_entities:
       - id: 28
         type: integer
         name: value
-        unit: sec
+        unit: s
         range:
           min: 0
           max: 1000