humbertogontijo / homeassistant-roborock

Roborock integration for Home Assistant. This integration uses your devices from the Roborock App
GNU General Public License v3.0
665 stars 69 forks source link

Feature: Select program to run #10

Closed robbinonline closed 1 year ago

robbinonline commented 1 year ago

I love this integration first thanks a lot for al the effort. Can you please make an option to choose what program to run: for example Vacuum & Mop or just mop etc.

IMG_1619

JoramHhub commented 1 year ago

I'd love this option too!

manzanita0412 commented 1 year ago

Same here! I wonder if room selection could be added too 🤔

humbertogontijo commented 1 year ago

The mop option is not supported in the xiaomi Lovelace card as far as I know. The room cleaning is already working, just use the "send_command" platform and rename the id for each room from text to numeric(remove the quotes)

robbinonline commented 1 year ago

I think it's possible:

https://github.com/PiotrMachowski/lovelace-xiaomi-vacuum-map-card/issues/422

CalamarBicefalo commented 1 year ago

Hello humberto, this extension is great, thank you very much!

The mop option is not supported in the xiaomi Lovelace card as far as I know. The room cleaning is already working, just use the "send_command" platform and rename the id for each room from text to numeric(remove the quotes)

Would it be possible to document that somewhere?

kristofferR commented 1 year ago

Hello humberto, this extension is great, thank you very much!

The mop option is not supported in the xiaomi Lovelace card as far as I know. The room cleaning is already working, just use the "send_command" platform and rename the id for each room from text to numeric(remove the quotes)

Would it be possible to document that somewhere?

https://github.com/humbertogontijo/homeassistant-roborock/issues/20#issuecomment-1351719468

CalamarBicefalo commented 1 year ago

Hello humberto, this extension is great, thank you very much!

The mop option is not supported in the xiaomi Lovelace card as far as I know. The room cleaning is already working, just use the "send_command" platform and rename the id for each room from text to numeric(remove the quotes)

Would it be possible to document that somewhere?

#20 (comment)

Thank you very much

notorioustubze commented 1 year ago

The mop option is not supported in the xiaomi Lovelace card as far as I know. The room cleaning is already working, just use the "send_command" platform and rename the id for each room from text to numeric(remove the quotes)

Hi, firstly thank you! Your work is amazing. I'm looking at setting up individual room cleaning, would you mind elaborating on your above comment. I've found the "send_command" option but unsure where I would adjust the numeric value. TIA

Screenshot 2022-12-20 at 10 49 52
robbinonline commented 1 year ago

Found it out:

Recap for all the values found to have a short table with all values.

Vacuum_mode:

service: vacuum.send_command
target:
  entity_id: vacuum.*
data:
  command: set_custom_mode
  params: "[{{ vacuum_mode }}]"

Possible vacuum_mode values are: silent: 101 balanced: 102 turbo: 103 max: 104 ‘off’: 105 (to set for only mop) custom: 106

Mopping_mod:

service: vacuum.send_command
target:
  entity_id: vacuum.*
data:
  command: set_water_box_custom_mode
  params: “[{{ mopping_mode }}]”

Possible mopping mode values are: off: 200 low: 201 medium: 202 high: 203 custom: 204

Mopping route (intensity):

service: vacuum.send_command
target:
  entity_id: vacuum.*
data:
  command: set_mop_mode
  params: “[{{ mopping_route }}]”

Possible mopping mode values are: standard: 300 deep: 301 custom: 302 deep+: 303

humbertogontijo commented 1 year ago

I've added these mopping mode and intensity mapping as an attribute to the vacuum entity to be shown in the card(Just english, no translation at this time)

robbinonline commented 1 year ago

For now I have created this card. This card includes 3x a different input_select linked to 3 automations.

This works fine for now :)

Scherm­afbeelding 2022-12-21 om 11 31 24

Example input select:

input_select:
  vacuumscrubintensity:
    options:
      - Off
      - Mild
      - Moderate
      - Intense
    icon:mdi:water

Example automation:

alias: Vacuum - InputSelectScrubIntensity
description: ""
trigger:
  - platform: state
    entity_id:
      - input_select.vacuumscrubintensity
condition: []
action:
  - if:
      - condition: state
        entity_id: input_select.vacuumscrubintensity
        state: "Off"
    then:
      - service: vacuum.send_command
        data:
          command: set_water_box_custom_mode
          params: 200
        target:
          entity_id: vacuum.dustin_bieber
  - if:
      - condition: state
        entity_id: input_select.vacuumscrubintensity
        state: Mild
    then:
      - service: vacuum.send_command
        data:
          command: set_water_box_custom_mode
          params: 201
        target:
          entity_id: vacuum.dustin_bieber
  - if:
      - condition: state
        entity_id: input_select.vacuumscrubintensity
        state: Moderate
    then:
      - service: vacuum.send_command
        data:
          command: set_water_box_custom_mode
          params: 202
        target:
          entity_id: vacuum.dustin_bieber
  - if:
      - condition: state
        entity_id: input_select.vacuumscrubintensity
        state: Intense
    then:
      - service: vacuum.send_command
        data:
          command: set_water_box_custom_mode
          params: 203
        target:
          entity_id: vacuum.dustin_bieber
mode: single
manzanita0412 commented 1 year ago

Sorry if this is a dumb question, but how did you make that custom card? It looks great!

robbinonline commented 1 year ago

Sorry if this is a dumb question, but how did you make that custom card? It looks great!

@manzanita0412

With a custom card vertical-stack-in-card

kristofferR commented 1 year ago

Sorry if this is a dumb question, but how did you make that custom card? It looks great!

@manzanita0412

With a custom card vertical-stack-in-card

Can you please share the code for that card?

humbertogontijo commented 1 year ago

There are services to do this now. Setting mop mode to off will only vacuum, and setting the fan speed to off will only mop. Setting both to other value than off will do both

manzanita0412 commented 1 year ago

There are services to do this now. Setting mop mode to off will only vacuum, and setting the fan speed to off will only mop. Setting both to other value than off will do both

@humbertogontijo , I don't see the fan speed service as something that can be called explicitly:

image

humbertogontijo commented 1 year ago

There are services to do this now. Setting mop mode to off will only vacuum, and setting the fan speed to off will only mop. Setting both to other value than off will do both

@humbertogontijo , I don't see the fan speed service as something that can be called explicitly:

image

It's supported by HA so it's within the vacuum domain: vacuum.set_fan_speed