Add new event sensors from UniFi Protect 2.11 (#107773)
This commit is contained in:
parent
99e25d94c0
commit
b83f5b5932
2 changed files with 203 additions and 0 deletions
|
@ -221,6 +221,83 @@ CAMERA_SWITCHES: tuple[ProtectSwitchEntityDescription, ...] = (
|
|||
ufp_set_method="set_cmonx_detection",
|
||||
ufp_perm=PermRequired.WRITE,
|
||||
),
|
||||
ProtectSwitchEntityDescription(
|
||||
key="smart_siren",
|
||||
name="Detections: Siren",
|
||||
icon="mdi:alarm-bell",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
ufp_required_field="can_detect_siren",
|
||||
ufp_value="is_siren_detection_on",
|
||||
ufp_enabled="is_recording_enabled",
|
||||
ufp_set_method="set_siren_detection",
|
||||
ufp_perm=PermRequired.WRITE,
|
||||
),
|
||||
ProtectSwitchEntityDescription(
|
||||
key="smart_baby_cry",
|
||||
name="Detections: Baby Cry",
|
||||
icon="mdi:cradle",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
ufp_required_field="can_detect_baby_cry",
|
||||
ufp_value="is_baby_cry_detection_on",
|
||||
ufp_enabled="is_recording_enabled",
|
||||
ufp_set_method="set_baby_cry_detection",
|
||||
ufp_perm=PermRequired.WRITE,
|
||||
),
|
||||
ProtectSwitchEntityDescription(
|
||||
key="smart_speak",
|
||||
name="Detections: Speaking",
|
||||
icon="mdi:account-voice",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
ufp_required_field="can_detect_speaking",
|
||||
ufp_value="is_speaking_detection_on",
|
||||
ufp_enabled="is_recording_enabled",
|
||||
ufp_set_method="set_speaking_detection",
|
||||
ufp_perm=PermRequired.WRITE,
|
||||
),
|
||||
ProtectSwitchEntityDescription(
|
||||
key="smart_bark",
|
||||
name="Detections: Barking",
|
||||
icon="mdi:dog",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
ufp_required_field="can_detect_bark",
|
||||
ufp_value="is_bark_detection_on",
|
||||
ufp_enabled="is_recording_enabled",
|
||||
ufp_set_method="set_bark_detection",
|
||||
ufp_perm=PermRequired.WRITE,
|
||||
),
|
||||
ProtectSwitchEntityDescription(
|
||||
key="smart_car_alarm",
|
||||
name="Detections: Car Alarm",
|
||||
icon="mdi:car",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
ufp_required_field="can_detect_car_alarm",
|
||||
ufp_value="is_car_alarm_detection_on",
|
||||
ufp_enabled="is_recording_enabled",
|
||||
ufp_set_method="set_car_alarm_detection",
|
||||
ufp_perm=PermRequired.WRITE,
|
||||
),
|
||||
ProtectSwitchEntityDescription(
|
||||
key="smart_car_horn",
|
||||
name="Detections: Car Horn",
|
||||
icon="mdi:bugle",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
ufp_required_field="can_detect_car_horn",
|
||||
ufp_value="is_car_horn_detection_on",
|
||||
ufp_enabled="is_recording_enabled",
|
||||
ufp_set_method="set_car_horn_detection",
|
||||
ufp_perm=PermRequired.WRITE,
|
||||
),
|
||||
ProtectSwitchEntityDescription(
|
||||
key="smart_glass_break",
|
||||
name="Detections: Glass Break",
|
||||
icon="mdi:glass-fragile",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
ufp_required_field="can_detect_glass_break",
|
||||
ufp_value="is_glass_break_detection_on",
|
||||
ufp_enabled="is_recording_enabled",
|
||||
ufp_set_method="set_glass_break_detection",
|
||||
ufp_perm=PermRequired.WRITE,
|
||||
),
|
||||
)
|
||||
|
||||
PRIVACY_MODE_SWITCH = ProtectSwitchEntityDescription[Camera](
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue