Open derekcentrico opened 15 hours ago
Showing you the part of the config which need to get right,
you need admin: and your tapo account password sha256 hashed in upper case (the password you use to login to tapo services)
your ffmpeg line is wrong too
go2rtc:
streams:
Kitchen:
- tapo://admin:XXXB3B88C3CA41847092362896109AC1EA681A2E82ED40BFD25C8E25EEFDFXXX@192.168.0.240
- ffmpeg:Kitchen#audio=aac#audio=opus
Showing you the part of the config which need to get right,
you need admin: and your tapo account password sha256 hashed in upper case
your ffmpeg line is wrong too
go2rtc: streams: Kitchen: - tapo://admin:XXXB3B88C3CA41847092362896109AC1EA681A2E82ED40BFD25C8E25EEFDFXXX@192.168.0.240 - ffmpeg:Kitchen#audio=aac#audio=opus
Thanks, I'll tweak that. How do you have the URL for the actual cameras?
You mean the ip address?
@derekcentrico For this setup I use only go2rtc and Custom: WebRTC Camera card in HA
go2rtc config
cam4:
- tapo://admin:AAAAA......................BBBBB@192.168.200.133
Custom: WebRTC Camera
type: custom:webrtc-camera
streams:
- url: cam4
mode: webrtc
media: video,audio,microphone
You mean the ip address?
@mofman Like the camera section in Frigate config.
cameras:
kitchen:
....
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://tapocam:pass@192.168.1.246:554/stream2
roles:
- detect
input_args: preset-rtsp-restream-low-latency
- path: rtsp://127.0.0.1:8554/kitchen
input_args: preset-rtsp-restream
go2rtc:
streams:
Kitchen:
- tapo://admin:XXXB3B88C3CA41847092362896109AC1EA681A2E82ED40BFD25C8E25EEFDFXXX@192.168.0.240
- ffmpeg:Kitchen#audio=aac#audio=opus
cameras:
Kitchen:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Kitchen
roles:
- detect
output_args:
record: preset-record-generic-audio-aac
detect:
enabled: true
objects:
track:
- person
- cat
- dog
motion:
mask: 0,0.046,0.359,0.047,0.358,0,0,0.002
Assuming its running on the location and the dafault port, use rtsp://127.0.0.1:8554/Kitchen - keep the name the same.
@mofman and @rici44 thank you both.
I revised my cameras. Oddly, I get this error when using the go2rtc URL for the camera:
rtsp://127.0.0.1:8554/kitchen: Invalid data found when processing input
Cloud password is the password that goes to the Tapo app, correct? I tried that one and the tapocam:password from the RTSP setup just for kicks. No go.
2024-11-15 17:56:35.141980187 [2024-11-15 17:56:35] frigate.video ERROR : portable: Unable to read frames from ffmpeg process.
2024-11-15 17:56:35.142058459 [2024-11-15 17:56:35] frigate.video ERROR : portable: ffmpeg process is not running. exiting capture thread...
2024-11-15 17:56:35.157629698 17:56:35.157 WRN [rtsp] error="streams: 401 Unauthorized, exec: rtsp://127.0.0.1:8554/kitchen?audio: Invalid data found when processsing input\n" stream=kitchen
2024-11-15 17:56:35.243087508 [2024-11-15 17:56:35] audio.kitchen ERROR : ffmpeg process is not running, restarting...
I have firmware 1.1.3 flashed to it, using the very last release of 1.1.3 available as a bin.
Did y'all have an issue with a password or anything?
LOL now I get "2024-11-15 18:31:15.077453990 18:31:15.077 WRN [rtsp] error="streams: Expected StatusCode to be 401, received 200, exec: rtsp://127.0.0.1:8554/kitchen?video&audio: Invalid data found when processing input\n" stream=portable" using "Tapo_C120v1_en_1.1.3_Build_230930_Rel.56236n_up_boot-signed_1697192563556.bin" instead of "Tapo_C120v1_en_1.1.3_Build_230930_Rel.56236n_up_boot-signed_1697194362284.bin"
Did you block the domains I suggested?
Did you block the domains I suggested?
Yeah I blocked them via pihole.
My firewalla shows only one domain it's hitting, 5 times. aps1-relay-dcipc-beta.i.tplinknbu.com
Are you familiar with python?
If so
Can you try this code, install pytapo via pip then create the script below replacing with your values and let me know what your response is when you run it
pip3 install pytapo
from pytapo import Tapo
user = "admin" # leave this variable as 'admin'
password = "XXXXXXXXX" # password for your **tapo account** in plain text (not hashed)
host = "192.168.0.1" # ip of the camera, example: 192.168.1.52
tapo = Tapo(host, user, password)
print(tapo.getBasicInfo())
I have Tapo and Dahua cameras. I set them up with Frigate based upon their documentation. However, two-way communication doesn't work at all. Dahua shows the mic icon but doesn't transmit. Tapo doesn't even show the mic icon. I am using HTTPS. They referred me here and I've been tinkering ever since.
@mofman and @rici44 would you be kind enough to provide Frigate go2rtc and camera configs, and maybe any card configuration data from HA?
Anyone else with thoughts I'd be grateful.
This is what I got going currently:
Frigate
Home Assistant Card: