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

augmentTapoDevice base64decodes plain text #43

Open
JeLuF opened this issue Feb 7, 2024 · 0 comments
Open

augmentTapoDevice base64decodes plain text #43

JeLuF opened this issue Feb 7, 2024 · 0 comments

Comments

@JeLuF
Copy link

JeLuF commented Feb 7, 2024

augmentTapoDevice uses base64decode on plain text for my SMART.IPCAMERA devices.

This is the deviceInfo before augmentTapoDevice processes it:

{
  deviceType: 'SMART.IPCAMERA',
  role: 0,
  fwVer: '1.3.9 Build 231019 Rel.37378n(4555)',
  appServerUrl: 'https://eu-wap.tplinkcloud.com',
  deviceRegion: 'eu-west-1',
  deviceId: '123123123123123123123123123123123',
  deviceName: 'C200',
  deviceHwVer: '1.0',
  alias: 'Tapo_Camera_F287',
  deviceMac: '123123123123123123123123123123123',
  oemId: '123123123123123123123123123123123',
  deviceModel: 'C200',
  hwId: '123123123123123123123123123123123',
  fwId: '123123123123123123123123123123123',
  isSameRegion: true,
  status: 0
}

(I've replaced device identifiers by 123123...)

Please note that the alias field is plain text. In the output of listDevices, the alias is returned as M�h�&�z��.o;, which is the base64decoded version of the plain text string.

I'm not sure whether all SMART.IPCAMERA devices return a plaintext version of the alias name, but all three cameras that I own do.

@JeLuF JeLuF changed the title augmentTapoDevice bas64decodes plain text augmentTapoDevice base64decodes plain text Feb 7, 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

No branches or pull requests

1 participant