René's URL Explorer Experiment


Title: Out of box Tapo TC40: discovery not working, authentication failure on wifi setup · Issue #1628 · python-kasa/python-kasa · GitHub

Open Graph Title: Out of box Tapo TC40: discovery not working, authentication failure on wifi setup · Issue #1628 · python-kasa/python-kasa

X Title: Out of box Tapo TC40: discovery not working, authentication failure on wifi setup · Issue #1628 · python-kasa/python-kasa

Description: Hi! I had the misfortune to get a TP-Link Tapo TC40 IP camera, which I intend to use with Frigate through the local RTSP stream. I wanted to set it up without connecting it to the internet, and registering for any cloud service, and I re...

Open Graph Description: Hi! I had the misfortune to get a TP-Link Tapo TC40 IP camera, which I intend to use with Frigate through the local RTSP stream. I wanted to set it up without connecting it to the internet, and reg...

X Description: Hi! I had the misfortune to get a TP-Link Tapo TC40 IP camera, which I intend to use with Frigate through the local RTSP stream. I wanted to set it up without connecting it to the internet, and reg...

Opengraph URL: https://github.com/python-kasa/python-kasa/issues/1628

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Out of box Tapo TC40: discovery not working, authentication failure on wifi setup","articleBody":"Hi!\n\nI had the misfortune to get a TP-Link Tapo TC40 IP camera, which I intend to use with Frigate through the local RTSP stream.\nI wanted to set it up without connecting it to the internet, and registering for any cloud service, and I read in the Home Assistant docs ([here](https://www.home-assistant.io/integrations/tplink)) that python-kasa should work for provisioning most TP-Link devices, but something is wrong and I cant even scan for wifi networks with it. I have factory resetted it just in case, but that did not help.\n\nI have installed python-kasa 0.10.2 with pip, on python 3.12.\nIf I run the discovery command while the laptop is connected to the camera's wifi network, I get 0 results:\n```\n$ kasa discover\nDiscovering devices on 255.255.255.255 for 10 seconds\nFound 0 devices\n```\n\nSince my laptop receives the IP address 192.168.191.100 on this network, and the default gateway IP is 192.168.191.1, which I can ping, I tried to run a discovery for this IP range too, without success:\n```\n$ kasa --target 192.168.191.255 discover\nDiscovering devices on 192.168.191.255 for 10 seconds\nFound 0 devices\n```\n\nNext I though I'll continue with the next steps in [the provisioning instructions](https://python-kasa.readthedocs.io/en/latest/cli.html#provisioning), however it seems I cannot start a wifi scan with it either:\n```\n$ kasa --host 192.168.191.1 wifi scan\nDiscovering device 192.168.191.1 for 10 seconds\nRaised error: Device response did not match our challenge on ip 192.168.191.1, check that your e-mail and password (both case-sensitive) are correct. \nRun with --debug enabled to see stacktrace\nERROR:asyncio:Unclosed client session\nclient_session: \u003caiohttp.client.ClientSession object at 0x7f418d2ab5c0\u003e\n```\n\nDetailed output with `--debug`:\n```\n$ kasa --debug --host 192.168.191.1 wifi scan\nDiscovering device 192.168.191.1 for 10 seconds\nDEBUG:kasa.discover:[DISCOVERY] 192.168.191.1 \u003e\u003e {'system': {'get_sysinfo': {}}}\nDEBUG:kasa.discover:Waiting a total of 10 seconds for responses...\nDEBUG:kasa.discover:Decrypted encrypt_info for 192.168.191.1: {'connect_ssid': '',\n 'connect_type': 'wireless',\n 'device_id': 'REDACTED',\n 'http_port': 443,\n 'last_alarm_time': '0',\n 'last_alarm_type': '',\n 'owner': '',\n 'sd_status': 'offline'}\nDEBUG:kasa.device_factory:Using SmartCamDevice for SMART.IPCAMERA\nDEBUG:kasa.device_factory:Finding protocol for 192.168.191.1\nDEBUG:kasa.device_factory:Finding protocol for DeviceFamily.SmartIpCamera\nDEBUG:kasa.transports.sslaestransport:Created AES transport for 192.168.191.1\nDEBUG:kasa.discover:[DISCOVERY] 192.168.191.1 \u003c\u003c {'error_code': 0,\n 'result': {'device_id': 'REDACTED_D164F44270DB784055D1852',\n            'device_model': 'TC40',\n            'device_name': '#MASKED_NAME#',\n            'device_type': 'SMART.IPCAMERA',\n            'encrypt_info': {'data': '', 'key': '', 'sym_schm': 'AES'},\n            'encrypt_type': ['3'],\n            'factory_default': True,\n            'firmware_version': '1.0.4 Build 240902 Rel.38194n',\n            'hardware_version': '2.0',\n            'ip': '192.168.191.1',\n            'isResetWiFi': False,\n            'is_support_iot_cloud': True,\n            'mac': 'REDACTED',\n            'mgt_encrypt_schm': {'is_support_https': True},\n            'protocol_version': 1}}\nDEBUG:kasa.device:Initializing 192.168.191.1 of type \u003cclass 'kasa.smartcam.smartcamdevice.SmartCamDevice'\u003e\nDEBUG:kasa.protocols.smartprotocol:192.168.191.1 multi-request-batch-1-of-1 \u003e\u003e '{\"method\":\"multipleRequest\",\"request_time_milis\":1767154616677,\"terminal_uuid\":\"b+2BG4NWkAozOFExc2pgwA==\",\"params\":{\"requests\":[{\"method\":\"getDeviceInfo\",\"params\":{\"device_info\":{\"name\":[\"basic_info\",\"info\"]}}},{\"method\":\"getAppComponentList\",\"params\":{\"app_component\":{\"name\":\"app_component_list\"}}},{\"method\":\"getConnectionType\",\"params\":{\"network\":{\"get_connection_type\":{}}}}]}}'\nDEBUG:kasa.transports.sslaestransport:Trying default credentials to 192.168.191.1\nDEBUG:kasa.transports.sslaestransport:Sending handshake1...\nDEBUG:kasa.httpclient:Posting to https://192.168.191.1\nDEBUG:kasa.transports.sslaestransport:Device responded with status 200: {'result': {'data': {'code': -40401, 'time': 7, 'max_time': 10, 'encrypt_type': ['3'], 'key': 'MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKv4a/AHIEzDPyDwLsqC5onkBX+/DPC7D0d/CG/m6kNiHFpjrgqssQmndF9sXQHURBa2lCnDIC5EMNbwXrxcyvsCAwEAAQ==', 'nonce': 'CB97EC007FBA2E01', 'device_confirm': '4C8E85943619F7681B2A78FF7F68B8074237A76618958A2EFA6851B54C785F15CB97EC007FBA2E015EC70B5A8ED8041B'}}, 'error_code': -40413}\nDEBUG:kasa.transports.sslaestransport:Connected to 192.168.191.1 with default username\nDEBUG:kasa.transports.sslaestransport:Device response did not match our challenge on ip 192.168.191.1, check that your e-mail and password (both case-sensitive) are correct. \nDEBUG:kasa.protocols.smartprotocol:Unable to authenticate with 192.168.191.1, not retrying: Device response did not match our challenge on ip 192.168.191.1, check that your e-mail and password (both case-sensitive) are correct. \nRaised error: Device response did not match our challenge on ip 192.168.191.1, check that your e-mail and password (both case-sensitive) are correct. \n```\n\nI have read warnings that the offline provisioning only works if it has never been set up with a cloud account before, but as far as I know this should be a brand new device. I got it in its original box, nicely wrapped in all the wrapping material.\nI have seen #1590 and #1604 which seem to be somewhat related, could it be because it uses newer communication protocols? Though in my case `encrypt_type` is not TPAP or KLAP, but `[3]`.\n","author":{"url":"https://github.com/mpeter50","@type":"Person","name":"mpeter50"},"datePublished":"2025-12-31T05:06:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":115},"url":"https://github.com/1628/python-kasa/issues/1628"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c3556def-8060-a397-98f5-484cbbc1833a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA0DE:A2F82:11A772:17E734:69824AB3
html-safe-nonce3f169a708dc97b1c548edc8c68cfa86dd65da7e0a06a6f73b25b8a400028c7e4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMERFOkEyRjgyOjExQTc3MjoxN0U3MzQ6Njk4MjRBQjMiLCJ2aXNpdG9yX2lkIjoiMjM2OTYyNjkyNjA1MTY0MjAzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4a014957dd87ef4ad94927dd6230c6a6532fcf2ab76a1a23072f37905a8c1f3f
hovercard-subject-tagissue:3771996323
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-kasa/python-kasa/1628/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8180ec57e5e81cf826ae83f56f8b84ed81939f2a685c843d76a34b1d47d4e5ce/python-kasa/python-kasa/issues/1628
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8180ec57e5e81cf826ae83f56f8b84ed81939f2a685c843d76a34b1d47d4e5ce/python-kasa/python-kasa/issues/1628
og:image:altHi! I had the misfortune to get a TP-Link Tapo TC40 IP camera, which I intend to use with Frigate through the local RTSP stream. I wanted to set it up without connecting it to the internet, and reg...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamempeter50
hostnamegithub.com
expected-hostnamegithub.com
Nonee2ebc70d7d37443ffd1ae8f91a253417e0725a69916687ec3b823f2451fb6caa
turbo-cache-controlno-preview
go-importgithub.com/python-kasa/python-kasa git https://github.com/python-kasa/python-kasa.git
octolytics-dimension-user_id57733869
octolytics-dimension-user_loginpython-kasa
octolytics-dimension-repository_id221571611
octolytics-dimension-repository_nwopython-kasa/python-kasa
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id221571611
octolytics-dimension-repository_network_root_nwopython-kasa/python-kasa
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6241ad74f49cf194bf94dad6a72d8792f1c2ab10
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python-kasa/python-kasa/issues/1628#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-kasa%2Fpython-kasa%2Fissues%2F1628
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-kasa%2Fpython-kasa%2Fissues%2F1628
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python-kasa%2Fpython-kasa
Reloadhttps://patch-diff.githubusercontent.com/python-kasa/python-kasa/issues/1628
Reloadhttps://patch-diff.githubusercontent.com/python-kasa/python-kasa/issues/1628
Reloadhttps://patch-diff.githubusercontent.com/python-kasa/python-kasa/issues/1628
python-kasa https://patch-diff.githubusercontent.com/python-kasa
python-kasahttps://patch-diff.githubusercontent.com/python-kasa/python-kasa
Please reload this pagehttps://patch-diff.githubusercontent.com/python-kasa/python-kasa/issues/1628
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-kasa%2Fpython-kasa
Fork 246 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-kasa%2Fpython-kasa
Star 1.6k https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-kasa%2Fpython-kasa
Code https://patch-diff.githubusercontent.com/python-kasa/python-kasa
Issues 51 https://patch-diff.githubusercontent.com/python-kasa/python-kasa/issues
Pull requests 36 https://patch-diff.githubusercontent.com/python-kasa/python-kasa/pulls
Discussions https://patch-diff.githubusercontent.com/python-kasa/python-kasa/discussions
Actions https://patch-diff.githubusercontent.com/python-kasa/python-kasa/actions
Projects 0 https://patch-diff.githubusercontent.com/python-kasa/python-kasa/projects
Security 0 https://patch-diff.githubusercontent.com/python-kasa/python-kasa/security
Insights https://patch-diff.githubusercontent.com/python-kasa/python-kasa/pulse
Code https://patch-diff.githubusercontent.com/python-kasa/python-kasa
Issues https://patch-diff.githubusercontent.com/python-kasa/python-kasa/issues
Pull requests https://patch-diff.githubusercontent.com/python-kasa/python-kasa/pulls
Discussions https://patch-diff.githubusercontent.com/python-kasa/python-kasa/discussions
Actions https://patch-diff.githubusercontent.com/python-kasa/python-kasa/actions
Projects https://patch-diff.githubusercontent.com/python-kasa/python-kasa/projects
Security https://patch-diff.githubusercontent.com/python-kasa/python-kasa/security
Insights https://patch-diff.githubusercontent.com/python-kasa/python-kasa/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/python-kasa/python-kasa/issues/1628
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/python-kasa/python-kasa/issues/1628
Out of box Tapo TC40: discovery not working, authentication failure on wifi setuphttps://patch-diff.githubusercontent.com/python-kasa/python-kasa/issues/1628#top
https://github.com/mpeter50
https://github.com/mpeter50
mpeter50https://github.com/mpeter50
on Dec 31, 2025https://github.com/python-kasa/python-kasa/issues/1628#issue-3771996323
herehttps://www.home-assistant.io/integrations/tplink
the provisioning instructionshttps://python-kasa.readthedocs.io/en/latest/cli.html#provisioning
#1590https://github.com/python-kasa/python-kasa/issues/1590
#1604https://github.com/python-kasa/python-kasa/issues/1604
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.