TP-Link Kasa Spot KC100

Any one able to assist with setting up an EC60 via Scrypted ? It has work intermittently but most the time it just returns a Snapshot Failed

Think I cracked it, needed the Rebroadcast & Transcoding Plugin installing also, though still seems hit and missing with the Snapshot Failed

Hello,

Trying to setup my camera KC110 but am unable to get a stream, did you set up HLS or a RTMP to get it working?

In the logs it says its running but I can get any stream in the Picture Glance Card

Also another question in the streaming link did you enter the IP or the DuckDNS address ?

[s6-init] making user provided files available at /var/run/s6/etc…exited 0.
[s6-init] ensuring user provided files have correct perms…exited 0.
[fix-attrs.d] applying ownership & permissions fixes…
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts…
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Starting Nginx
Nginx Started
Starting controller
Starting KasaStreamer
info: KasaStreamer.Camera[0]
[Babycam] Starting camera
info: System.Net.Http.HttpClient.KasaHttpClient.LogicalHandler[100]
Start processing HTTP request GET https://...:/https/stream/mixed?video=h264&audio=g711&resolution=hd
info: System.Net.Http.HttpClient.KasaHttpClient.ClientHandler[100]
Sending HTTP request GET https://
...:/https/stream/mixed?video=h264&audio=g711&resolution=hd
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
Content root path: /app
info: KasaStreamer.Ffmpeg[0]
[Babycam] Ffmpeg started
info: System.Net.Http.HttpClient.KasaHttpClient.ClientHandler[101]
Received HTTP response headers after 874.969ms - 200
info: System.Net.Http.HttpClient.KasaHttpClient.LogicalHandler[101]
End processing HTTP request after 935.1834ms - 200
info: KasaStreamer.HealthChecker[0]
[Babycam] Starting health check
info: KasaStreamer.HealthChecker[0]
[Babycam] IS healthy

UPDATE!!
When i went to Media i can see 6 instances of my camera and the last 2 work for some reason so im using those ones to display, @joshgetter thank you for the wonderful addon and doing better job than TP-Link <3

Happy to report that KC420WS works with this integration. Thank you!

1 Like

fekhoo, I have gotten scrypted installed on Home Assistant as an Add-On. I am logged into scrypted via the [my homeassistant address]:10443. I have installed the TP-Link Kasa plugin and it has found the Kasa lights that I have in my home but it is not finding the KD110 doorbell. I have tried to “Add New” and entered the IP address of the doorbell and click “Create”. I get nothing. What am I doing wrong? Step-by-step instructions would be truly helpful. I am extremely new to Home Assistant and any help you provide is VERY much appreciated!

I did find out that when I click Create in Scrypted it does log in Home Assistant. I am getting a TCP Socket Closed Error. I have set the doorbell as a static IP and forwarded the port in the router.

Also, when i set up my KD110 camera I didn’t set a username and password on it and don’t have that option within the Kasa app. Does anyone have any help to provide on that??

I am trying to set up my KD110 doorbell camera. Would you mind being a saint and letting me know the steps to get it working? I have installed the Scrypted Add-On and entered the FFmpeg input as described above by fekhoo and I have a black screen on the snapshot preview in Scrypted (it does not say Snapshot Unavailable). What other steps do I need to take to get the doorbell to integrate into HA? I am pulling my hair out with this integration and I would truly appreciate your assistance!!

So, here are some steps that I used to configure KC410S camera with Scrypted. After logging in to the Scrypted page, please make sure the following plugins are installed:

Now click on the FFmpeg Camera Plugin and it will take you to the plugin home page. Select Add New and assign a name and location for your camera (it can be edited later).

Here is the most important part. To assign the FFmpeg input stream argument, use the string as supplied by fekhoo, but with an important note:

The string supplied by fekhoo is:

-f h264 -i https://[user name]:[password]@[camera ip]:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd

The username is your Kasa app username, which will most likely be your email address.
The password is your Kasa app password which will most likely have special characters.

You have to change the special characters to % otherwise the username/password will not work. For example, if my Kasa app username is [email protected] and Kasa app password is Bruno#GetHere$, I will have to substitue:

