Tapo Hub H200 with D230 Doorbell
According to the pull request https://github.com/AlexxIT/go2rtc/pull/1029, H200 sub devices should now be supported. However, I have been unable to configure this correctly.
H200 Firmware: 1.2.21 Build 20230731 rel.51223 D230 Firmware: 1.1.15 Build 20240417 rel.61958 go2rtc Version: 1.9.3
My configuration looks like this:
hub:
- tapo://admin:[email protected]/?deviceId=idOfDevice
(Note: I have entered the correct password and device ID in my configuration.)
Below is the HTTP trace from go2rtc to the hub (the hashes are slightly redacted):
POST /stream?deviceId=idOfDevice HTTP/1.1
Host: 10.0.30.215:8800
User-Agent: Go-http-client/1.1
Content-Length: 0
Content-Type: multipart/mixed; boundary=--client-stream-boundary--
HTTP/1.1 401 Unauthorized
Content-Length: 14
Cache-Control: no-cache
Connection: close
WWW-Authenticate: Digest realm="TP-Link IP-Camera",qop="auth",nonce="XXX65511401ff8747a712ce1f3b3cXXX",opaque="XXX047137638bef3555d5c7c6d9fdXXX",algorithm="MD5"
Set-Cookie: TP_HTTP_COOKIE=XXX65511401ff8747a712ce1f3b3cXXX; path=/
HTTP ERROR 401
POST /stream?deviceId=idOfDevice HTTP/1.1
Host: 10.0.30.215:8800
User-Agent: Go-http-client/1.1
Content-Length: 0
Authorization: Digest username="admin", realm="TP-Link IP-Camera", nonce="XXX65511401ff8747a712ce1f3b3cXXX", uri="/stream?deviceId=idOfDevice", qop=auth, nc=00000001, cnonce="XXXaVLv6YDgygdlhBiiGGs6ypw23wXXX", response="XXX0f5bb80a4330fff81ceb1923c5XXX", opaque="XXX047137638bef3555d5c7c6d9fdXXX", algorithm=MD5
Content-Type: multipart/mixed; boundary=--client-stream-boundary--
HTTP/1.1 401 Unauthorized
Content-Length: 14
Cache-Control: no-cache
Connection: close
WWW-Authenticate: Digest realm="TP-Link IP-Camera",qop="auth",nonce="XXX65511401ff8747a712ce1f3b3cXXX",opaque="XXX047137638bef3555d5c7c6d9fdXXX",algorithm="MD5"
Set-Cookie: TP_HTTP_COOKIE=XXX65511401ff8747a712ce1f3b3cXXX; path=/
HTTP ERROR 401
Did I miss something? Thanks!
Latest Tapo firmware have changed auth method. You can check other issues. And issues of Home Assistant Tapo integration.
My personal cameras still fine.
I have seen that. That's why I downgraded my hub to 1.2.21, which seems to support the old authentication method, since Home Assistant is able to connect and change settings. But the HA Tapo integration does not support video stream from sub devices.
All my other Tapo Cameras are also working fine with the "tapo://" protocol.
You can ask author of this changes. I don't have Tapo hubs.
@aprilmaccydee which firmware version is your hub running?
My hub and camera are on the latest firmware, as far as I can tell, the hub and camera are not affected by the cloud password change that impacts other cameras. (although this could be the result of A/B) I didn't have time to change the authors' changes to my pull request, but the modified version of my pull request doesn't work.
This is the fix needed, at least on my end:
I'm not a Go developer, so I'm not sure why it's necessary.
I have never seen this practice in golang. Usually closing the body is enough.
@cavefire do you have two way audio with your D230?