|
| 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 %}) |
0 commit comments