Răsfoiți Sursa

EM3378 weather station: fix some dp types and index

- temperature unit should be boolean, but one reference used string
- time mode should be boolean, but was incorrectly using string
- date switch is on dp 120, not 1

Issue #419
Jason Rumney 1 an în urmă
părinte
comite
7365123509

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

@@ -168,7 +168,7 @@ secondary_entities:
     category: config
     dps:
       - id: 112
-        type: string
+        type: boolean
         name: option
         mapping:
           - dps_val: false
@@ -196,7 +196,7 @@ secondary_entities:
     category: config
     dps:
       - id: 119
-        type: string
+        type: boolean
         name: option
         mapping:
           - dps_val: true
@@ -207,6 +207,6 @@ secondary_entities:
     name: Date
     category: config
     dps:
-      - id: 1
+      - id: 120
         type: boolean
         name: switch