lovelace-xiaomi-vacuum-map-card
lovelace-xiaomi-vacuum-map-card copied to clipboard
Use rooms from Mi app
Description
Is possible to use room list from official application? Can vacuum use command with name of room?
Solution
I am not sure
Alternatives
No response
Context
No response
The card can't connect to Xiaomi servers, it can only utilize data forum HA entities. I plan to add using room info from Map Extractor
That would be awesome. Adding
attributes:
- calibration_points
- room_numbers
- rooms
- map_name
to xiaomi_cloud_map_extractor gives nice room info.
rooms:
'1':
x0: -5874.999705702066
y0: -1475.000057369471
x1: -2374.9996535480022
y1: 1524.9999873340125
name: Jadalnia
'y': null
'2':
x0: -5374.999698251486
y0: -9075.000170618296
x1: -2124.999649822712
y1: -6825.000137090684
name: Garaż
'y': null
Please also consider providing support for Roidmi room call action. Params are:
aiid: 1
did: did
siid: 14
params: [2,"{\"mapId\":0,\"segmentId\":[1,5,2]}"]
Also map_name seems to bo always 0 - found in code that this is default value, maybe for roidmi it is looking a bit different ? how can I help ?
Xiaomi gateway 3 integration provides room numbers from xiaomi cloud api
I've found that i can pin some service calls to abstract rooms on plan with current version of vacuum card Should i create areas manually or info about room boundings could be gathered from xiaomi cloud as well?
@luzik map_name
is useful only for vacuums that use Xiaomi API, as map name is retrieved from the vacuum itself. Other models do not use such functionality.
@Alxspb right now no info room info is taken from Map Extractor
Just migrated to the new V2 version and I second this proposal. Room information is already provided by xiaomi_cloud_map_extractor, and so far I have not been able to configure rooms, slowly digesting the docs.
It would be even more useful if room cleaning is provided as an entity to make use of it in scripts. Currently, i need to double the config.
@Lyr3x how would you like it to work?
I would love to see this work. I cannot seem to get any measurements working with my map to use any of the point or zone cleaning functions so if it was able to get the data from the map that is extracted and contains all of this info somehow it would be great. Happy to help in anyway testing and or anyway I can.
So what I currently do is:
- Configure the Vacuum Card for manual interaction
- Replicate all rooms to separate scripts to trigger room cleaning in automations. I do automated cleanings in various rooms.
Not a big deal, but it would be nice if e.g the map extractor could expose entities (switches) to start segment cleaning for each room. The card could then use those entities instead of using its own configuration.
Just an idea :) love the card anyway
@Lyr3x I was asking mostly about this part:
It would be even more useful if room cleaning is provided as an entity to make use of it in scripts.
And the last section was my answer to your question. Wanted to give some context.
Currently you need to specify the segment cleaning in the card config. If the map extractor could provide a complete per room entity with
- Outline
- Id
- Name?
a User can use this entity itself to start room cleaning from everywhere (scripts, automations etc. ) and also the card could use the same entities to provide the nice interface.
I currently run scripts and automations where I start specific room cleaning at certain times and if somebody is not in the specific room etc.
Does that make sense?
@Lyr3x how would you like it to work?
They way I picture it, is somethin similar to how calibration points work. If you have the Cloud Map Extractor, then you can reference the card room configuration to the Cloud Map Extractor entity. I would expect this to be enough for it to auto populate the card with the Array of names of rooms and do it's magic on the background. Room name and room name position might be manually overwritten for more ivested users, maybe the card or Cloud Map Extractor could provide the base YAML output for those who want to modify it.
I will try to add it, but I don't want to add all these values to Cloud Map Extractor entity attributes, because it increases DB/memory load. I have an idea how to do it, but it requires some adjustments from both card and Map Extractor
Just migrated to the new V2 version and I second this proposal. Room information is already provided by xiaomi_cloud_map_extractor, and so far I have not been able to configure rooms, slowly digesting the docs.
Hey, did you manage to get rooms configured and if so how did you do it?
Any news on this ?
Reflection: I do believe that map extractor and Lovelace-xiaomi-vacoom-map-card someday should become one HA integration that also supports all actions by itself, or provide builtin integration with wider supported vacuum project like https://github.com/al-one/hass-xiaomi-miot
One vacuum integration to rule them all :)
@luzik nope, not yet.
Reflection:
Map extractor is an integration, while map card is a custom Lovelace card, so they operate in different areas. Additionally, while they are "made for each other", it's possible to use each of them separately (I plan for map card to include support for vacuums from different manufacturers, like Neato or Roomba)
Hi I just wanted to see where this was at? Currently wanted to set this up but rooms are giving me a little trouble
I think that I will just stick with this approach: https://github.com/PiotrMachowski/lovelace-xiaomi-vacuum-map-card/discussions/317
Feature added in v2.1.0