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

Missing alias for 6000s #306

Open
jkremlacek opened this issue Feb 22, 2025 · 1 comment
Open

Missing alias for 6000s #306

jkremlacek opened this issue Feb 22, 2025 · 1 comment

Comments

@jkremlacek
Copy link

Hi,

I am unable to control my 6000s from HA using integration that internally uses pyvesync. I tried running just pyvesync from cmd to see if it alone works and found out that my device has similar issue like this one: #300

2025-02-22 23:25:13,999 - DEBUG - Unknown device named Zvlhcovac model LEH-S601S-WEUR
2025-02-22 23:25:13,999 - DEBUG - Error - 'VeSync' object has no attribute 'unknown'
2025-02-22 23:25:13,999 - DEBUG - LEH-S601S-WEUR device not added

My uneducated guess would be that this alias has to be added into the library in order to be able to control the device via pyvesync.

Output of login and update with debug and trace enabled is:

2025-02-22 23:38:22,923 - DEBUG - =======call_api=============================
2025-02-22 23:38:22,923 - DEBUG - [post] calling '/cloud/v1/user/login' api
2025-02-22 23:38:22,924 - DEBUG - API call URL: 
  https://smartapi.vesync.com/cloud/v1/user/login
2025-02-22 23:38:22,924 - DEBUG - API call headers: 
  null
2025-02-22 23:38:22,924 - DEBUG - API call json: 
  {
  "timeZone": "CET",
  "acceptLanguage": "en",
  "appVersion": "2.8.6",
  "phoneBrand": "REDACTED",
  "phoneOS": "Android",
  "traceId": "1740263902",
  "email": "##_REDACTED_##",
  "password": "##_REDACTED_##",
  "devToken": "",
  "userType": "1",
  "method": "login"
}
2025-02-22 23:38:23,296 - DEBUG - API response: 

  {
  "traceId": "1740263902",
  "code": 0,
  "msg": "request success",
  "module": null,
  "stacktrace": null,
  "result": {
    "isRequiredVerify": true,
    "accountID": "##_REDACTED_##",
    "avatarIcon": "https://image.vesync.com/defaultImages/user/avatar_nor.png",
    "birthday": "",
    "gender": "",
    "acceptLanguage": "cs",
    "userType": "1",
    "nickName": "REDACTED",
    "mailConfirmation": true,
    "termsStatus": true,
    "gdprStatus": true,
    "countryCode": "CZ",
    "registerAppVersion": "5.5.10",
    "registerTime": "2025-01-16 13:20:35",
    "verifyEmail": "##_REDACTED_##",
    "heightCm": 0.0,
    "weightTargetSt": 0.0,
    "heightUnit": "FT",
    "heightFt": 0.0,
    "weightTargetKg": 0.0,
    "weightTargetLb": 0.0,
    "weightUnit": "KG",
    "targetBfr": 0.0,
    "displayFlag": [],
    "real_weight_kg": 0.0,
    "real_weight_lb": 0.0,
    "real_weight_unit": "lb",
    "heart_rate_zones": 0.0,
    "run_step_long_cm": 0.0,
    "walk_step_long_cm": 0.0,
    "step_target": 0.0,
    "sleep_target_mins": 0.0,
    "token": "##_REDACTED_##"
  }
}

2025-02-22 23:38:23,297 - DEBUG - Login successful
2025-02-22 23:38:23,297 - DEBUG - token REDACTED
2025-02-22 23:38:23,297 - DEBUG - account_id REDACTED
2025-02-22 23:38:23,297 - DEBUG - =======call_api=============================
2025-02-22 23:38:23,297 - DEBUG - [post] calling '/cloud/v1/deviceManaged/devices' api
2025-02-22 23:38:23,297 - DEBUG - API call URL:
  https://smartapi.vesync.com/cloud/v1/deviceManaged/devices
2025-02-22 23:38:23,297 - DEBUG - API call headers:
  {
  "Content-Type": "application/json; charset=UTF-8",
  "User-Agent": "okhttp/3.12.1"
}
2025-02-22 23:38:23,297 - DEBUG - API call json:
  {
  "timeZone": "CET",
  "acceptLanguage": "en",
  "accountID": "##_REDACTED_##",
  "token": "##_REDACTED_##",
  "appVersion": "2.8.6",
  "phoneBrand": "REDACTED",
  "phoneOS": "Android",
  "traceId": "1740263903",
  "method": "devices",
  "pageNo": "1",
  "pageSize": "100"
}
2025-02-22 23:38:23,680 - DEBUG - API response: 

  {
  "traceId": "1740263903",
  "code": 0,
  "msg": "request success",
  "module": null,
  "stacktrace": null,
  "result": {
    "total": 1,
    "pageSize": 100,
    "pageNo": 1,
    "list": [
      {
        "deviceRegion": "EU",
        "isOwner": true,
        "authKey": null,
        "deviceName": "Zvlhcovac",
        "deviceImg": "https://image.vesync.com/defaultImages/LEH-S601S-WUS/icon_LEH_S601S_WUS_240.png",
        "cid": "##_REDACTED_##",
        "deviceStatus": null,
        "connectionStatus": null,
        "connectionType": "WiFi+BTOnboarding+BTNotify",
        "deviceType": "LEH-S601S-WEUR",
        "type": "wifi-air",
        "uuid": "##_REDACTED_##",
        "configModule": "VS_WFON_AHM_LEH-S601S-WEUR_EU",
        "macID": "##_REDACTED_##",
        "mode": null,
        "speed": null,
        "currentFirmVersion": null,
        "subDeviceNo": null,
        "subDeviceType": null,
        "deviceFirstSetupTime": "Jan 16, 2025 1:23:11 PM",
        "subDeviceList": null,
        "extension": null,
        "deviceProp": {
          "autoDryingSwitch": 1,
          "dryingState": 2,
          "wifiMac": "30:30:f9:f8:78:b8",
          "targetHumidity": 60,
          "powerSwitch": 1,
          "mistLevel": 1,
          "connectionStatus": "online",
          "screenSwitch": 1,
          "virtualLevel": 1,
          "wifiRssi": -64,
          "childLockSwitch": 0,
          "BTMac": "30:30:f9:f8:78:ba",
          "waterShortageDryingSwitch": 1,
          "workMode": "sleep",
          "dryingLevel": 1,
          "waterLacksState": 0,
          "filterLifePercent": 74,
          "humidity": 63
        }
      }
    ]
  }
}

2025-02-22 23:38:23,681 - DEBUG - New device list initialized
2025-02-22 23:38:23,681 - DEBUG - Unknown device named Zvlhcovac model LEH-S601S-WEUR
2025-02-22 23:38:23,681 - DEBUG - Error - 'VeSync' object has no attribute 'unknown'
2025-02-22 23:38:23,681 - DEBUG - LEH-S601S-WEUR device not added
2025-02-22 23:38:23,681 - DEBUG - Start updating the device details one by one
@cdnninja
Copy link
Contributor

Created #307

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

2 participants