Przeglądaj źródła

Simple switch Timer V2: add Kruidvat product

- use new available dp to mark initial state select as unavailable on devices
  that do not report it.

Issue #2530
Jason Rumney 1 rok temu
rodzic
commit
81314bde0a

+ 8 - 1
custom_components/tuya_local/devices/simple_switch_timerv2.yaml

@@ -8,6 +8,8 @@ products:
     name: On Wall WiFi Switch
   - id: flcvzjtnkhsreazp
     name: GIRIER USB adaptor
+  - id: lbqau5negh2zizit
+    name: Kruidvat outdoor smartplug
 primary_entity:
   entity: switch
   dps:
@@ -44,5 +46,10 @@ secondary_entities:
             value: "off"
           - dps_val: memory
             value: memory
+      - id: 38
+        type: string
+        name: available
+        mapping:
           - dps_val: null
-            invalid: true
+            value: false
+          - value: true