Browse Source

Add support for PNI water feeder.

Issue #1470
Jason Rumney 2 years ago
parent
commit
51a42cf994
3 changed files with 37 additions and 1 deletions
  1. 1 1
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 35 0
      custom_components/tuya_local/devices/pni_water_feeeder.yaml

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -462,4 +462,4 @@ Further device support has been made with the assistance of users. Please consid
 - [wholly1971](https://github.com/wholly1971) for assisting with support for Madimack Eco pool heatpumps.
 - [wholly1971](https://github.com/wholly1971) for assisting with support for Madimack Eco pool heatpumps.
 - [rbrtwillis](https://github.com/rbrtwillis) for assisting with support for Inkbird IHC-200 humidity controllers.
 - [rbrtwillis](https://github.com/rbrtwillis) for assisting with support for Inkbird IHC-200 humidity controllers.
 - [vojeroen](https://github.com/vojeroen) for contributing support for CleanAir 605B humidifiers.
 - [vojeroen](https://github.com/vojeroen) for contributing support for CleanAir 605B humidifiers.
-- [fantnhu](https://github.com/fantnhu) for assisting with support for Tesla aroma diffusers.
+- [fantnhu](https://github.com/fantnhu) for assisting with support for Tesla aroma diffusers and PNI water feeders.

+ 1 - 0
DEVICES.md

@@ -554,6 +554,7 @@ port and password.
 - Nedis pet feeder
 - Nedis pet feeder
 - Petlibro PLAF103 pet feeder
 - Petlibro PLAF103 pet feeder
 - Petlibro PLAF203 pet feeder with camera
 - Petlibro PLAF203 pet feeder with camera
+- PNI water feeder
 - Rojeco PTM-001 pet feeder (two versions)
 - Rojeco PTM-001 pet feeder (two versions)
 - YP pet feeder
 - YP pet feeder
 
 

+ 35 - 0
custom_components/tuya_local/devices/pni_water_feeeder.yaml

@@ -0,0 +1,35 @@
+name: Water feeder
+products:
+  - id: ajkayo9kucq6vttv
+    name: PNI TA-WF-SMART(UV)
+primary_entity:
+  entity: switch
+  icon: "mdi:paw"
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+secondary_entities:
+  - entity: light
+    name: UV sterilisation
+    icon: "mdi:wall-sconce-flat"
+    category: config
+    dps:
+      - id: 10
+        type: boolean
+        name: switch
+  - entity: binary_sensor
+    name: Fault
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 13
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 13
+        type: bitfield
+        name: fault_code