Browse Source

Camnsmart E27 camera: fix PTZ buttons

Mappings required to have a mapping to true for button action.
Jason Rumney 1 year ago
parent
commit
86e7db6fb5
1 changed files with 8 additions and 0 deletions
  1. 8 0
      custom_components/tuya_local/devices/camnsmart_e27_camera.yaml

+ 8 - 0
custom_components/tuya_local/devices/camnsmart_e27_camera.yaml

@@ -44,6 +44,7 @@ secondary_entities:
         optional: true
         mapping:
           - dps_val: "0"
+            value: true
   - entity: button
     name: PTZ right-up
     icon: "mdi:top-right"
@@ -55,6 +56,7 @@ secondary_entities:
         optional: true
         mapping:
           - dps_val: "1"
+            value: true
   - entity: button
     name: PTZ right
     icon: "mdi:pan-right"
@@ -66,6 +68,7 @@ secondary_entities:
         optional: true
         mapping:
           - dps_val: "2"
+            value: true
   - entity: button
     name: PTZ right-down
     icon: "mdi:pan-bottom-right"
@@ -77,6 +80,7 @@ secondary_entities:
         optional: true
         mapping:
           - dps_val: "3"
+            value: true
   - entity: button
     name: PTZ down
     icon: "mdi:pan-down"
@@ -88,6 +92,7 @@ secondary_entities:
         optional: true
         mapping:
           - dps_val: "4"
+            value: true
   - entity: button
     name: PTZ left-down
     icon: "mdi:pan-bottom-left"
@@ -99,6 +104,7 @@ secondary_entities:
         optional: true
         mapping:
           - dps_val: "5"
+            value: true
   - entity: button
     name: PTZ left
     icon: "mdi:pan-left"
@@ -110,6 +116,7 @@ secondary_entities:
         optional: true
         mapping:
           - dps_val: "6"
+            value: true
   - entity: button
     name: PTZ left-up
     icon: "mdi:pan-top-left"
@@ -121,6 +128,7 @@ secondary_entities:
         optional: true
         mapping:
           - dps_val: "7"
+            value: true
   - entity: switch
     name: Auto siren
     icon: "mdi:bullhorn"