agupta%40hotmail.com for username and
Bruno%23GetHere%24 for password

-f h264 -i https://agupta%40hotmail.com:Bruno%23GetHere%[email protected]:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd

My string would be like shown above. I have assigned a static IP address 192.168.1.150 to the camera.

After doing this, I immediately got the video stream on the FFmpeg plugin page. Then add the camera as a Homekit device to HA. I did not add the Homekit hub to HA. I just ignored it. The pairing code for the Homekit Camera needed by HA was obtained by clicking on the Homekit plugin in Scrypted. It shows a giant QR code and a numeric pairing code. I used the numeric pairing code.

I am no expert on Scrypted/HA. Just posted my work to get the camera working with Scrypted in the hope it helps others. There may be other configuration required within Scrypted/HA for more functionality.

1 Like

Thank you for that!!! That is a big help as I did not know to add the ‘% and a number’ to represent the special characters. Do you know where I can find a listing of those % numbers for all characters?? I have an exclamation point in my password and I am not finding them anywhere.

After adding the %40 for the @ symbol and %21 for the exclamation point, I am still getting a Snapshot Failed on my KD110 feed under the FFmpeg Camera plugin.

You can search for ascii to hex tables and lot of website would come up. Here are some commonly used ones:

! @ # $ % ^ & * ( ) +
21 40 23 24 25 5E 26 2A 28 29 2B

a) Please make sure that you have static IP address assigned to the camera.
b) The camera and HA are on the same network, means HA can access the camera. You can open a Terminal in HA and ping the camera IP address to make sure it is responding.
c) In Scrypted, in the following screen, please DO NOT enter anything in Username and Password boxes. The only item entered here is the string which you have created. Enter it in just the first box where it says FFmpeg Input Stream Arguments. Please check for typos carefully. I have left the box blank for the sake of capturing the screen image. I would recommend copying the string from post above, pasting it into any plain text editor like Notepad, replacing the username, password and IP address for your device and then copy/paste into the box in Scrypted.

d) In the Extensions, please make sure the following are checked:

Click Save. If the device is supported in Scrypted, the video should show up in the box.

1 Like

I have pinged the doorbell and it pings just fine so it is on the network and able to be communicated with. I have input the link exactly as you have shown with my username and password and correct IP address input. Could it be that the %21 for the exclamation point in my password is throwing it off?? I have reloaded the plugin and still can’t get it to show anything in the preview box. I have all the same extensions you have shown. . . . I don’t know what else to do.

I tried to create new from scratch and it still won’t work. If anyone here who has gotten the Kasa KD110 to work would please reply with informaiton on how you got it to work, I will be truly grateful!!

The console in Scrypted says that the URL is returning as 401 Unauthorized: See Below:

server version: 0.5.11
plugin version: @scrypted/ffmpeg-camera 0.0.19
[Rebroadcast Plugin]: prebuffer sessions starting in 5 seconds
[Rebroadcast Plugin]: Stream 1 prebuffer session started
[Rebroadcast Plugin]: prebuffer session starting
[Rebroadcast Plugin]: rebroadcast mode: rtsp
[Rebroadcast Plugin]: Selected stream Stream 1
[Rebroadcast Plugin]: -hide_banner -fflags +genpts -f h264 -i https:[REDACTED] -rtsp_transport tcp -vcodec copy -acodec copy -f rtsp rtsp://127.0.0.1:32995/f8dbefd7cd996316
[Rebroadcast Plugin]: [https @ 0x9a62810] HTTP error 401 Unauthorized
[Rebroadcast Plugin]: https://[secret username]:[secret password]@192.168.50.207:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd: Server returned 401 Unauthorized (authorization failed)
[Rebroadcast Plugin]: ffmpeg exited
[Rebroadcast Plugin]: rebroadcast error Error: ffmpeg exited
[Rebroadcast Plugin]: at ChildProcess. (/@scrypted/prebuffer-mixin/main.nodejs.js:1:74704)
[Rebroadcast Plugin]: at ChildProcess.emit (node:events:525:35)
[Rebroadcast Plugin]: at ChildProcess.emit (node:domain:489:12)
[Rebroadcast Plugin]: at ChildProcess._handle.onexit (node:internal/child_process:291:12)
[Rebroadcast Plugin]: prebuffer session ended with error Error: ffmpeg exited while waiting to parse stream information: Video
[Rebroadcast Plugin]: at ChildProcess. (/@scrypted/prebuffer-mixin/main.nodejs.js:1:72527)
[Rebroadcast Plugin]: at ChildProcess.emit (node:events:525:35)
[Rebroadcast Plugin]: at ChildProcess.emit (node:domain:489:12)
[Rebroadcast Plugin]: at ChildProcess._handle.onexit (node:internal/child_process:291:12)
[Rebroadcast Plugin]: restarting prebuffer session in 5 seconds

