home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.78k stars 30.88k forks source link

Nest battery camera not streaming in HomeKit #101003

Open ansman opened 1 year ago

ansman commented 1 year ago

The problem

I have a Nest Camera (Battery) which is added through the SDM integration. It works fine in the Home Assistant app/web but when attempting to view the stream via the HomeKit integration it times out.

What version of Home Assistant Core has the issue?

2023.9.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

HomeKit Bridge

Link to integration documentation on our website

https://www.home-assistant.io/integrations/homekit

Diagnostics information

config_entry-homekit-ab074b0bb1da3a1ad92c389e0ee4b622.json.txt

Example YAML snippet

# This is the device configuration
access_token: ...
model_name: Camera
brand: Google Nest
frontend_stream_type: web_rtc
entity_picture: >-
  /api/camera_proxy/camera.baby_bedroom_camera?token=<redacted>
friendly_name: Baby Bedroom camera
supported_features: 2

Anything in the logs that might be useful for us?

2023-09-27 09:26:50.221 DEBUG (MainThread) [homeassistant.components.homekit.type_cameras] [2704b20e-f75a-4a6b-9d1a-e844237dd0f5] Starting stream with the following parameters: {'v_profile_id': b'\x02', 'v_level': b'\x02', 'width': 1280, 'height': 720, 'fps': 30, 'v_ssrc': 12072789, 'v_payload_type': b'c', 'v_max_bitrate': 299, 'v_rtcp_interval': 0.5, 'v_max_mtu': b'b\x05', 'a_codec': b'\x03', 'a_comfort_noise': b'\x00', 'a_channel': 1, 'a_bitrate': False, 'a_sample_rate': 16, 'a_packet_time': 20, 'a_ssrc': 6087408, 'a_payload_type': b'n', 'a_max_bitrate': 24, 'a_rtcp_interval': 5.0, 'a_comfort_payload_type': b'\r', 'id': UUID('2704b20e-f75a-4a6b-9d1a-e844237dd0f5'), 'stream_idx': 0, 'address': '10.0.0.164', 'v_port': 56680, 'v_srtp_key': 'mcX9m+drglhHOseAbedcRcLYqpMgv+UcfuY5zNAU', 'a_port': 63976, 'a_srtp_key': 'RIy24gFPb8Szjy8HkOjOvfK529aM6viRL7OcD+kT'}
2023-09-27 09:26:50.221 ERROR (MainThread) [homeassistant.components.homekit.type_cameras] Camera has no stream source
2023-09-27 09:26:50.223 ERROR (MainThread) [pyhap.camera] [2704b20e-f75a-4a6b-9d1a-e844237dd0f5] Failed to start/reconfigure stream, deleting session.

Additional information

This is possibly related to #87228 as the messages seem similar.

I have a Nest Doorbell too which works just fine, but that on the other hand is constantly streaming.

Also, it's perhaps worth noting that the nest camera is always listed as state=streaming in the UI.

home-assistant[bot] commented 1 year ago

Hey there @bdraco, mind taking a look at this issue as it has been labeled with an integration (homekit) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `homekit` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign homekit` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


homekit documentation homekit source (message by IssueLinks)

allistermaguire commented 1 year ago

I have this issue as well, but I think it is due to webrtc streams not being supported by Homekit, or the webrtc functionality in Hass not being supported yet by the homekit integration. I'm not 100% sure.

Not sure which Doorbell camera you have, but if it is the Hello then that uses rstp streams. I have the Hello, and IQ's and they all work ok.

svencharleer commented 1 year ago

Never seen it work with homekit. Hope someday :D

anonrig commented 11 months ago

Nest wired camera doesn't work with HomeKit as well.

issue-triage-workflows[bot] commented 8 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

ansman commented 8 months ago

This is still an issue

anonrig commented 8 months ago

this is still an issue

zerenxyz commented 6 months ago

Also running into this issue on a Nest wired

lrpineda commented 5 months ago

Still an issue for me on 2nd Gen Doorbell battery (but wired)

whyshouldi21 commented 4 months ago

Still an issue for me on 2nd Gen Doorbell Wired

m7salam commented 2 months ago

still an issue for me as well in wired nest camera indoor

excarpi commented 1 month ago

Still an issue with wire Nest Doorbell 2nd gen