浏览代码

Petlibro: split record into a separate switch.

The camera.record service expects to be pulling the video stream to save itself.
This camera stores locally on an SD card, so there is no need for all the
stream setup (which as far as I can tell probably involves cloud).

Issue #759
Jason Rumney 2 年之前
父节点
当前提交
efde0b5134
共有 1 个文件被更改,包括 8 次插入4 次删除
  1. 8 4
      custom_components/tuya_local/devices/petlibro_camera_feeder.yaml

+ 8 - 4
custom_components/tuya_local/devices/petlibro_camera_feeder.yaml

@@ -95,10 +95,6 @@ secondary_entities:
         type: base64
         name: snapshot
         optional: true
-      - id: 150
-        type: boolean
-        name: record
-        optional: true
   - entity: switch
     name: Motion detection
     icon: "mdi:motion-sensor"
@@ -144,6 +140,14 @@ secondary_entities:
             value: Low
           - dps_val: "1"
             value: High
+  - entity: switch
+    name: Record
+    icon: "mdi:record-rec"
+    dps:
+      - id: 150
+        type: boolean
+        name: switch
+        optional: true
   - entity: select
     name: Recording mode
     icon: "mdi:video"