Skip to content

Commit 0aed772

Browse files
committed
Update Kasa documentation
1 parent 013ef56 commit 0aed772

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

docs/_faq/kasa_authentication.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
title: Kasa authentication error
3+
categories: [Website, FAQ]
4+
tags: [logging]
5+
---
6+
7+
When you see the following error in the TerrariumPI logging you need to enable
8+
`Third-Party Compatibility feature` in the app.
9+
10+
```
11+
2025-12-11 03:47:55,212 - ERROR - hardware.relay.kasa_relay - Server response doesn't match our challenge on ip 192.168.1.XXX
12+
Traceback (most recent call last):
13+
File "/TerrariumPI/hardware/relay/kasa_relay.py", line 75, in _get_hardware_value
14+
data = self.__asyncio.run(__get_hardware_state())
15+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16+
File "/TerrariumPI/terrariumUtils.py", line 65, in run
17+
return data.result()
18+
^^^^^^^^^^^^^
19+
File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 456, in result
20+
return self.__get_result()
21+
^^^^^^^^^^^^^^^^^^^
22+
File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
23+
raise self._exception
24+
File "/TerrariumPI/hardware/relay/kasa_relay.py", line 63, in __get_hardware_state
25+
await self.device.update()
26+
File "/opt/venv/lib/python3.11/site-packages/kasa/smartdevice.py", line 353, in update
27+
response = await self.protocol.query(req)
28+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
29+
File "/opt/venv/lib/python3.11/site-packages/kasa/iotprotocol.py", line 43, in query
30+
return await self._query(request, retry_count)
31+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32+
File "/opt/venv/lib/python3.11/site-packages/kasa/iotprotocol.py", line 59, in _query
33+
raise auex
34+
File "/opt/venv/lib/python3.11/site-packages/kasa/iotprotocol.py", line 48, in _query
35+
return await self._execute_query(request, retry)
36+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37+
File "/opt/venv/lib/python3.11/site-packages/kasa/iotprotocol.py", line 86, in _execute_query
38+
return await self._transport.send(request)
39+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40+
File "/opt/venv/lib/python3.11/site-packages/kasa/klaptransport.py", line 309, in send
41+
await self.perform_handshake()
42+
File "/opt/venv/lib/python3.11/site-packages/kasa/klaptransport.py", line 279, in perform_handshake
43+
local_seed, remote_seed, auth_hash = await self.perform_handshake1()
44+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45+
File "/opt/venv/lib/python3.11/site-packages/kasa/klaptransport.py", line 233, in perform_handshake1
46+
raise AuthenticationException(msg)
47+
kasa.exceptions.AuthenticationException: Server response doesn't match our challenge on ip 192.168.1.XXX
48+
```
49+
50+
More information can be found at the [Kasa relay
51+
page]({% link _hardware/tplinkkasa_relay.md %})

docs/_hardware/tplinkkasa_relay.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@ device_auto_detect: true
1515
device_url: https://www.kasasmart.com/
1616
---
1717

18+
## Authentication
19+
20+
In order to make the Kasa hardware able to communicate with TerrariumPI, you
21+
need to enable **Third-Party Compatibility** feature. Else you will get
22+
authentication errors when trying to use the relays.
23+
24+
Read more about
25+
[Third-Party Compatibility feature](https://www.tp-link.com/us/support/faq/4416/)
26+
of Kasa and how to enable it.
27+
1828
## Information
1929

2030
{% include_relative _relay_detail.md %}

0 commit comments

Comments
 (0)