[Custom Component] Tapo: Cameras Control

hello , i have install this custom but have a problem no work with my tapo C200
hacs i have install tapo control, restart home assistant
in my confing.yaml , have inside this
restart home assistant
i see switch.bedroom_privacy_mode , state off no can have on "error call "

My config is ok ?
Can you help solve this problem ?
I want have PLZ move camera in card ,but no work , fault call service i see in all button press in the card camera

  - platform: template
    switches:
      bedroom_privacy_mode:
        value_template: "{{ state_attr('camera.telecamera_sala', 'privacy_mode') == 'on' }}"
        turn_on:
          service: tapo_control.set_privacy_mode
          data:
            entity_id: "camera.telecamera_sala"
            privacy_mode: "on"
        turn_off:
          service: tapo_control.set_privacy_mode
          data:
            entity_id: "camera.telecamera_sala"
            privacy_mode: "off"
#


sensor:
  - platform: template
    sensors:
      bedroom_motion_detection:
        friendly_name: "Bedroom Motion Detection"
        value_template: "{{ state_attr('camera.telecamera_sala', 'motion_detection') }}"        
        
       
binary_sensor:
  - platform: template
    sensors:
      bedroom_motion_detection:
        friendly_name: "Bedroom Motion Detection"
        value_template: "{{ state_attr('camera.telecamera_sala', 'motion_detection') == 'on' }}"    
    

Iā€™m no expert but why do you have anything in your config.yaml? Installing the component via HACS gives me all the entities and there is no need to define the sensor or binary sensor.

This is what my Tapo control card looks like in lovelace
tapo_lovelace

and this is the code:

type: picture-glance
title: Front Garden
camera_image: camera.front_camera_hd
entities:
  - entity: camera.front_camera_hd
    icon: 'mdi:arrow-left-drop-circle-outline'
    tap_action:
      action: call-service
      service: tapo_control.ptz
      service_data:
        entity_id: camera.front_camera_hd
        pan: LEFT
  - entity: camera.front_camera_hd
    icon: 'mdi:arrow-up-drop-circle-outline'
    tap_action:
      action: call-service
      service: tapo_control.ptz
      service_data:
        entity_id: camera.front_camera_hd
        tilt: UP
  - entity: camera.front_camera_hd
    icon: 'mdi:arrow-down-drop-circle-outline'
    tap_action:
      action: call-service
      service: tapo_control.ptz
      service_data:
        entity_id: camera.front_camera_hd
        tilt: DOWN
  - entity: camera.front_camera_hd
    icon: 'mdi:arrow-right-drop-circle-outline'
    tap_action:
      action: call-service
      service: tapo_control.ptz
      service_data:
        entity_id: camera.front_camera_hd
        pan: RIGHT
  - entity: camera.front_camera_hd
    icon: 'mdi:eye-outline'
    tap_action:
      action: call-service
      service: tapo_control.set_privacy_mode
      service_data:
        entity_id: camera.front_camera_hd
        privacy_mode: 'off'
  - entity: camera.front_camera_hd
    icon: 'mdi:eye-off-outline'
    tap_action:
      action: call-service
      service: tapo_control.set_privacy_mode
      service_data:
        entity_id: camera.front_camera_hd
        privacy_mode: 'on'
  - entity: camera.front_camera_hd
    icon: 'mdi:power'
    tap_action:
      action: call-service
      service: tapo_control.reboot
      service_data:
        entity_id: camera.front_camera_hd
hold_action:
  action: more-info
camera_view: live

Hope this helps?

3 Likes

I have install by hacs , but no work , i see all button in card, press call fault service.
You have tapo c200 ?
My camera is tapo c200 is compatible ?

I have 2 x c200 and 1 x c100 (no ptz on this camera) and they all work. The camera pic and config I posted is a c200 posted.

Iā€™d suggest either trying a re-install of HACS or redo a manual installation of the tapo component

1 Like

i have install my c200 from integration HA onvif port 2020
i do manual install inside folder component but is equal , i no see entity creates for tapo control

the onvif and tapo integrations are separate. so you should really use one or the other, not both.

yes i use only in integrations by ha onvif . i do error ?
you as integrations tapo in HA ?
i no find tapo_control.ptz in ha entity later installa tapo custom
in config yaml i need put info ?

ONVIF doesnt support ptz with tapo cameras, only streams and motion sensors. you have to install the tapo component to get the services described.

If hacs isnā€™t working you can install the tapo component manually. the instructions are here: https://github.com/JurajNyiri/HomeAssistant-Tapo-Control

i solve, delate onvif and integration by tapocamera , i can see ! thx you
last question , because my live in slow frame time ?
also you have this problem ?

make sure you have ā€œpreload streamā€ selected, see here: https://www.home-assistant.io/integrations/camera/#streaming-video

There will still be some latency (slow frame) but there is nothing you can do about this - its a limitation of the stream component.

ok thx , also you see small card , later click can see large ?
can we zoom the normal card % ?

yes, click on the card and it will bring up larger image. There is no zoom capability though.

Hi, did you manage to integrate the c310 camera into your home assistant?

Hello,

I do not own this device so I am not sure. What was the process of how you added / set up the camera?

I enabled everything in the Tapo application on the phone. Set a username and password for third-party applications. In the integration of Home Assistant, I added the same as Tapo C200 (it works correctly), but it ended with a login error

Maybe they changed the way how the authentication works.
I am not planning to buy this camera so someone else will need to provide instructions on what has changed and how the authentication works now. After that, I will be able to update the component.

I have one on order but no sign of it turning up

The fact this exists is THE best!

I have a report I guess about the motion track that, it seems to reset or ā€œreturn to homeā€ for a few seconds and then go back, it doesnā€™t stay until it sees motion.

The other comment - recalling presets how do I go about doing that ?

1 Like

Check out services section of readme.

tapo_control.save_preset
tapo_control.delete_preset
tapo_control.ptz with preset property

You can open each to see details.

You can see currently created presets in attributes of the camera entity.

Hi @JurajNyiri,

Not sure what went wrong, I donā€™t see Tapo listed in my Integration list.
I tried installing the integrations through both hacs and manual copy to custom_components folder.
Both giving me the same result.

I could see Home Assistant picked up the integration with the usual custom integration nags. There isnā€™t any error nor warning other than this.

Iā€™m running 118.2 supervisor.

update:
I can see the integration now after rebooting the host itself. Thanks