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

feat (smartplugv2_energyv3): add compatible Arlec PC191HA Series 4

- make all calibration dps optional
- make dp 38 optional, as the device is reported as not matching, though the
  submitted config does match with this

PR #4613
Jason Rumney 1 день назад
Родитель
Сommit
88e869d3f9
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      custom_components/tuya_local/devices/smartplugv2_energyv3.yaml

+ 7 - 0
custom_components/tuya_local/devices/smartplugv2_energyv3.yaml

@@ -16,6 +16,9 @@ products:
   - id: mkdejkrgvhsfwfrd
     manufacturer: Antela
     model: F1s302-UK
+  - id: 74xo1nolwa6xkjeu
+    manufacturer: Arlec
+    model: PC191HA Series 4
 entities:
   - entity: switch
     class: outlet
@@ -78,6 +81,7 @@ entities:
         unit: mA
       - id: 23
         type: integer
+        optional: true
         name: calibration
   - entity: sensor
     category: diagnostic
@@ -101,6 +105,7 @@ entities:
         name: switch
       - id: 24
         type: integer
+        optional: true
         name: calibration
   - entity: sensor
     category: diagnostic
@@ -117,6 +122,7 @@ entities:
           - scale: 10
       - id: 22
         type: integer
+        optional: true
         name: calibration
   - entity: binary_sensor
     class: problem
@@ -138,6 +144,7 @@ entities:
     dps:
       - id: 38
         type: string
+        optional: true
         name: option
         mapping:
           - dps_val: "on"