Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to authenticate with device. Verify that device id and local key are correct #514

Open
MrPsi opened this issue Jun 28, 2021 · 2 comments

Comments

@MrPsi
Copy link

MrPsi commented Jun 28, 2021

I cannot add my device. A Deltaco SH-OP01. I get the following log error:

2021-06-28 21:26:21 ERROR (MainThread) [custom_components.localtuya.pytuya] [bf0...sip] Failed to get status: 'utf-8' codec can't decode byte 0xd6 in position 1: invalid continuation byte
Traceback (most recent call last):
File "/config/custom_components/localtuya/pytuya/init.py", line 510, in detect_available_dps
data = await self.status()
File "/config/custom_components/localtuya/pytuya/init.py", line 472, in status
status = await self.exchange(STATUS)
File "/config/custom_components/localtuya/pytuya/init.py", line 457, in exchange
payload = self._decode_payload(msg.payload)
File "/config/custom_components/localtuya/pytuya/init.py", line 557, in _decode_payload
payload = payload.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd6 in position 1: invalid continuation byte

The id starts with "bf0ed" and ends with "bbdsip". I got two other devices of the same brand and model that works. Those ids only contain hex characters though. The new device id seems to contain other characters. Any ideas how to add the new device?

@marchett0
Copy link

I have the same situation. I'm trying to add a lamp and the error is the same the ID is something like "eb7fxxxxxxxxxxxxxxxwjco"

@shtrom
Copy link

shtrom commented Nov 6, 2021

Sounds similar to #424.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants