Custom Component: Unifi Protect

Quick question to everyone.

I use Smart Detection for both Vehicle & Person and wondering if the Motion can be disabled? Or does the HA rely on Motion for Smart detection to work?

Thanks in advance.

I think this entity changes to what type of motion event is true:
sensor.front_door_detected_object
Itā€™d be nice if there were individual sensors for each supported detection type.
I made this with the help of others, I forget who, sorry:

binary_sensor:
  - platform: template
    sensors:
      front_door_person:
        friendly_name: Front Door Person Detected
        device_class: "motion"
        value_template: "{{ (is_state('sensor.front_door_detected_object', 'person')) }}"

Thanks for the update. Sounds as if any rule to alert based on Person/Object will need to be reworked on 2022.12.0.

Are you planning to update the Smart Detection Blueprint as well? Just curious as Iā€™m assuming this will break the existing one.

How ungrateful, I just realized all of the clips from UniFi Protect are available in in the Media section in HA. Thanks!
All the pieces for my desires are available.
Does anybody have a card that can browse media so I donā€™t have to navigate away from a security lovelace page for example?
Iā€™d love to have a card for a live camera view and a card to view the clips which are already available in HA.
Thanks if anybody has a card that can show the media browser.

Truly wish there was as well. I love the one Frigate uses and someone requested this feature recently in this thread. They were advised to create a WTH feature request but donā€™t remember if they ever did. I would certainly vote for a generic way to display media content in a card. :crossed_fingers: that some talented dev can make this happen.

3 Likes

I think it was me. Iā€™m basically asking the same question now realizing that thereā€™s even more data already in HA.

Is there a way to disable the Media component of the Protect Integration. Eg I donā€™t want the media to be browsable by anyone but admin.

I have an unusual issue in that my G4 Doorbell is showing all of the binary sensors as Open/Closed states:

The Show As in the entity properties are left as default:

image

My G4 Bullet doesnā€™t have this problem at all and shows these as On/Off:

image

Iā€™ve tried deleting the integration, rebooting and restarting, but the problem persists.

Does anyone have any ideas?

Man that sux.
I donā€™t really care about the access. I just want to remove the protect streams from media browser. Surely (donā€™t call me Sherly) must be some config some place that lets users turn off that kind of thing?

Ignore this. Iā€™m an idiot.

I had a customize_glob in my configuration.yaml setting the device_class of any binary_sensor.front_door* to door. Removing it has fixed the issues above.

My Unifi cameras all have a media_player speaker entity in HA, but unavailableā€¦ I didnā€™t think the cameras had speakers (apart from the doorbell?)

I have some G3 Flexs (no media_player), G3 Instants,G4 domes and a G4 Doorbell have media _player and work fine

I have G4 Pros and G4 Bullets (all of which have speaker ā€˜unavailableā€™) and the G4 Doorbell (which has the Speaker working), so different cameras from your G3 Flexs and G4 Domes - I wonder if that is why.

Just checked again and the G3 Flex have no media_player

Sounds about right to me. Only the doorbell actually has a speaker. For example. My G4 pro has CO and smoke unavailable. This is expected since it doesnā€™t have those features.

All my G4 Pros have CO/smoke detection:
image

Can i ask if this integration supports the smart sensors yet ?

Protect Sensor

I am thinking about getting these but only if my HA can see them

Can confirm that the protect sensor works with HA

Ohā€¦wow. When was this added?