Sfoglia il codice sorgente

Holman WX8: mirror bits in dp 120

Bits were defined as left to right in order as the bits are written,
rather than LSB to MSB that is more conventional.  Some evidence shows
that LSB to MSB is more correct, though there are still some irregularities.

Comments on PR #1566
Jason Rumney 2 anni fa
parent
commit
6783a94055

+ 7 - 7
custom_components/tuya_local/devices/holman_wx8_irrigation_controller.yaml

@@ -138,7 +138,7 @@ secondary_entities:
         name: sensor
         name: sensor
         type: bitfield
         type: bitfield
         mapping:
         mapping:
-          - dps_val: 128
+          - dps_val: 1
             value: true
             value: true
           - value: false
           - value: false
   - entity: binary_sensor
   - entity: binary_sensor
@@ -150,7 +150,7 @@ secondary_entities:
         name: sensor
         name: sensor
         type: bitfield
         type: bitfield
         mapping:
         mapping:
-          - dps_val: 64
+          - dps_val: 2
             value: true
             value: true
           - value: false
           - value: false
   - entity: binary_sensor
   - entity: binary_sensor
@@ -160,7 +160,7 @@ secondary_entities:
         name: sensor
         name: sensor
         type: bitfield
         type: bitfield
         mapping:
         mapping:
-          - dps_val: 32
+          - dps_val: 4
             value: true
             value: true
           - value: false
           - value: false
   - entity: binary_sensor
   - entity: binary_sensor
@@ -171,7 +171,7 @@ secondary_entities:
         name: sensor
         name: sensor
         type: bitfield
         type: bitfield
         mapping:
         mapping:
-          - dps_val: 16
+          - dps_val: 8
             value: true
             value: true
           - value: false
           - value: false
   - entity: binary_sensor
   - entity: binary_sensor
@@ -183,7 +183,7 @@ secondary_entities:
         name: sensor
         name: sensor
         type: bitfield
         type: bitfield
         mapping:
         mapping:
-          - dps_val: 4
+          - dps_val: 32
             value: true
             value: true
           - value: false
           - value: false
   - entity: binary_sensor
   - entity: binary_sensor
@@ -195,7 +195,7 @@ secondary_entities:
         name: sensor
         name: sensor
         type: bitfield
         type: bitfield
         mapping:
         mapping:
-          - dps_val: 2
+          - dps_val: 64
             value: true
             value: true
           - value: false
           - value: false
   - entity: binary_sensor
   - entity: binary_sensor
@@ -206,7 +206,7 @@ secondary_entities:
         name: sensor
         name: sensor
         type: bitfield
         type: bitfield
         mapping:
         mapping:
-          - dps_val: 1
+          - dps_val: 128
             value: true
             value: true
           - value: false
           - value: false
   - entity: sensor
   - entity: sensor