[Custom Component] Tapo: Cameras Control

Shortcuts is a valid option for the custom webrtc card.

Hi there,

I have the same issue, same error generated “Preset x is not set in the app” on my C200.

I create 2 positions in the app, they immediately show up in the select entity with the right name, and when I select one position it fails in error, saying that it’s not set in the app, while it is obviously.

Gave it some time if it had to “sync” in any way, to no avail.
I’ve removed and rewritten manually the presets as was suggested above, it does not help.

Any idea? Thanks!!

What are the preset names?

From the entity attributes:
image

From Lovelace:
image

Declared with this:

  - type: entities
    entities:
      - entity: select.mycamera_move_to_preset
        name: Preset position

Using this component:
image

Error log:

Could you try via this service call:

service: select.select_option
data:
  option: 'Table'
target:
  entity_id: select.bedroom_move_to_preset

Play around with the option, maybe there is a left over space or something similar? option: 'Table ' etc.

After, ideally after we figure out the bug, you can run following:

service: tapo_control.delete_preset
data:
  preset: "Test"
target:
  entity_id: camera.bedroom_sd

To delete the preset and then

service: tapo_control.save_preset
data:
  name: "Test"
target:
  entity_id: camera.bedroom_sd

To create a new one via HA. Should work 100%.

So that’s weird… camera is working well, I can move it with the arrow “button” entities, all options work well, commands are well transmitted to the camera, I can also confirm it from the mobile Tapo app.

But the preset does not work. When I do a service call from the developer tools area, either for “select_option” or for “delete_preset” it says “fail to call service xxx. unknown error”. I cannot delete the preset. when I try to save a preset, it looks like it works but does nothing.

The error log for deleting the preset looks like (looks just a bit different from the previous one):

The second error points to a bigger problem with Home Assistant / Browser. Make sure to update everything to the latest version and try a different browser.

Spot on, I tried from my mobile app and it works well. I rebooted everything end-to-end and no more problem. Sorry for that…

1 Like

Hello

I have been using this integration with a C200 and it worked great. Now i Bought a C500 and it is not recognised. When I try to add a new camera it says: IP address is not a supported Tapo device

I configured the account.

I didn´t see its supported, has anyone sucessfully integrated a C500?

thank you!

Hello please open a new feature request on GitHub. Make sure to use the latest version as that added support for another previously unsupported camera category

Thanks for answering. I updated to the latest version and now it works perfectly. Thanks a lot! And great job with the integration!

1 Like

I got a Tapo C200, updated it to the latest firmware, added it to Home Assistant with this component and it behaves quite unreliable.

I see SD Stream and HD Stream showing up, both show video, for a while at least. I first added a picture card with the SD Stream to the dashboard, it worked for a few hours, then stopped, the SD Stream showed as unavailable.

I switched the card to HD Stream, again, worked for a few hours, became unavailable.

I had to reboot the camera to have the streams working again. Is this “normal”? Rebooting the camera every few hours is not that great.

Hello, no that is not normal. I recommend looking into why is camera disconnecting from your WiFi.

The problem is the Webcam is not disconnecting imho. When the stream becomes unavailable I can still rotate the camera for example from the integration and the camera physically really rotates.

There is a maximum of 2 streams available. You are probably using the camera in more places - see Tapo FAQ.

I am not using the camera elsewhere, I do not even open the TP-Link app. Last time it broke when I was editing my Home Assistant dashboard and also editing the card for the stream. Can it be that this somehow counts as a stream and the camera reaches the limit? But the FAQ talks about simultaneous streams so it makes no sense to me. I only look at the stream via Home Assistant and never from more than 1 device at a time.

ANY place where you type in the IP/Credentials for the cams “stream”, IT will stream, as long as this place HA, homemade-webserver, window-app etc, if HA is up and running, it stream, IF you have it on OverView, and another View, in HA ( i.e in 2 Cards ), that will count for 2, and they will “stream”

Stream, regardless of you are looking at them, IF HA is running, and you have 2 place where you entered above credentials, you are telling ha to “stream”
if you mobile app is open (or which are running on the background)(stream) if you have the cam in a Windows-app(or which are running on the background) (stream)

News

  • It is now possible to download recorded videos, and in full quality with sound through a script. See pytapo readme for more explanation. This has been worked on for more than 2 years with a lot of dead ends and 10s to 100s of hours spent on it across multiple developers. It was finally possible thanks to go2rtc and Alex X, who found the last missing piece of the puzzle yesterday. Huge thanks also goes to Davide Depau who discovered and wrote the first implementation and core of streaming communication protocol used for this.
  • It is now possible to use camera as media_player, see webrtc integration readme. This gives you a possibility to send any sound to the camera, or even open 2 way talk session via a browser in any device.
4 Likes

Version 5.0.0 :movie_camera:

Beta 1

New Features

  • Media Browser: Browse your recordings stored on camera in Home Assistant.
  • Previously played recordings are securely cached for 24 hours on your Home Assistant host and when requested to play moved instantly and securely to hot storage from which they are played.
  • Requesting a recording which has not already been cached in Home Assistant can take a longer time as downloads from cameras are really complex and slow process.

Developer Note

Ability to download recordings has been worked on for more than 2 years with a lot of dead ends and 10s to 100s of hours spent on it across multiple developers. It was finally possible thanks to go2rtc and Alex X, who found the last missing piece of the puzzle. Huge thanks also goes to Davide Depau who discovered and wrote the first implementation and core of streaming communication protocol used for this.

Beta Notes

This is a beta release for early testers. There might be unfinished features and bugs.

Breaking Changes

If you wish to play or download recordings, you will need to add cloud password to your camera configuration.

Beta 2

Fixes

  • Fix: Unable to play a recording if path in .storage does not already exist

Beta Notes

This is a beta release for early testers. There might be unfinished features and bugs.

1 Like

i’d noticed there was a 5.0.0-beta-2 ? , thou i did install beta-1

Thou i don’t have a “Cloud.Account” unless you mean the “default” tapo-account required for the mobile-app, so unfortunately i can’t help in testing recordings/download

BR , and thanks for your dedication