Просмотр исходного кода

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 лет назад
Родитель
Сommit
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"