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

Discovery: Skip decryption of broadcast message with UDP command #95

Merged
merged 2 commits into from
Jan 4, 2024

Conversation

presidentio
Copy link

  1. I have a wifi socket that uses 3.1 tuya API protocol. It sends an unencrypted broadcast message. Without this fix, I can't create a device for my socket and see the following messages in the logs:
2024-01-04 19:16:18.227 DEBUG (MainThread) [custom_components.localtuya.discovery] Failed to decode bordcast from '192.168.1.190': b'\x00\x00U\xaa\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x9f\x00\x00\x00\x00{"ip":"192.168.1.190","gwId":"04110747dc4f22865333","active":2,"ability":0,"mode":0,"encrypt":true,"productKey":"********","version":"3.1"}\x7f\xa5\xac\xec\x00\x00\xaaU'
  1. Fix climates plaform definitions commit is a small fix from my previous findings

@xZetsubou
Copy link
Owner

Thanks.

@xZetsubou xZetsubou merged commit 8f3ffe1 into xZetsubou:master Jan 4, 2024
2 checks passed
@xZetsubou xZetsubou changed the title Skip decryption of broadcast message with UDP command Discovery: Skip decryption of broadcast message with UDP command Jan 4, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants