-
Notifications
You must be signed in to change notification settings - Fork 49
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
Can Filter and Brush Life be retrieved with SDK? #64
Comments
I poked around a little for this and found this endpoint
which returns {
"code": 1,
"current": 1,
"data": {
"did": "VAC_DID_NUMBER",
"is_online_send": false,
"is_sub_device": false,
"is_update_shadow": false,
"model": "JA_RO2",
"parent_did": null,
"parent_model": null,
"props": {
"filter": 178,
"dishcloth": 0,
"side_brush": 178,
"main_brush": 178
}
},
"hash": "1",
"instance_id": "abcdefghijklmnopqrstuv",
"message": "Success",
"total": 1,
"version": 1
} But the values for filter, side_brush and main_brush don't correlate to what I see in the app: -28hrs, 22hr and 122hrs 🤔🤷♀️ (Also, please don't judge my current filter hours lol I clearly haven't looked at my filters in quite a bit...) |
Ohh, the value returned is the hours used for each component and they just subtract it from their "recommended" max hours of usage main brush: 300 hrs |
I was able to add some semblance of this feature in my fork - See commit here - romedtino@a21c22d If you're interested shaun, I can do a PR of this let me know |
This worked, Thankyou |
I'm working on this now...should have a new version released in a day or so with these changes. @iceman73 @romedtino my plan was something like |
Works for me 👍. |
@romedtino can you check out the branch and see if it suits your needs? After calling
|
Yep! Just tried and it looks good to me
I'll change my side brush soon I promise 😅 |
Like the title states, can this be retrieved from the API?
The text was updated successfully, but these errors were encountered: