TP-Link Kasa Spot KC100

Has anyone managed to get a KC100 working with Scrypted? I have 1 KC105 and 4 KC100 no issues getting the KC105 up and running but I get an authentication error with all of the KC100. Using the same string for all of them just updating the ip address.

Okā€¦ sooo deep breath.

I got scrypted working with a KC200ā€¦ youā€™re going to want to hold on for this wild journey.

Some of the kasa cameras wonā€™t take the username and password as part of the URLā€¦
Soā€¦

You have to take your password and base64 encode it Base64 Encode and Decode - Online

Then you take your username and the base64 encoded password - put a : in between them and base 64 encode the entire thing

As an example letā€™s say my username is [email protected] and my password is Password1!
Base 64 encode the password gets you UGFzc3dvcmQxIQ==

So then you base 64 encode [email protected]:UGFzc3dvcmQxIQ== and you get dXNlckB0ZXN0LmNvbTpVR0Z6YzNkdmNtUXhJUT09 - this is your authentication token

Then the input stream arguments should be
-headers "Authorization: Basic dXNlckB0ZXN0LmNvbTpVR0Z6YzNkdmNtUXhJUT09" -f h264 -i https://192.168.1.206:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd

Note that you need quotes around the entire Authentication: Basic xxxxxx part

Good luck :slight_smile:

2 Likes

Confirming this worked for the KC100 and KC105 also. Thanks!

1 Like

I have a KC410S. This guide was a super quick way to get the camera stream up and running. However, I am only receiving snapshots from the camera and cannot get a stream. I opened the rtsp stream in VLC on my computer and it seems to be working fine. In scrypted I can see that the motion detection state is changing as well. Both the stream in scrypted and HomeKit are only showing snapshots when the page is reloaded/home app is opened. I just got the camera today so Iā€™m sure I have more fiddling to do. Any tips would be greatly appreciated!

Ok I figured out why my KC400 wasnā€™t working. Everything was loading fine but not video or jpeg.

When setting up HA add-on in the config= camera nameā€¦ everything must be lowercase, I had one capital for Camera.

Also saw in post that someone had a Kasa watermark, one can turn that off in the Kasa app setting for camera.
Sooo Cheers to me!!

I can confirm this works with the KC410S And EC70, but I only get video, no sound, in HomeKit.

Here is my arguments:


-f h264 -i https://<user>:<pass>@<i.p address>:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd

Is there anything else I need to set up to get sound?

I have a EC70 and none of these seem to work, I cannot get it to authenticate. Did something change in firmware to nerf this solution?

Could you give an example of what you did to add 3 cameras, please and thank you!

Does this addon still work?

When I try to add the repository through supervisor I get the following error:

Cmd('git') failed due to: exit code(128) cmdline: git clone -v --recursive --depth=1 --shallow-submodules -- https://github.com/joshgetter/hassio-addons/tree/master/kasa-camera /data/addons/git/7247aaf7 stderr: 'Cloning into '/data/addons/git/7247aaf7'... fatal: repository 'https://github.com/joshgetter/hassio-addons/tree/master/kasa-camera/' not found '

the url I am copying is: https://github.com/joshgetter/hassio-addons

Am I doing something wrong?

Thanks.

I know youā€™ve been waiting awhile, I hope you got an answer elsewhere. Here is what I did based on this post:

Went to Settings, Add-ons, Add-on Store. At the top right I clicked the ā€¦ Repositories and added it as https://github.com/joshgetter/hassio-addons

Then it showed Hass.io Add-ons - Josh Getter and showed Kasa Camera and Node-RED.

I installed Kasa Camera, started it, added my cameras to the config. Then I added local file camera integration (search for it, I canā€™t post links) and added a Camera card to the dashboard, set the URL to the http://<HA IP>:43330/thumbnails/<CAMERA NAME>.jpg

Good luck!

do you have step by step instruction how to make it. im spand week and nothing works. thanks

Posting here in case this helps someone:

  1. Settings > Addons > Add-on Store > 3 buttons top right corner > add GitHub - joshgetter/hassio-addons: A Home Assistant Addon repository.
  2. Refresh > Click Kasa Camera > Install > Populate configuration with your kasa email & password, camera name & camera IP > save > click start on the info tab (the log tab should show ā€œKasaStreamer.HealthChecker[0]ā€ with ā€œ IS healthyā€)
  3. My dashboard auto-added a card for the camera, and asked me to specify still image URL & stream source URL.

You can manually do this by clicking Setings > Devices & Services > Devices tab > Add device > search ā€œGeneric Cameraā€. For Still image URL use:
http://<HA IP>:43330/thumbnails/<CAMERA NAME>.jpg

For stream source URL use:
http://<HA IP>:43330/hls/<CAMERA NAME>.m3u8
(for both make sure to use IP address of HA, not the camera IP)

  1. Select HTTP for RTSP transport protocol, and basic as the authentication. Leave username & password blank & uncheck verify SSL certifcate.

Now I can see my kasa EC70 camera right on home assist. Thanks Josh Getter for making this possible.