Procházet zdrojové kódy

PlantsIO Ivy smart planter - add buttons

Wade Penner před 7 měsíci
rodič
revize
0d3a846ff4

+ 49 - 0
custom_components/tuya_local/devices/plantsio_ivy_smart_planter.yaml

@@ -141,6 +141,55 @@ entities:
           - dps_val: 2
           - dps_val: 2
             value: "Too Dry"
             value: "Too Dry"
           - value: "Unknown state"
           - value: "Unknown state"
+  # Button entities
+  - entity: event
+    name: Left touch
+    class: button
+    dps:
+      - id: 127
+        type: boolean
+        name: event
+        optional: true
+        mapping:
+          - dps_val: true
+            value: pressed
+          - value: null
+  - entity: event
+    name: Right touch
+    class: button
+    dps:
+      - id: 128
+        type: boolean
+        name: event
+        optional: true
+        mapping:
+          - dps_val: true
+            value: pressed
+          - value: null
+  - entity: event
+    name: Plant touch
+    class: button
+    dps:
+      - id: 129
+        type: boolean
+        name: event
+        optional: true
+        mapping:
+          - dps_val: true
+            value: pressed
+          - value: null
+  - entity: event
+    name: Hug
+    class: button
+    dps:
+      - id: 111
+        type: string
+        name: event
+        optional: true
+        mapping:
+          - dps_val: "hug"
+            value: pressed
+          - value: null
   # Diagnostic entities
   # Diagnostic entities
   - entity: sensor
   - entity: sensor
     class: battery
     class: battery