Select is awkward in the UI, buttons are easier, and since the dp is optional (null when idle), makes more sense, as the "(stopped)" dummy value is needed if it is a select. Issue #2410
@@ -170,6 +170,7 @@ secondary_entities:
persist: false
- entity: select
name: PTZ control
+ deprecated: buttons
icon: "mdi:camera-control"
category: config
dps:
@@ -195,8 +196,110 @@ secondary_entities:
value: left
- dps_val: "7"
value: left-up
- - dps_val: null
- value: (stopped)
+ - entity: button
+ name: PTZ up
+ icon: "mdi:pan-up"
+ category: config
+ dps:
+ - id: 119
+ type: boolean
+ optional: true
+ name: button
+ mapping:
+ - dps_val: "0"
+ value: true
+ - value: false
+ name: PTZ right-up
+ icon: "mdi:top-right"
+ - dps_val: "1"
+ name: PTZ right
+ icon: "mdi:pan-right"
+ type: string
+ - dps_val: "2"
+ name: PTZ right-down
+ icon: "mdi:pan-bottom-right"
+ - dps_val: "3"
+ name: PTZ down
+ icon: "mdi:pan-down"
+ - dps_val: "4"
+ name: PTZ left-down
+ icon: "mdi:pan-bottom-left"
+ - dps_val: "5"
+ name: PTZ left
+ icon: "mdi:pan-left"
+ - dps_val: "6"
+ name: PTZ left-up
+ icon: "mdi:pan-top-left"
+ - dps_val: "7"
name: Recording mode
icon: "mdi:file-video"
@@ -176,6 +176,7 @@ secondary_entities:
@@ -201,8 +202,110 @@ secondary_entities: