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(vendor.viomi): Fix consumables and implement reset capability #1367

Merged
merged 1 commit into from Jan 21, 2022
Merged

fix(vendor.viomi): Fix consumables and implement reset capability #1367

merged 1 commit into from Jan 21, 2022

Conversation

adrez99
Copy link
Contributor

@adrez99 adrez99 commented Jan 20, 2022

Type of change

Type A:

  • Bug fix (non-breaking change which fixes an issue)
  • UI Feature
  • Refactor/Code Cleanup
  • Docs
  • Capability implementation for existing core capability
  • New robot implementation

Type B:

  • New capability
  • New core feature

Description (Type A)

  • Values from get_consumables are in hours, not seconds
  • Implement reset by calling set_consumables: at least 2 parameters are expected, first one in consumable index but the others are unknown, so a 0 is passed

Fixes #1061

Feature discussion thread: https://github.com/Hypfer/Valetudo/discussions/1347

Tested only on v8

* Values from get_consumables are in hours, not seconds
* Implement reset by calling set_consumables: at least 2 parameters are expected, first one in consumable index but the others are unknown, so a 0 is passed

I've seen that consumable's lifespan can be greater than 180 (I had 298 hours before doing reset), should the values be updated?
@Hypfer Hypfer merged commit ccfe175 into Hypfer:master Jan 21, 2022
@Kaan88
Copy link

Kaan88 commented Jan 21, 2022

Can confirm that it works on v6 firmware. (converted from v8)

@adrez99 adrez99 deleted the Viomi-consumables branch January 21, 2022 14:49
@adrez99 adrez99 restored the Viomi-consumables branch January 21, 2022 14:49
@adrez99 adrez99 deleted the Viomi-consumables branch January 21, 2022 14:49
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Viomi consumables stats doesn't update
3 participants