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

Fix support Tapo C210 firmware v1.3.9 #733

Closed
mickaelmarin opened this issue Nov 7, 2023 · 15 comments
Closed

Fix support Tapo C210 firmware v1.3.9 #733

mickaelmarin opened this issue Nov 7, 2023 · 15 comments
Labels
enhancement New feature or request
Milestone

Comments

@mickaelmarin
Copy link

mickaelmarin commented Nov 7, 2023

Hi,

All is in the title, since firmware update of camera the authentication not work anymore.

I use this in the go2rtc.yaml file:

streams:
  camera.salon:
    - rtsp://<user>:<pass>@192.168.1.152/stream1
    - tapo://<cloud password md5 hash upercase>@192.168.1.152

thanks

@seydx
Copy link

seydx commented Nov 7, 2023

Factory reset camera / readd to tapo app, there is a bug in camera for some users where it does not properly load the new password hash.

See JurajNyiri/pytapo#80

@JurajNyiri
Copy link

While above is true, there might be more work needed on go2rtc, see JurajNyiri/pytapo#76 .

Also, use sha256 hash not md5 anymore.

@mickaelmarin
Copy link
Author

thanks @JurajNyiri, after replace md5 by sha256 it work

@AlexxIT AlexxIT added the enhancement New feature or request label Nov 11, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Nov 11, 2023

I need remote access to this camera to fix it.

@kksligh
Copy link

kksligh commented Nov 11, 2023

Confirming that I also used the sha256 hash instead of the md5 - stopped the errors and the camera works with sounds - however, the 2 way audio no longer works.

I have 2 of the same Tapo C211 cameras, with the exact same config, but one has Firmware: 1.3.9 Build 231019 (not working) and the other has Firmware: 1.3.7 Build 230823 (working)

I'm willing to help in any way you need.

@mickaelmarin
Copy link
Author

mickaelmarin commented Nov 11, 2023

I have tapo c210 with 1.3.9 firmware un two way audio work.
You need to add microphone in the media setting of webrtc-camera card.

media: video,audio,microphone

the conf of stream in go2rtc.yaml:

streams:
  camera.salon:
    - tapo://admin:<cloud password sha256 hash upercase>@192.168.1.152

@AlexxIT
Copy link
Owner

AlexxIT commented Nov 11, 2023

So this method worked for you?

streams:
  # cloud password without username
  camera1: tapo://[email protected]
  # admin username and UPPERCASE MD5 cloud-password hash
  camera2: tapo://admin:[email protected]
  # Tapo C210 with firmware 1.3.9+
  camera3: tapo://admin:[email protected]

PS. I still need to understand the difference of which password to use for the camera1 example

@mickaelmarin
Copy link
Author

mickaelmarin commented Nov 11, 2023

yes for me with tapo c210 1.3.9 firmware the method below work:

streams:
  camera.salon:
    - tapo://admin:<cloud password sha256 hash upercase>@192.168.1.152

I use homeassistant latest and the webrtc v3.5.0 HACS integretion.
With the custom webrtc-camera card I have no problem(2audio work perfect).
In the webrtc-card I used rtsp://admin:<my password defined in go2rtc.yaml>@<ip of my homeassistant rpi4>/camera.salon

The only limitation is I can't turnoff the microphone directly from homeassistant, I need to go in browser settings to forbiden the microphone for the site. Honestly it is a detail!!!!

@kksligh
Copy link

kksligh commented Nov 11, 2023

can you provide your card code? 2 way is not working for me and i have all these settings exactly.

@mickaelmarin
Copy link
Author

mickaelmarin commented Nov 11, 2023

This is the conf, for ptz I added cam as onvif integration and use that for ptz

  - type: custom:webrtc-camera
    ui: true
    url: rtsp://(go2rtc user):(go2rtc pass)@(rpi4 ip where go2rtc run)/camera.salon
    mode: webrtc
    mse: false
    media: video,audio,microphone
    ptz:
      service: onvif.ptz
      data_left:
        entity_id: camera.cam1_onvif_mainstream
        pan: LEFT
        distance: 0.15
      data_right:
        entity_id: camera.cam1_onvif_mainstream
        pan: RIGHT
        distance: 0.15
      data_up:
        entity_id: camera.cam1_onvif_mainstream
        tilt: UP
        distance: 0.15
      data_down:
        entity_id: camera.cam1_onvif_mainstream
        tilt: DOWN
        distance: 0.15

If you have a problem when you add camera as tapo intregration you should restart your camera. At the begening not work but after restart my cam and add cam to tapo integration with local user user pass and the cloud pass everything work. I think firmware of cam is little buggy.

@AlexxIT AlexxIT changed the title Tapo authentication not work anymore with tapo c210 and 1.3.9 firmware Fix support Tapo C210 firmware v1.3.9 Nov 12, 2023
@AlexxIT AlexxIT added this to the v1.8.3 milestone Nov 12, 2023
@kksligh
Copy link

kksligh commented Nov 12, 2023

OK - the audio comes through, but I dont see any way to cut the mic on or off - as soon as it loads, it starts. How are you working around that? Also, any idea how I can get this to work with Frigate Card?

@mickaelmarin
Copy link
Author

For now the only solution for me is using firefox/chrome/edge on android (not the HA app) and from there you can block the microphone or not.

@AlexxIT
Copy link
Owner

AlexxIT commented Nov 13, 2023

  1. url params in card should be stream name, example camera.salon
  2. Example how to make mic optional right in the webrtc integration docs

@kksligh
Copy link

kksligh commented Nov 13, 2023

what do you mean optional? Currently, it just starts with the mic open and there's no way to turn it off. Is there configuration to have the mic off upon the stream load and toggle on/off? I've tried this with the Frigate card mic button, and for some reason the two way audio doesnt work at all anymore.

@AlexxIT
Copy link
Owner

AlexxIT commented Nov 16, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants