Explorar o código

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 %!s(int64=2) %!d(string=hai) anos
pai
achega
efde0b5134

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

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