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

feat (staniot_smart_security_panel): remove SMS switch

For compatibility with XA-H502, which has a string event on dp 26 rather
than a boolean switch. This is not an important enough switch to fork
the config over, as it is a one time configuration option that is not
related to anything to do with HA.

Issue #3655
Jason Rumney 4 месяцев назад
Родитель
Сommit
6fc0199233

+ 3 - 8
custom_components/tuya_local/devices/staniot_smart_security_panel.yaml

@@ -6,6 +6,9 @@ products:
   - id: du5wifdsr8btglrl
     manufacturer: Staniot
     model: H700_TP V2.0 CB3S
+  - id: rgzon3q7jntx1brf
+    manufacturer: Staniot
+    model: XA-H502
 entities:
   - entity: alarm_control_panel
     dps:
@@ -163,14 +166,6 @@ entities:
             value: "signal level 4"
           - dps_val: "signal_level_5"
             value: "signal level 5"
-  - entity: switch
-    name: SMS alarm notification
-    category: config
-    icon: "mdi:message-processing"
-    dps:
-      - id: 26
-        type: boolean
-        name: switch
   - entity: switch
     name: Alarm notification
     category: config