Giter VIP home page Giter VIP logo

Comments (10)

KTibow avatar KTibow commented on July 28, 2024 1

I'm pretty sure that's what the custom actions are for. You could make a script that does that, and have it call that.

from vacuum-card.

denysdovhan avatar denysdovhan commented on July 28, 2024

You're free to open a PR if you need that feature. I'll gladly review that PR.

Unfortunately, I don't have enough time to work on everything.

from vacuum-card.

fi-sch avatar fi-sch commented on July 28, 2024

No problem, I totally get it. If only I know anything about coding in python, I would definitely add that feature :)

from vacuum-card.

denysdovhan avatar denysdovhan commented on July 28, 2024

@fi-sch FYI, this card is 100% in JS.

from vacuum-card.

fi-sch avatar fi-sch commented on July 28, 2024

Thanks. Doesn't matter much to me as I'm no coder at all :/

from vacuum-card.

KTibow avatar KTibow commented on July 28, 2024

I'm fine to add that feature, can you give an example service call?

from vacuum-card.

fi-sch avatar fi-sch commented on July 28, 2024

I'm fine to add that feature, can you give an example service call?

It would be something like example below – 'repeats' parameter is available when using 'xiaomi_miio.vacuum_clean_zone' service. [source: https://www.home-assistant.io/integrations/xiaomi_miio/#xiaomi-mi-robot-vacuum]

    - service: xiaomi_miio.vacuum_clean_zone
      data:
        entity_id: vacuum.xiaomi_vacuum
        repeats: '{{states('input_number.vacuum_passes')|int}}'
        zone: [[30914,26007,35514,28807], [20232,22496,26032,26496]]

from vacuum-card.

KTibow avatar KTibow commented on July 28, 2024

Hmm. Is there a way to tell it to clean all zones? Is zoning already built in?

from vacuum-card.

fi-sch avatar fi-sch commented on July 28, 2024

Zoning seems to be built into the card and I would use repeat feature with zones. I don't use "clean all zones" at all.

I assume that if you would like to use 'repeat' parameter with "clean all" use-case, you would need to pass all the zones into the 'zone' parameter. I suppose that there's no 'repeat' for simple "clean (all)" command, because if you would tell your vacuum to clean a whole apartment multiple times, it would run out of battery before finishing the task.

from vacuum-card.

denysdovhan avatar denysdovhan commented on July 28, 2024

You can pass the number of repeats in the service data.

from vacuum-card.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.