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

V330L pet feeder: dp 206 masks shifted to 4th byte

Re-reading the doc string, the highest byte is the one with fault codes.

Issue #2947
Jason Rumney 1 год назад
Родитель
Сommit
9cd14321af
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      custom_components/tuya_local/devices/v330l_petfeeder.yaml

+ 3 - 3
custom_components/tuya_local/devices/v330l_petfeeder.yaml

@@ -127,7 +127,7 @@ entities:
         name: sensor
         optional: true
         mapping:
-          - dps_val: 1
+          - dps_val: 16777216
             value: true
           - value: false
       - id: 206
@@ -144,7 +144,7 @@ entities:
         name: sensor
         optional: true
         mapping:
-          - dps_val: 2
+          - dps_val: 33554432
             value: true
           - value: false
   - entity: binary_sensor
@@ -157,7 +157,7 @@ entities:
         name: sensor
         optional: true
         mapping:
-          - dps_val: 4
+          - dps_val: 67108864
             value: true
           - value: false
   - entity: switch