nqkdev / home-assistant-vacuum-styj02ym

163 stars 134 forks source link

Water speed #2

Closed JeedHome44 closed 4 years ago

JeedHome44 commented 4 years ago

Hi,

Is it possible to add the possibility of controlling the speed of water flow when you put a water tank in the robot? There are 3 speeds in the Mi Home app

thank you so much

JeedHome44 commented 4 years ago

can someone say me if it's possible to add speed water?

kovbalazs89 commented 4 years ago

Hi JeedHome44, Yes, there is a parameter of the vacuum's attributes: water_grade

The parameter values are: Low = 11 Medium = 12 High = 13

You can set these, with the vacuum.send_command service in home assistant.

Example to set the water level to high: entity_id: vacuum.mi_vacuum_mop_p command: set_suction params: 13

JeedHome44 commented 4 years ago

hi,

Thank you very much!

I need to do 3 script in Hassio.

1 for low, 1 for medium and 1 for high.

I don't have set_suction command in my Hassio. Where do you find it?

JeedHome44 commented 4 years ago

Where do you see set_suction in vaccum.py file? You have this github in your Hassio?

kovbalazs89 commented 4 years ago

Hi,

this is an example from my scripts.yaml:

'1586105694782':
  alias: Water Level
  sequence:
  - data:
      command: set_suction
      params: 13
    entity_id: vacuum.mi_vacuum_mop_p
    service: vacuum.send_command
JeedHome44 commented 4 years ago

ok thank you i do the same and it's work! Great! :)

sheminasalam commented 3 years ago

@JeedHome44 @kovbalazs89 How are you able to change the mode from vacuuming to mopping and combined vacuuming and mopping? I cant find any code to make that change

JeedHome44 commented 3 years ago

We can't change the mode. it changes depending on the type of tank that is put in!