Custom component - Tapo: Cameras Control - to add Tapo cameras into Home Assistant
TP-Link is currently working on a solution that will fixed this issue.
If you wish to use this integration, until this issue is resolved, you will need to either:
Learn more, get latest updates, ask a question or discuss.
Copy contents of custom_components/tapo_control/ to custom_components/tapo_control/ in your Home Assistant config folder.
HACS is a community store for Home Assistant. You can install HACS and then install Tapo: Camera Control from the HACS store.
Following target TCP (v)LAN ports must be open in firewall for the camera to access your Tapo Camera from Home Assistant:
These are not WAN ports, DO NOT OPEN WAN PORTS VIA PORT FORWARDING. You might need to open (v)lan ports only if you know what all of this means.
Add cameras via Integrations (search for Tapo) in Home Assistant UI. You can also simply click the button below if you have MyHomeAssistant redirects set up.
Cameras are also automatically discovered when they are (re)connected to WIFI.
To add multiple cameras, add integration multiple times.
See examples for lovelace cards.
This custom component creates:
Use these services in following service calls.
Saves the current PTZ position to a preset
Deletes a preset
Integration is capable of analysing sound from camera microphone and expose noise detected via binary_sensor.
You need to enable this feature in integration options by checking "Enable sound threshold detection". After enabling it, you can also set any other options starting with [Sound Detection]. You will need to restart Home Asssistant after doing any changes.
For more information and troubleshooting see Home Assistant ffmpeg documentation on which this feature is based on.
Integration is capable of synchronizing recordings for fast playback.
Synchronization is turned off by default, you can browse media stored on camera and request it to be played. However, downloading is rather slow, so it is a good idea to enable media synchronization in background. That way, you will be able to play any synchronized media from camera instantly.
You can enable this setting by navigating to Home Assistant Settings -> Devices and clicking on Configure button next to the Tapo device you wish to turn media synchronization on for. Here, you need to define the number of hours to synchronize. Unless it is specified, synchronization does not run. Here, you are able to also set the storage path where the synchronized recordings will be stored (defaults to /config/.storage/tapo_control).
Finally, you can turn on, or off switch entity switch.*_media_sync
.
Notice:: Recordings are deleted after the number of hours you have chosen to synchronize passes, once both the actual recording time and the file modified time is older than the number of hours set.
Motion sensor is added only after a motion is detected for the first time.
/profile
. Go to /config/network
and under Network Adapter
verify correct IP is shown for the device. If it is not correct, under Home Assistant URL
uncheck Automatic
next to Local Network
and set it to http://<some IP address>:8123
. DO NOT USE HTTPS.Also make sure that:
This is a known issue of Home Assistant.
There is an ability to disable usage of Home Assistant Stream component for the camera, which might lower the delay very significantly at cost of higher CPU usage.
You can choose to disable stream component when adding the camera, or via Options when camera has already been added. This change requires a restart of Home Assistant.
There might be some disadvantages to doing this, like losing option to control playback and a higher CPU usage. Results depend on your hardware and future Home Assistant updates.
If you disable stream and your hardware is not up to the task, you will get artifacts, bigger delay and freezes.
If you wish, try it out and see what works best for you.
Another possibility is using WebRTC Camera by AlexxIT.
Example working configuration:
type: custom:webrtc-camera
entity: camera.bedroom_hd
Supported audio codecs in Home Assistant are "aac", "ac3" and "mp3".
Tapo Cameras use PCM ALAW (alaw) which is not supported.
More details here.
You can get sound working using WebRTC Camera by AlexxIT.
Example working configuration:
type: custom:webrtc-camera
entity: camera.bedroom_hd
You might be entering incorrect password or are encountering a camera limitation.
See official Tapo documentation
Q3: Can multiple accounts/devices view the Tapo camera at the same time?
A: Currently, each camera can be controlled or managed by only one account on the Tapo App. You can share it with 5 different accounts at most, and these two accounts can only access live view and playback features of the camera.
Each camera also supports up to 2 simultaneous video streams. You could use up to 2 devices to view the live feed of the camera simultaneously using the Tapo App or via RTSP. You may also only view the playback of a camera using one Tapo app at a time.
As well as:
Q4: Why can’t I use Tapo Care, SD card, and NVR at the same time?
A: Due to the limited hardware performance of the camera itself, Tapo Care works best with one of the NVR or SD card recordings.
If you are using an SD card and Tapo Care at the same time, the NVR(RTSP/ONVIF) will be disabled.
To restart the recording on the NVR, please remove the SD card from the camera.
If you are using firmware build 230921 and higher, check issue #551.
Otherwise, try those troubleshooting options:
Users reported full functionality with following Tapo Cameras:
The integration should work with any other non-battery Tapo Cameras.
Battery cameras controlled via HUB are working only for control:
If you had success with some other model, please report it via a new issue.
Camera uses ONVIF standard to communicate motion events. This communication can work with 2 ways:
Webhooks are the preffered method of communication as they are faster and lighter. That being said;
Points above are automatically determined by this integration and if the HA does not meet the criteria, webhooks are disabled. That being said;
For webhooks to work, all the user needs to do is make sure he is using HA on HTTP and that the HA is available on the URL communicated.
Yes, the integration is free and does not require any paid subscriptions. It is also fully local requiring no internet access from the camera or this integration.
Firmwares of cameras expect messages in sequential order. Sending them in parallel can lead to 401 code from camera which shows us with this exception.
You will need to send the automation actions in sequence instead, possibly with delay as well if needed.
See #488 for more information.
Please open a new issue, or discuss on Home Assistant: Community Forum.
Join discussion on Discord.
This integration is using python module Pytapo which is an unofficial module for achieving interoperability with Tapo cameras.
Author is in no way affiliated with Tp-Link or Tapo.
All the api requests used within the pytapo library are available and published on the internet (examples linked above) and the pytapo module is purely just a wrapper around those https requests.
Author does not guarantee functionality of this integration and is not responsible for any damage.
All product names, trademarks and registered trademarks in this repository, are property of their respective owners.