Explorar o código

fix(ble_water_valve): add manufacturer and disable switch when missing

Smart weather switch is not always available: disable it in that case
to avoid confusion.

Add manufacturer for SOP10 model.

From PR #3718
Jason Rumney hai 5 meses
pai
achega
b7fbbaa429
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      custom_components/tuya_local/devices/ble_water_valve.yaml

+ 10 - 0
custom_components/tuya_local/devices/ble_water_valve.yaml

@@ -7,6 +7,7 @@ products:
     manufacturer: Diivoo
     model: WT-03
   - id: nxquc5lb
+    manufacturer: Insoma
     model: SOP10
   - id: so5ybnw9
     manufacturer: Royal Gardineer
@@ -133,9 +134,18 @@ entities:
   - entity: switch
     name: Smart weather switch
     icon: "mdi:sun-wireless"
+    hidden: unavailable
     category: config
     dps:
       - id: 14
         type: boolean
         name: switch
         optional: true
+      - id: 14
+        type: boolean
+        optional: true
+        name: available
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true