Browse Source

Add sensors to catit pixi water fountain (#3909)

* Add sensors to catit pixi water fountain

* Remove unwanted sensor

* Cahnge ipc_did to text instead of base64

* fix type on ipc_did

* update type and translations

---------

Co-authored-by: Fredrik <fredrik.martensson@ziklo.com>
Fredrik Mårtensson 3 months ago
parent
commit
700e0a7031
1 changed files with 44 additions and 0 deletions
  1. 44 0
      custom_components/tuya_local/devices/catit_pixi_smart_fountain.yaml

+ 44 - 0
custom_components/tuya_local/devices/catit_pixi_smart_fountain.yaml

@@ -90,3 +90,47 @@ entities:
         type: integer
         name: sensor
         unit: s
+
+  - entity: binary_sensor
+    name: Water low
+    translation_key: tank_empty
+    dps:
+      - id: 101
+        type: boolean
+        name: sensor
+
+  - entity: switch
+    name: Eco mode
+    category: config
+    dps:
+      - id: 102
+        type: integer
+        name: switch
+        mapping:
+          - dps_val: 1
+            value: false
+          - dps_val: 2
+            value: true
+
+  - entity: binary_sensor
+    translation_key: running
+    dps:
+      - id: 103
+        type: boolean
+        name: sensor
+
+  - entity: binary_sensor
+    translation_key: tank_empty
+    dps:
+      - id: 104
+        type: boolean
+        name: sensor
+  - entity: text
+    name: ipc_did
+    category: config
+    hidden: true
+    dps:
+      - id: 110
+        type: string
+        name: value
+        optional: true