Przeglądaj źródła

feat(manta_windymt0200b_weatherstation): rename according to convention

- backward compatibility provided by legacy_type
- add product details from issue #6039
Jason Rumney 1 miesiąc temu
rodzic
commit
9b5121137d

+ 8 - 5
custom_components/tuya_local/devices/manta_windy_MT0200B.yaml → custom_components/tuya_local/devices/manta_windymt0200b_weatherstation.yaml

@@ -1,9 +1,10 @@
 name: Weather station
-# products:
-#   - id: UNKNOWN
-#     manufacturer: Manta
-#     model: Windy Smart
-#     model_id: MT0200B
+legacy_type: manta_windy_MT0200B
+products:
+  - id: sp2w5cif8susdefp
+    manufacturer: Manta
+    model: Windy
+    model_id: MT0200B
 entities:
   - entity: sensor
     name: Internal temperature
@@ -77,6 +78,7 @@ entities:
     dps:
       - id: 107
         type: integer
+        optional: true
         name: sensor
         class: measurement
         mapping:
@@ -88,6 +90,7 @@ entities:
     dps:
       - id: 108
         type: integer
+        optional: true
         name: sensor
         unit: "%"
         class: measurement