Not sure if this was mentioned already but do we know what type of events can be seen with the new G4 Pro Doorbell?
It has a fingerprint sensor and card reader (NFC I hope). I would love to be able to see these types of events in HA to automate my zigbee locks, etc.
Iām surprised it came out of EA without these features already enabled. I guess theyāll add it once the door lock comes out as well. Donāt have mine yet so this news, at the very least, makes me a little more patient since there is little improvement over the standard G4 (at least in its current state).
Would it possible to add a feature that allows the Integration to shutdown the UDMP or UNVR that protect is hosted on?
For some reasons the thumbnails generated always miss the person crossing my driveway. Thumbnail looks good in Unifi Protect but in Home Assistant I just get a thumbnail without the person visible. So something with the timing is wrong, how can I tweak this?
Is the thumbnail created when motion is detected, when motion has stopped or something else?
entity_id: sensor.g4_framsidan_detected_object
platform: state
from: none
Yes I think I am
service: camera.snapshot
data:
entity_id: camera.g4_altanen
filename: /media/cameras/G4-Altanen/{{ time_stamp }}.png
entity_id: camera.g4_altanen
Is there a better way of doing this because Iām a bit fed up wth getting notifications that is missing the person that triggered the snapshot
Hi all
im having a tough time figuring this out. according to the HA documentation:
Media Player - If your camera has a speaker, you will get a media player entity that allows you to play audio to your cameraās speaker. Any audio file URI that is playable by FFmpeg will be able to be played to your speaker, including via the TTS Say Service.
I can play with not problem using tts services but when I try to play any audio file (mp3, wav etcā¦checked they play with ffmpeg btw) I get a call service
error:
Failed to call service media_player play_media. Unknown error
anyone else encounter this?
here is the call service yaml im trying to launch
service: media_player.play_media
data:
media_content_type: music
media_content_id: /local/warning_multi_lang.mp3
target:
entity_id: media_player.2_front_door_speaker
best
Z
Stupid question but where do I change the login credentials for the Unifi account that is being used for this custom component?
You know this is no longer a Custom Component? It is now part of HA Core.
With the Core version, if your credentials no longer are accepted the Integration will prompt you to reconfigure it, and here you can enter Username/Password.
Hi folks. Iām being asked to reauth my account a few times a week.
When I get up in the morning, I see all my UNifi Protect entities are unknown, and when I head into Integrations, Iām prompted to re-enter the credentials I use for HA on my UDMP.
Itās a local access administrator account, with all cameras selected. Once Iāve re-entered my credential the integration is fine. Iāve tried a reboot of HA and the UDMP, but sadly no change. Iām not on early access, and the protect app is up to date - in fact, it updated last night.
Am I missing a trick, or shall I enable debug logs and raise a bug request?
Thanks ā¦
Iām seeing the exact same thing, for the first few says I was re-authenticating but by accident noticed an HA reboot cleated it, for a day or two.
Whatās weird is itās not authentication request I have, sometimes itās as many as 7 or 8 all showing at the same time.
It is always a good idea to enable the Debug, and see if anything shows up in the log. And if it does, raise an issue on Home Assistant.
With that said, I found that when HA looses contact to UniFi Protect it will prompt for credentials, so maybe check your Protect devices to see if anything shows up in the log there also.
Hmm, today mine popped up but the reauth isnāt working, nor is a reboot of HA. I even just tried to update my protect to 2.1.1 today to see if that would help. The local account works but itās not working with HA.
ok, hereās an update, my local admin account can access and authenticate, but my old custom one that I only give full access to protect wont authenticate. However I decided to make another account and it works, so I think my shared account for homebridge and homeassistant for some reason started fighting each other.
Not even 24 hours of updating to 2.1.1, Reauth popped up. Looking forward to a partial, workaround fix.
Now, knowing Ubiquiti, I wouldnāt be surprised they are up to their shenanigans and games.
Off topic, just thought most of you would get a chuckle having probably experienced similar things, this is the second time that Iām aware this has happened.
Birdman confirmed:
Hey,
Anyone had luck using the WebRTC with Ubiquiti Cameras (Unifi Protect)?
I still have some delay issues when casting to my Nest devices and the delay on my Dashboard is about 5-7 seconds. No issues with my network, so I thought I would give the integration a shot.
I can also read that it would be possible to do live streaming to my Nvidia Shields through this, which would be very nice.
Currently it seems that there have been some issues after the latest release, but Iām not sure that is my current issue, because when I try to add the address when setting it up, then I donāt know what address I should use. What do I need to enter from my Ubiquiti setup in order to get the cameras added?
Sorry if I should have asked in the WebRTC thread.
Thanks to @briis and everyone else who contributed to this project! Been using it since it was a custom component, and finally got a G4 doorbell (happened to see it in stock for a few hours earlier this week).
Has anyone figured out how to cast a lovelace view to a Google Cast device with the doorbell feed in the view?
Iām replacing a Nest doorbell, which had a nice feature of displaying the camera feed on my Google Hub along with some buttons for canned responses like āNo one is able to come to the door right nowā. I found that very useful when Iām in a meeting for work and the neighborhood kids come by ringing the doorbell multiple times looking for my kids Iād like to do that with the UniFi doorbell and HA.
I can get the camera feed to display on my Google Cast devices just fine with the play_media
service - something like this:
service: media_player.play_media
target:
entity_id: media_player.kitchen_display
data:
media_content_id: media-source://camera/camera.g4_doorbell_high
media_content_type: image/jpeg
metadata:
title: Doorbell High
thumbnail: /api/camera_proxy/camera.g4_doorbell_high
media_class: video
children_media_class: null
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://camera
but thatās just the camera feed, nothing else.
I made a lovelace dashboard called doorbell-response
that has the camera feed and some buttons/toggles/info that would be useful when the doorbell rings.
The camera card in that view is set up like this:
- type: picture-entity
show_state: true
show_name: true
camera_view: live
entity: sensor.g4_doorbell_last_motion_detected
image: https://demo.home-assistant.io/stub_config/bedroom.png
camera_image: camera.g4_doorbell_high
name: Last Motion
and the doorbell ring automation calls the cast.show_lovelace_view
service like this:
service: cast.show_lovelace_view
data:
entity_id: media_player.kitchen_display
dashboard_path: lovelace-main
view_path: front-doorbell-response
Locally via a web browser on a PC or the iOS app on my phone, the lovelace view displays just fine. However, when itās cast to a Google Hub, the camera feed doesnāt work - thereās just a stock placeholder image.
Iām guessing it has something to do with the cast service using the external HA URL due to Googleās HTTPS requirements and that perhaps the camera feed isnāt getting sent correctly? Iām using the Nabu Casa setup for HA cloud features, so my external URL is through that service.
Any ideas on how to get the dashboard with a camera feed to work on a Cast device?
Apologize if asked and answered, but there are too many response to filter through.
Is there a way to take a snapshot from a protect camera and display through the HA app on Android or iPhone when not connected to the local network?
How did you add your Unifi cameras through the integration? I donāt know what I should enter when setting up the WebRTC integration?
The most beautiful answer of all: It depends!
The username seems to be the same for all: ubnt
If you have a standalone camera its: ubnt/ubnt
If you have adopted the camera into a Video Server the password is located under the Protect app and then Settings and there should be a password setting (sorry dont own a uvds)
Same thing if you own a UDM (Pro)
If you have a UDR then itās under the Protect app ā Settings and look for the Recovery Code