Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant send audio to one camera, other exact same model camera works #794

Open
borgqueenx opened this issue Jan 17, 2025 · 9 comments
Open
Labels
question Further information is requested

Comments

@borgqueenx
Copy link

borgqueenx commented Jan 17, 2025

Triple checked naming in go2rtc config and in configuration.yaml. in the go2rtc dashboard i see the camera name i have pasted in the configuration.yaml but when i try to send a audio file i get a unknown error.
I have 3 same model cameras (tapo c125) that are working fine. This exact same camera is not working. Already restarted haos and the camera itself without luck. Firmware of the cameras are also the same (latest)

Logs:

Logboek Details (FOUT)

Logger: homeassistant.components.websocket_api.http.connection
Bron: custom_components/webrtc/media_player.py:74
integratie: Home Assistant WebSocket API (documentatie, problemen)
Eerst voorgekomen: 22:21:41 (6 gebeurtenissen)
Laatst gelogd: 22:53:37

[139920999339280] Error handling message: Unknown error (unknown_error) borgqueenx from 172.30.32.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36)[139921570209008] Error handling message: Unknown error (unknown_error) borgqueenx from 192.168.1.216 (Mozilla/5.0 (Linux; Android 14; SM-G998B Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/131.0.6778.260 Mobile Safari/537.36 Home Assistant/2025.1.2-14946 (Android 14; SM-G998B))Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response await func(hass, connection, msg) File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 816, in handle_execute_script script_result = await script_obj.async_run( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ msg.get("variables"), context=context ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1801, in async_run return await asyncio.shield(create_eager_task(run.async_run())) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 464, in async_run await self._async_step(log_exceptions=False) File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 528, in _async_step self._handle_exception( ~~~~~~~~~~~~~~~~~~~~~~^ ex, continue_on_error, self._log_exceptions or log_exceptions ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 558, in _handle_exception raise exception File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step await getattr(self, handler)() File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 764, in _async_call_service_step response_data = await self._async_run_long_action( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<9 lines>... ) ^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 727, in _async_run_long_action return await long_task ^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2795, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2838, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1006, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ hass, entity, func, data, call.context ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1078, in _handle_entity_call result = await task ^^^^^^^^^^ File "/config/custom_components/webrtc/media_player.py", line 74, in async_play_media assert r.ok ^^^^ AssertionError


See the configuration in the following two images.

Image
Image

@AlexxIT AlexxIT added the question Further information is requested label Jan 18, 2025
@AlexxIT
Copy link
Owner

AlexxIT commented Jan 18, 2025

Are you sure two way audio works for this go2rtc source?

@borgqueenx
Copy link
Author

Are you sure two way audio works for this go2rtc source?

Yes, i can send a audio file to the other cameras that are added the same way. They play it instantlym exactly the same cameras.

@AlexxIT
Copy link
Owner

AlexxIT commented Jan 18, 2025

But what about this camera. I'm asking not about sending audio. I'm asking about two way.

@borgqueenx
Copy link
Author

But what about this camera. I'm asking not about sending audio. I'm asking about two way.

I did not test it specifically. I did test it a longer time ago and worked on this model.

@AlexxIT
Copy link
Owner

AlexxIT commented Jan 18, 2025

Better to repeat test.

@borgqueenx
Copy link
Author

borgqueenx commented Jan 19, 2025

two-way audio is also not working. Probably because the camera cant receive sound either?

go2rtc configuration seems fine:

go2rtc:
  streams:
    living-room:
      - rtsp://tapocams:xxxx@192.168.1.182/stream1
      - tapo://xxxx@192.168.1.182
      - ffmpeg:living-room#audio=aac
    backyard-tree:
      - rtsp://admin:xxxx@192.168.1.129:554/Streaming/Channels/101#backchannel=0
      - rtsp://admin:xxxx@192.168.1.129:554/Streaming/Channels/102#backchannel=0
      - isapi://admin:xxxx@192.168.1.129:80/
      - ffmpeg:backyard-tree#audio=aac
    basement-hallway-cam:
      - rtsp://tapocams:xxxxx@192.168.1.145/stream1
      - tapo://xxxx@192.168.1.145
      - ffmpeg:basement-hallway-cam#audio=aac`

The first and third camera in this list is a tapo camera.
The first camera receives audio fine, and as i said, is exactly the same camera model.

@AlexxIT
Copy link
Owner

AlexxIT commented Jan 20, 2025

Check if they have same firmware and same sharing settings. The latest Tapo firmware must be configured accordingly for access.

@borgqueenx
Copy link
Author

They all use the same latest firmwares now and this morning i cant send any sound anymore to any of these cameras.... i have 5 of them.
What do you mean with latest firmware must be configured accordingly? I still only see the tapo account setting with username/password.

@AlexxIT
Copy link
Owner

AlexxIT commented Jan 21, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants