Sfoglia il codice sorgente

Add configuration for Costco Evergreen Solar bird feeder camera (#4210)

* Add configuration for Costco Solar bird feeder camera

Added configuration for Solar smart bird feeder camera with various entities including control of the squirrel deterrence siren.

Based on pinelake_birdfeeder.yaml with minor additions for this slightly newer version.

dp_id 127 is event detected but doesn't seem to ever be anything but
motion, but could be human according to the api but its read-only it seems.

dp_id 233 is ipc debug returns some big long string of info but doesn't
display well in HA.

* Fix newline at end of evergreen_birdfeeder.yaml

- Initial fix for lint issue to see if it fixes the github UI spacing for easier review

* Refactor bird feeder configuration details

Updated product name and model for the bird feeder. Adjusted entity names and translation keys for better clarity.

* fix (evergreen_birdfeeder): do not override icons unnecessarily

Removed icons from the configuration for the indicator and flip_image entities.

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
Sean Hoyt 6 mesi fa
parent
commit
cafc999591

+ 232 - 0
custom_components/tuya_local/devices/evergreen_birdfeeder.yaml

@@ -0,0 +1,232 @@
+name: Bird feeder
+products:
+  - id: fxjotzm0dpphywnu
+    manufacturer: Evergreen
+    model: Solar Smart Bird Feeder Camera
+    model_id: ZCT2BF25510
+entities:
+  - entity: camera
+    dps:
+      - id: 150
+        name: record
+        type: boolean
+        optional: true
+        force: true
+      - id: 134
+        type: boolean
+        name: motion_enable
+        optional: true
+        force: true
+  - entity: switch
+    name: Siren
+    icon: "mdi:bullhorn"
+    dps:
+      - id: 159
+        type: boolean
+        name: switch
+  - entity: light
+    translation_key: indicator
+    category: config
+    dps:
+      - id: 101
+        type: boolean
+        name: switch
+        optional: true
+        force: true
+  - entity: sensor
+    class: battery
+    dps:
+      - id: 145
+        type: integer
+        name: sensor
+        unit: "%"
+  - entity: binary_sensor
+    class: plug
+    category: diagnostic
+    dps:
+      - id: 146
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: "0"
+            value: false
+          - dps_val: "1"
+            value: true
+  - entity: binary_sensor
+    category: diagnostic
+    class: running
+    dps:
+      - id: 149
+        type: boolean
+        name: sensor
+        optional: true
+        force: true
+  - entity: switch
+    translation_key: flip_image
+    category: config
+    dps:
+      - id: 103
+        type: boolean
+        name: switch
+        optional: true
+        force: true
+  - entity: switch
+    name: Watermark
+    category: config
+    icon: "mdi:watermark"
+    dps:
+      - id: 104
+        type: boolean
+        name: switch
+        optional: true
+        force: true
+  - entity: select
+    name: Night vision
+    translation_key: mode
+    category: config
+    icon: "mdi:theme-light-dark"
+    dps:
+      - id: 108
+        type: string
+        name: option
+        mapping:
+          - dps_val: "0"
+            value: "auto"
+          - dps_val: "1"
+            value: "off"
+          - dps_val: "2"
+            value: "on"
+        optional: true
+        force: true
+  - entity: select
+    name: Motion sensitivity
+    category: config
+    translation_key: mode
+    icon: "mdi:motion-sensor"
+    dps:
+      - id: 106
+        type: string
+        name: option
+        mapping:
+          - dps_val: "0"
+            value: "low"
+          - dps_val: "1"
+            value: "medium"
+          - dps_val: "2"
+            value: "high"
+        optional: true
+        force: true
+  - entity: switch
+    name: Motion detection timer
+    category: config
+    icon: "mdi:motion-sensor"
+    dps:
+      - id: 135
+        type: boolean
+        name: switch
+        optional: true
+        force: true
+  - entity: switch
+    name: Motion record
+    category: config
+    icon: "mdi:record-rec"
+    dps:
+      - id: 137
+        type: boolean
+        name: switch
+        optional: true
+        force: true
+  - entity: sensor
+    name: SD card status
+    class: enum
+    translation_key: status
+    category: diagnostic
+    icon: "mdi:micro-sd"
+    dps:
+      - id: 110
+        type: integer
+        name: sensor
+        mapping:
+          - dps_val: 1
+            value: normal
+          - dps_val: 2
+            value: fault
+          - dps_val: 3
+            value: full
+          - dps_val: 4
+            value: formatting
+          - dps_val: 5
+            value: missing
+          - dps_val: null
+            value: normal
+            hidden: true
+  - entity: select
+    translation_key: activation_mode
+    category: config
+    icon: "mdi:Bird"
+    dps:
+      - id: 231
+        type: string
+        name: option
+        mapping:
+          - dps_val: "0"
+            value: motion
+          - dps_val: "1"
+            value: smart
+          - dps_val: "2"
+            value: "off"
+        optional: true
+        force: true
+  - entity: switch
+    name: Squirrel deterrence
+    category: config
+    icon: "mdi:rodent"
+    dps:
+      - id: 232
+        type: boolean
+        name: switch
+        optional: true
+        force: true
+  - entity: select
+    name: Squirrel Eviction Noise
+    category: config
+    icon: "mdi:rodent"
+    dps:
+      - id: 234
+        type: string
+        name: option
+        mapping:
+          - dps_val: '{"code":"squirrelaway","id":3267873}'
+            value: "Dog Sound"
+          - dps_val: '{"code":"squirrelaway","id":3267874}'
+            value: "Siren Sound"
+          - dps_val: '{"code":"squirrelaway","id":3267875}'
+            value: "Eagle Sound"
+          - dps_val: '{"code":"squirrelaway","id":-1}'
+            value: "Random Sound"
+          - dps_val: '{"code":"squirrelaway","id":0}'
+            value: "Unknown"
+            hidden: true
+        optional: true
+        force: true
+  - entity: select
+    name: Recording duration setting
+    class: enum
+    translation_key: timer
+    category: config
+    icon: "mdi:micro-sd"
+    dps:
+      - id: 235
+        type: integer
+        name: option
+        mapping:
+          - dps_val: 0
+            value: 15s
+          - dps_val: 1
+            value: 20s
+          - dps_val: 2
+            value: 30s
+          - dps_val: 3
+            value: 45s
+          - dps_val: 4
+            value: 1m