vacuum-card icon indicating copy to clipboard operation
vacuum-card copied to clipboard

Custom start / clean command or ability to hide the actions row

Open scottsweb opened this issue 4 years ago • 7 comments

Is your feature request related to a problem? Please describe.

I have a set of input toggles used for choosing the rooms I wish to clean, these then get passed to a script and are used for custom cleaning routines. It is very rare that I do a complete 'clean'. Some more flexibility in the actions row would be useful.

Describe the solution you'd like

It would be nice to have a little more control over the start/clean button or the ability to hide it.

Describe alternatives you've considered

Right now I will probably use a row of custom buttons instead.

Additional context

Custom script can be seen here: https://github.com/scottsweb/ham/blob/master/homeassistant/python_scripts/monk.py

scottsweb avatar Jun 21 '20 16:06 scottsweb

+1 for that :)

fi-sch avatar Jul 03 '20 15:07 fi-sch

You can define a custom action that will run your script. It would be segment clean just like you can do in the app.

krystiancharubin avatar Aug 25 '20 12:08 krystiancharubin

I ended up using CSS to make something that looked like this:

Screenshot 2020-08-25 at 14 32 35

The goal being to remove the default play/clean action as I always want people to be selective about the rooms that are cleaned. It works ok.

scottsweb avatar Aug 25 '20 12:08 scottsweb

@scottsweb can you post the full code for newbies like me? I'm looking for something similar

gytisgreitai avatar Aug 28 '20 21:08 gytisgreitai

@gytisgreitai you can find the UI config here: https://github.com/scottsweb/ham/blob/master/homeassistant/ui-lovelace.yaml#L543, my repo has other things you may find useful too: https://github.com/scottsweb/ham/tree/master/homeassistant

scottsweb avatar Aug 30 '20 16:08 scottsweb

I'll be grateful if someone could try to make a PR. Unfortunately, I don't have time to work on that feature.

denysdovhan avatar Sep 20 '20 19:09 denysdovhan

Here is my setup, using custom scripts. I added the scripts to the custom buttons using these lines in the card config.

actions:
  - name: Kitchen table
    service: script.vacuum_under_kitchen_table
    icon: 'mdi:table-chair'
Skjermbilde 2020-09-23 kl  11 08 13

I have also a script that moves the vacuum to a starting point (silently moving without fan running) before starting to clean the entire house. I then make sure it starts in a spot of the house that we use the most; the kitchen, then it moves to the living room performing its standard clean all house program.

script:
  vacuum_under_kitchen_table:
    alias: "Vacuum under the kitchen table"
    sequence:
      - service: vacuum.send_command
        data:
          entity_id: vacuum.albertinne
          command: app_goto_target
          params: [40300,26200]
      - delay: '00:00:30'     # Wait untill starting moving (not Idle)
      - wait_template: "{{ is_state('vacuum.albertinne', 'idle') }}"
      - service: vacuum.send_command
        data:
          entity_id: vacuum.albertinne
          command: app_zoned_clean
          params: [[40300,24400,43000,26200,1]]
      - service: notify.adults
        data:
          title: chezENGH smarthouse
          message: 'Albertinne started to clean under the kitchen table at {{now().strftime("%H:%M")}}'

palengh avatar Sep 23 '20 09:09 palengh

There hasn't been any activity on this issue recently. This issue has now been marked as stale and will be closed if no further activity occurs. Please, update to the latest version and check if that solves the issue. Thank you for your contributions!

github-actions[bot] avatar Jul 09 '23 20:07 github-actions[bot]

This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.

github-actions[bot] avatar Aug 08 '23 20:08 github-actions[bot]