What port do you have the static IP address assigned to on your doorbell?

IP is not assigned to a port, it is assigned to the device. Ports are like software endpoints on a device which listen for specific type of traffic. Port 19443 is open on my camera, I checked with port scanner. Ports 10443, 17443 and 18443 are also open. You can run a port scanner like Port Authority app on Android or nmap to check if the port 19443 is open on KD110.

I did some research on Kasa products and apparently, not all of them support RTSP streaming. Someone had asked in May of last year if the doorbell KD110 supports RTSP streaming but there was no reply.

Thank you for that info! Another person in this thread said they got their KD110 working and I have messaged them directly and they have yet to answer as well. I truly appreciate your assistance to this point.

You might want to change your password (temporarily) to a simple one with just alphabets, no numbers, no special characters and see if you still get authorization error. By any chance, does your email address or password have any foreign language characters?

No foreign language characters. I will try a different password just to see if that works.

That didn’t work either. Kasa might end up just losing my business completely. I only have a few Kasa devices and may just switch over completely to Shelly. The bulbs have been fantastic and connect to the network with ease, but if they are going to make the doorbell only work with their app, then they aren’t the brand for me. I truly appreciate all of your help!! I may send this doorbell back (my second one now) and get the reolink since it appears to integrate pretty well with Home Assistant.

It is really sad that some manufacturers have closed their systems so much that these cannot be integrated with any other platform. I recently purchased Eufy doorbell and lock and they are so tightly locked down that I had tough time integrating them with HA. I had to install custom integration and go through hoops to get some functionality, Luckily it was enough for me so I kept them. Even the Kasa KC410S camera does not function very well with HA. It does not stream true live video. It is like a snapshot updating every 8 seconds.
On one hand these manufacturers talk about Matter which provides a universal platform for interoperability of devices and on other hand they lock down their systems so no one can access them. Just all a money making scheme…

Hope Reolink will work better.

1 Like

What security cameras have you found to be best with HA?

I have not tried many with HA. One brand I would definitely advise to stay away from is Blink. Not because of HA, but in general. The Blink cameras are so slow to load the live video feed in their app itself that you would want to rip them out and throw them away.

Ring camera works pretty well with HA, but they have subscription for cloud storage, which is why I went with Kasa, Their camera was extremely easy to setup in their app, but in HA, it just gives up.

Tested Amcrest IP2M-841 but they also are a hit or miss. Their WiFi module is pretty weak, so the camera should either be few feet from WiFi router or use wired ethernet cable or the house has mesh routers with strong wifi signal everywhere. HA has trouble obtaining/maintaining a connection. Other than that, they have lot of customization and flexibility. These cameras can write to a local FTP server/NAS without any issues. They have to be added to HA through configuration.yaml, not via GUI.

Best case scenario would be to get a camera which has native integration support in HA. Using third party workarounds is a hit or miss. I cannot think of a non-subscription/non-cloud based camera which has native support in HA.

I have not tested Aqara or Reolink or Wyze. You might want to check out Wyze. They have introduced a new line of camera and are running a sale for $20 each.

1 Like

Thank you for that info! I will steer clear of Blink and Kasa going forward. The Reolink doorbell is one of the few recent ones I can find that works for HA and has videos on youtube that walk through the process and it can also be used with an NVR so I can always expand to bigger on-site recording with it. I’m just now getting into the home automation scene and finding it very disheartening that so many companies are strategically moving more toward controlling the data just like the companies people like me are trying to get away from.