Use pan/tilt function for TP-Link Tapo C200 from Home assistant?

@Dpavey Thank you for all the information!

I was trying to do this with Fiddler and Frida following more or less this article for Frida part Technique 3 – Frida Hook: https://blog.netspi.com/four-ways-bypass-android-ssl-verification-certificate-pinning/

I was still unsuccessful and traffic was still encoded. I am not sure what the error message was as it was around half a year ago. I was doing this on Tapo: Cameras app.

I might give it another go and try again with the current app version.

When/If you decide to write a guide please let me know!

1 Like

Does the Tapo C310 work with HA and MotionEye, like the C200? Thanks.

Hi, is it possible this, on Camera Tapo c200? Or any other kind of record or snapshot by home assistant.

- action: call-service
          - service: camera.snapshot
          - service_data:
              - entity_id: camera.camera_hd
              - filename: >-
                  /config/tmp/kitchen_{{ now ().year }}_{{ now ().month
                  }}_{{now().day }}_{{ now ().hour }}_{{ now ().minute }}.jpg

Yep:

Make sure you have the path ok. (You have tmp in config and it’s accessible?)

- alias: Cam snapshot
  trigger: <whatever you want>
  action:
    - service: camera.snapshot
      entity_id: camera.camera_hd
      data:
        filename: '/config/tmp/kitchen_{{now().year}}_{{now().month}}_{{now().day}}_{{now().hour}}_{{now().minute}}.jpg'

Martin/

Thank, it is now correct. A have other one question yet. Do you have any idea, how can I connect HA to net shared foldet? I would like save camera.record video to net storage. Thanks

This is possible but is dependent on your environment.

You should search for something like “home assistant mount network storage”.

For example, this or this came up for me.

No plans to make a ptz script for zoneminder? :wink:

This is possibly one of the best posts I’ve read… very good work all, much appreciated :wave::+1:

This camera model works in HA via Wi-Fi or it is mandatory to use Ethernet cable?
Thank you.

To be honest, no idea. But as the Tapo Camera Control was built based on the Tapo cameras which have the same controls, I guess it will work both ways, you need only the IP address of the camera.

@JurajNyiri, has anyone used your module with a Mercury camera?

1 Like

I have no idea, nobody reported that yet.

So PTZ works with HA with this this integration? Tapo c200 ?

Yes, it does works.

tapo on my ha

translation for the italian gui:
sinistra -> left
destra -> right
su -> up
giu -> down
salva pos1/2 -> save position 1/2
vai pos1/2 -> go position 1/2

Thanks for quick reply! Just got home from buying one :slight_smile:

Is it possible to share yout ptz config ? :smiley:

I added the camera in “Integrations”. It’s pretty straightforward.

This is the code for the card:

type: vertical-stack
cards:
  - aspect_ratio: 50%
    entity: camera.tapo_camera_f11f_hd
    type: picture-entity
    camera_view: live
  - type: horizontal-stack
    cards:
      - type: button
        tap_action:
          action: call-service
          service: tapo_control.ptz
          service_data:
            entity_id: camera.tapo_camera_f11f_hd
            pan: LEFT
            distance: 0.1
        entity: camera.tapo_camera_f11f_hd
        name: sinistra
        show_state: false
        show_icon: true
        icon_height: 32px
      - type: button
        tap_action:
          action: call-service
          service: tapo_control.ptz
          service_data:
            entity_id: camera.tapo_camera_f11f_hd
            pan: RIGHT
            distance: 0.1
        entity: camera.tapo_camera_f11f_hd
        name: destra
        show_state: false
        show_icon: true
        icon_height: 32px
      - type: button
        tap_action:
          action: call-service
          service: tapo_control.ptz
          service_data:
            entity_id: camera.tapo_camera_f11f_hd
            tilt: UP
            distance: 0.1
        entity: camera.tapo_camera_f11f_hd
        name: sù
        show_state: false
        show_icon: true
        icon_height: 32px
      - type: button
        tap_action:
          action: call-service
          service: tapo_control.ptz
          service_data:
            entity_id: camera.tapo_camera_f11f_hd
            tilt: DOWN
            distance: 0.1
        entity: camera.tapo_camera_f11f_hd
        name: giù
        show_state: false
        show_icon: true
        icon_height: 32px
  - type: horizontal-stack
    cards:
      - type: button
        tap_action:
          action: call-service
          service: tapo_control.save_preset
          service_data:
            entity_id: camera.tapo_camera_f11f_hd
            name: pos1
        entity: camera.tapo_camera_f11f_hd
        name: salva pos1
        show_state: false
        show_icon: true
        icon_height: 32px
      - type: button
        tap_action:
          action: call-service
          service: tapo_control.ptz
          service_data:
            entity_id: camera.tapo_camera_f11f_hd
            preset: pos1
        entity: camera.tapo_camera_f11f_hd
        name: vai pos1
        show_state: false
        show_icon: true
        icon_height: 32px
      - type: button
        tap_action:
          action: call-service
          service: tapo_control.save_preset
          service_data:
            entity_id: camera.tapo_camera_f11f_hd
            name: pos2
        entity: camera.tapo_camera_f11f_hd
        name: salva pos2
        show_state: false
        show_icon: true
        icon_height: 32px
      - type: button
        tap_action:
          action: call-service
          service: tapo_control.ptz
          service_data:
            entity_id: camera.tapo_camera_f11f_hd
            preset: pos2
        entity: camera.tapo_camera_f11f_hd
        name: vai pos2
        show_state: false
        show_icon: true
        icon_height: 32px

big note: there’s a considerable delay (around 8 seconds) between the “movement command” and the video on the camera. The PTZ command is executed immediatly, but the video is delayed. I still haven’t looked into it.

You can disable stream in options of integration for near instant video at the cost of hw resources. That’s just how home assistant works.

For me quality got much worse when i disable that. same for you? =)
And do you get any motion sensor entity from your C200? i got one but after a little while it no longer working. now i cant get it back even if i re add the camera.

Thank you! :slight_smile:
Do you get any motion sensor entity from your C200? i got one but after a little while it no longer working. now i cant get it back even if i re add the camera.

Yes it is the same. Go read FAQ on readme of the repo, all your questions are answered there :slight_smile:

Oh i see, Thank you! Works now :slight_smile: