Xiaomi miio vacuum room cleaning stopped working after HA update

Hello everyone (My question is on the end)
I use:
HA Core 2024.5.0
HA Supervisor 24.04.4
HA Operating Sys. 12.2
Frontend 20240501.0

I use this integration for the vacuum:
Github URL

I don’t know when it stopped working. We use it less. I have the STY02YM (Vacuum-Mop P)

I updated HA multiple times already. And i only found out now.

This was my working script command:

service: vacuum.vacuum_clean_segment
target:
  entity_id: vacuum.vacumm_viomi
data:
  segments: "{{ room }}"
alias: vacuum room

This doesn’t work now.
I tried this from HA site(Home-Assistant.io):

service: vacuum.send_command
target:
  entity_id: vacuum.vacumm_viomi
data:
  command: app_segment_clean
  params: [11]

The script runs but does nothing. Then i got this error in logs:

First error--------------------------------
Logger: miio.miioprotocol
Source: /usr/local/lib/python3.12/site-packages/miio/miioprotocol.py:240
First Occurred: 10:39:33 (2 výskytov)
Last logged in: 10:42:25

Got error when receiving: timed out

Second error--------------------------------
Logger: custom_components.xiaomi_viomi.vacuum
Source: custom_components/xiaomi_viomi/vacuum.py:254
Integrácia: Xiaomi Viomi Vaccum (dokumentácia, problémy)
First Occurred: 10:39:33 (2 výskytov)
Last logged in: 10:42:25

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

On the other side this works:

service: vacuum.locate
target:
  entity_id:
    - vacuum.vacumm_viomi
data: {}

also this commands/services also are working:
start, return to base, stop, pause

Does somebody have this type of issue? Have anyone a solution? Other repository that works?

Or do i need to modify the service call in some way?

I partly figured it out. I installed “Xiaomi Miot Auto” (link) via HACS. And then i used this commands from HA forum (link):

go to point:

service: vacuum.send_command
target:
  entity_id: vacuum.viomi_v7_51df_robot_cleaner
data: {
  "command": "app_goto_target",
  "params": [1, 1]
}

clean zone:

service: vacuum.send_command
target:
  entity_id: vacuum.viomi_v7_51df_robot_cleaner
data: {
  "command": "app_zoned_clean",
  "params": [[-4, 3, -3, 4, 1]]
}

But i cannot find the command for room cleaning. That worked before.

Do anyone have an idea or a solution?

Thank you.