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

Alternate Model # for PUR131 #300

Closed
giuseppebaldi opened this issue Feb 13, 2025 · 2 comments · Fixed by #303
Closed

Alternate Model # for PUR131 #300

giuseppebaldi opened this issue Feb 13, 2025 · 2 comments · Fixed by #303

Comments

@giuseppebaldi
Copy link

It looks like there is an alternate model # RH131S for the PUR131S but I just purchased a unit with model # RH131S-WM, can this be added so it can be supported in Home Assistant? Currently neither the official integration or any of the custom integrations seems to be able to "see" this device.

@webdjoe
Copy link
Owner

webdjoe commented Feb 14, 2025

Can you run pyvesync in a script with the debug=True argument and post the output?

@giuseppebaldi
Copy link
Author

`2025-02-13 22:47:37,459 - DEBUG - New device list initialized
2025-02-13 22:47:37,460 - DEBUG - Unknown device named Bedroom Air Filter model LV-RH131S-WM
2025-02-13 22:47:37,460 - DEBUG - Error - 'VeSync' object has no attribute 'unknown'
2025-02-13 22:47:37,461 - DEBUG - LV-RH131S-WM device not added
2025-02-13 22:47:37,461 - DEBUG - Start updating the device details one by one
2025-02-13 22:47:37,462 - DEBUG - =======call_api=============================
2025-02-13 22:47:37,462 - DEBUG - [post] calling '/cloud/v2/deviceManaged/bypassV2' api
2025-02-13 22:47:37,462 - DEBUG - API call URL:
https://smartapi.vesync.com/cloud/v2/deviceManaged/bypassV2
2025-02-13 22:47:37,463 - DEBUG - API call headers:
{
"Content-Type": "application/json; charset=UTF-8",
"User-Agent": "okhttp/3.12.1"
}
2025-02-13 22:47:37,463 - DEBUG - API call json:
{
"timeZone": "America/New_York",
"acceptLanguage": "en",
"accountID": "##REDACTED##",
"token": "##REDACTED##",
"appVersion": "2.8.6",
"phoneBrand": "SM N9005",
"phoneOS": "Android",
"traceId": "1739508457",
"method": "bypassV2",
"debugMode": false,
"deviceRegion": "US",
"cid": "##REDACTED##",
"deviceId": "vsaq1cc8d594bc3843f18a93769d4569",
"configModule": "VS_WFON_APR_LAP-V201S-WUS_US",
"configModel": "VS_WFON_APR_LAP-V201S-WUS_US",
"payload": {
"method": "getPurifierStatus",
"source": "APP",
"data": {}
}
}
2025-02-13 22:47:37,811 - DEBUG - API response:

{
"traceId": "1739508457",
"code": 0,
"msg": "request success",
"module": null,
"stacktrace": null,
"result": {
"traceId": "1739508457",
"code": 0,
"result": {
"powerSwitch": 1,
"filterLifePercent": 93,
"workMode": "auto",
"manualSpeedLevel": 2,
"diySpeedLevel": 1,
"fanSpeedLevel": 0,
"AQLevel": 1,
"PM25": 1,
"screenState": 0,
"childLockSwitch": 0,
"screenSwitch": 0,
"lightDetectionSwitch": 1,
"environmentLightState": 1,
"autoPreference": {
"autoPreferenceType": "default",
"roomSize": 0
},
"scheduleCount": 0,
"timerRemain": 0,
"efficientModeTimeRemain": 0,
"sensorCalibration": {
"calibrationId": 0,
"remainTime": 70,
"totalTime": 70,
"status": 0
},
"sleepPreference": {
"sleepPreferenceType": "default",
"cleaningBeforeBedSwitch": 1,
"cleaningBeforeBedSpeedLevel": 3,
"cleaningBeforeBedMinutes": 5,
"whiteNoiseSleepAidSwitch": 1,
"whiteNoiseSleepAidSpeedLevel": 1,
"whiteNoiseSleepAidMinutes": 45,
"duringSleepSpeedLevel": 5,
"duringSleepMinutes": 480,
"afterWakeUpPowerSwitch": 1,
"afterWakeUpWorkMode": "auto",
"afterWakeUpFanSpeedLevel": 1
},
"errorCode": 0
}
}
}

2025-02-13 22:47:37,812 - DEBUG - [DevClass: VeSyncAirBaseV2, Name:Living Room Air Purifier, Device No: None, DevStatus: on, CID: vsaq1cc8d594bc3843f18a93769d4569]
2025-02-13 22:47:37,813 - DEBUG - Living Room Air Purifier

Device Name:.................. Living Room Air Purifier
Model: ....................... LAP-V201S-WUS
Subdevice No: ................ None
Status: ...................... on
Online: ...................... online
Type: ........................ wifi-air
CID: ......................... vsaq1cc8d594bc3843f18a93769d4569
UUID: ........................ 203ff875-61c1-40e7-883d-200ce81c5709
Mode: ........................ auto
Filter Life: ................. 93 percent
Fan Level: ................... 0
Display: ..................... False
Child Lock: .................. False
Night Light: ................. off
Display Config: .............. False
Display_Forever Config: ...... False
Air Quality Level: ........... 1
Air Quality Value: ........... 1 ug/m3
2025-02-13 22:47:37,817 - DEBUG - None
Traceback (most recent call last):
File "C:\Users\giuse\python_test\pyvesync-venv\Scripts\test.py", line 81, in
test_device()
~~~~~~~~~~~^^
File "C:\Users\giuse\python_test\pyvesync-venv\Scripts\test.py", line 31, in test_device
if dev.device_name.lower() == DEVICE_NAME.lower():
^^^^^^^^^^^
NameError: name 'DEVICE_NAME' is not defined
PS C:\Users\giuse\python_test>`

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 a pull request may close this issue.

2 participants