Explorar el Código

add Faroro TD20 Pet Treat Camera support (#4216)

* add Faroro TD20 Pet Treat Camera support

* resolve my confusion about dps name field

* resolve pr comments

* feat (faroro_pettreat_camera): Naming and icon tweaks

- Pet Treat Camera seems like a marketing name, so moved to model, with TD20 bumped to model_id. Choose a more generic top level name that follows HA case convention.
- shortened some entity names
- added some icons

PR #4216

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
august huber hace 1 mes
padre
commit
ab6e4110c0
Se han modificado 2 ficheros con 78 adiciones y 0 borrados
  1. 1 0
      DEVICES.md
  2. 77 0
      custom_components/tuya_local/devices/faroro_pettreat_camera.yaml

+ 1 - 0
DEVICES.md

@@ -1013,6 +1013,7 @@ port and password.
 - Els Pet Spaceship pet litter box
 - Evergreen Solar bird feeder camera
 - Faroro PF50 pet feeder
+- Faroro TD20 pet treat camera
 - FeelNeedy P-LFP01 camera pet feeder
 - Fukumaru AF01-W pet feeder
 - Hapaw pet fountain

+ 77 - 0
custom_components/tuya_local/devices/faroro_pettreat_camera.yaml

@@ -0,0 +1,77 @@
+name: Camera pet feeder
+products:
+  - id: m6xa97cporn9eqzy
+    manufacturer: Faroro
+    model: Pet Treat Camera
+    model_id: TD20
+entities:
+  - entity: button
+    name: Feed
+    icon: "mdi:paw"
+    dps:
+      - id: 231
+        type: boolean
+        name: button
+        optional: true
+  - entity: switch
+    translation_key: flip_image
+    category: config
+    dps:
+      - id: 103
+        type: boolean
+        name: switch
+  - entity: select
+    name: Night vision
+    translation_key: light_mode
+    category: config
+    dps:
+      - id: 108
+        type: string
+        name: option
+        mapping:
+          - dps_val: 0
+            value: auto
+          - dps_val: 1
+            value: "on"
+          - dps_val: 2
+            value: "off"
+  - entity: switch
+    name: Motion sensing
+    icon: "mdi:motion-sensor"
+    category: config
+    dps:
+      - id: 134
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Limit motion area
+    icon: "mdi:picture-in-picture-bottom-right"
+    category: config
+    dps:
+      - id: 168
+        type: boolean
+        name: switch
+  - entity: text
+    name: Motion area
+    icon: "mdi:picture-in-picture-bottom-right"
+    category: config
+    hidden: true
+    dps:
+      - id: 169
+        type: string
+        name: value
+  - entity: sensor
+    translation_key: status
+    icon: "mdi:paw"
+    category: diagnostic
+    class: enum
+    dps:
+      - id: 236
+        name: sensor
+        type: integer
+        optional: true
+        mapping:
+          - dps_val: 0
+            value: fault
+          - dps_val: 1
+            value: feeding_complete