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
72.17k stars 30.2k forks source link

Homekit | No Audio from camera when not on WiFi #116537

Closed teunaldo closed 1 month ago

teunaldo commented 5 months ago

The problem

When I use homekit on my phone (iPhone, iOS 16.7.7) I'm not able to hear sound from my camera's when I'm on 4G/5G. When I'm on WiFi (Home or at another location), I can hear the sound. Still it is a bit choppy, but I assume that that is about the codec.

What version of Home Assistant Core has the issue?

core-2024.4.4

What was the last working version of Home Assistant Core?

none

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-6187badb0d87385c9331497dab955399.json

Example YAML snippet

homekit:
  auto_start: true
  advertise_ip: 192.168.*.*
  zeroconf_default_interface: true
  filter:
    include_entities:
      - camera.voordeur
      - camera.straat
      - camera.zij_ingang
  entity_config:
    camera.zij_ingang:
      video_codec: copy
      audio_codec: libopus
      support_audio: True
      stream_source: -rtsp_transport tcp -re -i rtsp://username:password@192.168.*.*:554/Streaming/channels/301
    camera.straat:
      video_codec: copy
      audio_codec: libopus
      support_audio: True
      stream_source: -rtsp_transport tcp -re -i rtsp://username:password@192.168.*.*:554/Streaming/channels/201
    camera.voordeur:
      video_codec: copy
      audio_codec: libopus
      support_audio: True
      stream_source: -rtsp_transport tcp -re -i rtsp://username:password@192.168.*.*:554/Streaming/channels/101

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 5 months 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. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


homekit documentation homekit source (message by IssueLinks)

slyoldfox commented 4 months ago

Stumbled upon this after implementing Homekit for an unsupported doorbell with HAP-nodejs - same scenario, no audio with 4G but works fine with WIFI. I realise this is a completely different framework so interested if someone knows how to fix this. Some findings which might be interesting to know:

issue-triage-workflows[bot] commented 1 month 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.