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

fix: 131s add modes #267

Merged
merged 3 commits into from
Jan 17, 2025
Merged

fix: 131s add modes #267

merged 3 commits into from
Jan 17, 2025

Conversation

cdnninja
Copy link
Contributor

@cdnninja cdnninja commented Jan 15, 2025

Add mode data to 131 data. It supports, auto, 3 levels sleep and off.

Example from debug logs:

`2025-01-15 16:16:41,494 - DEBUG - API response: 

  {
  "code": 0,
  "msg": "request success",
  "traceId": "1736983000",
  "screenStatus": "off",
  "filterLife": {
    "change": false,
    "useHour": 962,
    "percent": 76
  },
  "activeTime": 351812,
  "timer": null,
  "scheduleCount": 0,
  "schedule": null,
  "levelNew": 0,
  "airQuality": "excellent",
  "level": null,
  "mode": "sleep",
  "deviceName": "Levoit 131S Air Purifier",
  "currentFirmVersion": "2.0.58",
  "childLock": "off",
  "deviceStatus": "on",
  "deviceImg": "https://image.vesync.com/defaultImages/deviceDefaultImages/airpurifier131_240.png",
  "connectionStatus": "online"
}`

@webdjoe
Copy link
Owner

webdjoe commented Jan 16, 2025

Thank you for the PR! Please rebase with the master branch and I will merge.

@cdnninja
Copy link
Contributor Author

Done.

@webdjoe
Copy link
Owner

webdjoe commented Jan 17, 2025

Thank you, merging now. There is one more PR to merge before next release, should be shortly

@webdjoe webdjoe merged commit d6c1f5b into webdjoe:master Jan 17, 2025
5 checks passed
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.

2 participants