PiotrMachowski / lovelace-xiaomi-vacuum-map-card

This card provides a user-friendly way to fully control map-based vacuums in Home Assistant. Supported brands include Xiaomi (Roborock/Viomi/Dreame/Roidmi/Valetudo/Valetudo RE), Neato, Wyze, Roomba, Ecovacs (and probably more).
MIT License
1.45k stars 249 forks source link

Supoort for Hacky Home assistant support for Xiaomi vacuum STYJ02YM #115

Closed balkonrad closed 2 years ago

balkonrad commented 3 years ago

HI, I'm using this integration to have my STYJ02YM working. Your add-on works in the sense that you can add it to the UI, while sending the robot to the area or trying to clean ends with the message "Command sent" and that's it.

Here's the log:

Logger: custom_components.miio2.vacuum
Source: custom_components/miio2/vacuum.py:294
Integration: miio2 (documentation)
First occurred: 15:58:38 (2 occurrences)
Last logged: 15:59:12

Unable to send command to the vacuum: No response from the device

It is possible to make this working?

PiotrMachowski commented 3 years ago

I think you have mistaken the repos, as this integration doesn't send any commands to a vacuum. Transferring to map-card

PiotrMachowski commented 3 years ago

Currently this card doesn't support Viomi/STYJ02YM vacuums, it should be added soon (#114)

al-one commented 3 years ago

hass-xiaomi-miot support viomi and roborock vacuum for this card.

https://github.com/al-one/hass-xiaomi-miot/commit/214c2d01c5e270e6bb2bbd53b24c5287917c4c65 https://github.com/al-one/hass-xiaomi-miot/commit/9a4f4c519af832ef6a8396d51009cba4ec4fb3c3

hank-droid commented 3 years ago

hass-xiaomi-miot support viomi and roborock vacuum for this card.

al-one/hass-xiaomi-miot@214c2d0 al-one/hass-xiaomi-miot@9a4f4c5

i selected the vacuum entity via the miot integration and i get the following error message on lovelace "Failed to call service vacuum/send_command."

this integration for STYJ02YM allows lan control, while with miot i can only have cloud control @hank-droid @al-one

honkerst commented 2 years ago

I've just encountered this issue too, looking forward to support for the Mop Pro STYJ02YM.

@balkonrad in the meantime I've just added individual buttons for each room, this service call works for the Mop Pro:

service: vacuum.xiaomi_clean_zone
data: {
  "entity_id": "vacuum.robomop",
  "zone": [[4.7, -1.45, 10.6, 1.15]],
  "repeats": 1
}

The HA script looks like this:

  vacuum_living_room:
    alias: "Vacuum the Living Room"
    sequence:
      - service: vacuum.xiaomi_clean_zone
        data:
          entity_id: vacuum.robomop
          repeats: 1
          zone: [[4.7, -1.45, 10.6, 1.15]]

I do miss the Map Card's ability to select multiple rooms and tap the start button though! It was my most used card! (I have another older Xiaomi vacuum which I've now moved upstairs that works perfectly with it) Thanks!

PiotrMachowski commented 2 years ago

New version should be published really soon!

PiotrMachowski commented 2 years ago

Handled in v2.0.0