Procházet zdrojové kódy

feat(duoqu_selfcleaning_litterbox): support compatible NEO-AE model

- weight, last usage, visit count need to be optional

This is probably more of a function of what condition the unit is in when added
(unused will not have data for these).

Issue #5238
Jason Rumney před 1 měsícem
rodič
revize
b39a08f542

+ 6 - 0
custom_components/tuya_local/devices/duoqu_selfcleaning_litterbox.yaml

@@ -3,6 +3,9 @@ products:
   - id: ah3vg6gvftgdl0sb
     manufacturer: Duoqu
     model: NEO-A
+  - id: bhbe15fwtdfoyjlx
+    manufacturer: Duoqu
+    model: NEO-AE
 entities:
   - entity: switch
     name: Reset
@@ -45,6 +48,7 @@ entities:
     dps:
       - id: 6
         type: integer
+        optional: true
         name: sensor
         unit: kg
         class: measurement
@@ -57,6 +61,7 @@ entities:
     dps:
       - id: 8
         type: integer
+        optional: true
         name: sensor
         unit: s
   - entity: button
@@ -72,6 +77,7 @@ entities:
     dps:
       - id: 7
         type: integer
+        optional: true
         name: sensor
         unit: times
   - entity: light