-
-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vacuum_clean_segment for default(xiaomiMiio) uses vacuum.send_command instead of documented xiaomi_miio.vacuum_clean_segment #717
Comments
Located the problem here: lovelace-xiaomi-vacuum-map-card/src/model/generators/platform_templates/xiaomiMiio.json Line 16 in 14bc2aa
|
expected (working) event would be:
I'm not sure about where to put (and if it will work) the |
This has been done on purpose as a workaround for a bug in HA. Apparently this workaround doesn't work with all vacuums |
Hmm, found the commit a3e9f48 |
Ok, managed to write a workaround by not using template but static code, should someone else be interested.
with
This works for me. It is then up to you if what you decide to do with this. With my vacuum vacuum.send_command does not seem to work though. |
You can use this workaround instead: - template: vacuum_clean_segment
service_call_schema:
service: xiaomi_miio.vacuum_clean_segment
service_data:
segments: "[[selection]]"
entity_id: "[[entity_id]]"
predefined_selections:
- id: 17
... |
Even better, thanks! |
Checklist
The problem
Despite Documentation when I load up the card and configure rooms, this is what "copy service call" reports (which of course does not work):
It should use
xiaomi_miio.vacuum_clean_segment
and notvacuum.send_command
What version of a card has described problem?
v2.2.2
What was the last working version card?
No response
What vacuum model do you have problems with?
roborock.vacuum.m1s
Which integration do you use to control your vacuum (link)?
https://www.home-assistant.io/integrations/xiaomi_miio/
What browser (browsers/apps) does have this problem?
Edge/Chrome
What version of Home Assistant do you use?
core-2024.2.3
What type of installation are you running?
Home Assistant Container
Card's configuration
Javascript errors shown in the browser's console (if applicable)
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: