-
-
Notifications
You must be signed in to change notification settings - Fork 252
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
Ecovacs #490
Comments
@bocchinofr can you provide service calls for selected functionalities? |
service: vacuum.send_command
data:
command: spot_area
params:
rooms: 8
cleanings: 1
target:
entity_id: vacuum.arturo service: vacuum.send_command
data:
entity_id: vacuum.Arturo
command: app_zoned_clean
params: [22250,27500,29400,25000,1] service: vacuum.send_command
data:
entity_id: vacuum.arturo
command: app_goto_target
params: [29300, 27300] I hadn’t use the command to clean a point |
Are you sure about last two services? They look exactly the same like ones for Xiaomi vacuums |
Sorry, the right command is : service: vacuum.send_command
target:
entity_id: vacuum.NOME_ROBOT
data:
command: custom_area
params:
coordinates: -1339,-1511,296,-2587 i didn't find the command to going to point or clean a point |
Is it possible to get map from Ecovacs vacuums? |
yes, it is possible. show_state: true |
which integration do you use? |
thanks to the answer :) I use "Deboot 4 home assistant" https://deebot.readthedocs.io/integrations/home-assistant/ |
@bocchinofr @luigistrauss @kotana Could you provide me some info about entities created by Ecovacs integration?
|
@bocchinofr @luigistrauss @kotana Can you check out v2.1.3-beta.3? |
how can i use the beta version ? |
@kotana Map Extractor won't work with your vacuum, so you have to manually figure out where are which coordinates (similarly to this approach). If you don't want to use calibration_source:
identity: true After calibration you can retrieve coordinates to using this guide The other way is to create a feature request in the Ecovacs integration to add calibration points to its map @bocchinofr it's available in HACS when you enable "show beta versions" |
Thanks Piotr,
How can I use the beta version to try it ?
|
After installing you can create a card using following config: type: custom:xiaomi-vacuum-map-card
entity: vacuum.arturo
map_source:
camera: camera.arturo_live_map
calibration_source:
identity: true
vacuum_platform: "DeebotUniverse/Deebot-4-Home-Assistant"
map_modes:
- template: vacuum_clean_segment
predefined_selections:
- id: 2
outline: [[ 10, 10], [ 10, 100], [ 100, 100], [ 100, 10]]
label:
text: "living_room"
x: 50
y: 50
offset_y: 35
icon:
name: "mdi:broom"
x: 50
y: 50
- id: 1
outline: [[ 110, 110], [ 110, 200], [ 200, 200], [ 200, 110]]
label:
text: "corridor"
x: 150
y: 150
offset_y: 35
icon:
name: "mdi:broom"
x: 150
y: 150
- id: 8
outline: [[ 210, 210], [ 210, 300], [ 300, 300], [ 300, 210]]
label:
text: "dining_room"
x: 250
y: 250
offset_y: 35
icon:
name: "mdi:broom"
x: 250
y: 250 Please check if room cleaning works |
I receive error :
Il giorno sab 11 mar 2023 alle 16:54 Piotr Machowski <
***@***.***> ha scritto:
… After installing you can create a card using following config:
type: custom:xiaomi-vacuum-map-cardentity: vacuum.arturomap_source:
camera: camera.arturo_live_mapcalibration_source:
identity: truevacuum_platform: "DeebotUniverse/Deebot-4-Home-Assistant"map_modes:
- template: vacuum_clean_segment
predefined_selections:
- id: 2
outline: [[ 10, 10], [ 10, 100], [ 100, 100], [ 100, 10]]
label:
text: "living_room"
x: 50
y: 50
offset_y: 35
icon:
name: "mdi:broom"
x: 50
y: 50
- id: 1
outline: [[ 110, 110], [ 110, 200], [ 200, 200], [ 200, 110]]
label:
text: "corridor"
x: 150
y: 150
offset_y: 35
icon:
name: "mdi:broom"
x: 150
y: 150
- id: 8
outline: [[ 210, 210], [ 210, 300], [ 300, 300], [ 300, 210]]
label:
text: "dining_room"
x: 250
y: 250
offset_y: 35
icon:
name: "mdi:broom"
x: 250
y: 250
Please check if room cleaning works
—
Reply to this email directly, view it on GitHub
<#490 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYMOSK3FXROUXSEJZOMRSE3W3SN4PANCNFSM6AAAAAARBANVHY>
.
You are receiving this because you were mentioned.Message ID:
<PiotrMachowski/lovelace-xiaomi-vacuum-map-card/issues/490/1464940806@
github.com>
|
@bocchinofr you forgot to attach the error |
Are you sure you have the latest beta version? Can you try changing vacuum platform using visual editor? |
I tried to install manually the beta version.
I copied the .js file in the root config/www and saved file in the
lovalelace resource, but I receive the error “Custom element doesn't exist:
xiaomi-vacuum-map-card.”
How i can install beta version ?
Il giorno sab 11 mar 2023 alle 22:17 Piotr Machowski <
***@***.***> ha scritto:
… Are you sure you have the latest beta version? Can you try changing vacuum
platform using visual editor?
—
Reply to this email directly, view it on GitHub
<#490 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYMOSK73OQVXINVO5C7KSJLW3TTXJANCNFSM6AAAAAARBANVHY>
.
You are receiving this because you were mentioned.Message ID:
<PiotrMachowski/lovelace-xiaomi-vacuum-map-card/issues/490/1465021437@
github.com>
|
@bocchinofr Have you tried to do it using HACS? @kotana can you check if room cleaning and zone cleaning work for you? |
Using Hacs it is work.
I created the card like your code, the robot clean correctly the room but
there are only 3 rooms and the position isn’t correct.
Thanks a lot
|
@bocchinofr yes, I have configured only 3 rooms and I'm not able to calibrate your map for you. I have created a feature request to add calibration points to Ecovacs integration: |
@PiotrMachowski First of all your card looks amazing and thank you for sharing your work and time :) I must give it a try next week :) I'm the maintainer of the integration and I can give you some feedback about the features. I gave a look at the template file Ecovacs supports only cleaning in all modes twice, so probably Features:
It is also possible to get the coordinates for each room (ex. Is there anything beside the DeebotUniverse/Deebot-4-Home-Assistant#321 that I can help to support my integration? |
@edenhaus Thank you! It took a lot of effort to get it to the current state
Noted, I will update the template
It should work with current version of a template, but I have to add
I have made a script that sends a vacuum to a specific point one by one. It doesn't seem to be useful, I made it mostly just because I could 😃
At this moment it's not possible to do it. I have included a room config generator, but right now it is made specifically for Map Extractor and handles just rectangular outlines. I might improve this functionality to handle outlines as well. Should I create a separate feature request in your repo?
This comment helped a lot, it should be enough at this moment (beside room outlines) |
This is the parameter of the repeats. Possible values are 1 or 2
As my bot doesn't support go to point unfortunately I cannot use but nice idea.
Not sure if I understood you correctly, but I think the "room config generator" is not the solution as it is a one time action. it would be cool that the card reads from a attribute, so the card is updated also when I make changes of the room via the ecovacs app. |
You are correct, but the card can store multiple room configs and automatically (or manually) switch between them, so it shouldn't be a problem (provided that room coordinates doesn't change after changing floor back and there's a sensor that will identify current floor). |
thanks for the work.
I can manually calibrate the map by moving the various rooms to the correct
points.
the version and according to you definitive ? I don't see the map mode
options.
Can the stats be aligned in any other way?
Thanks a lot, the card is very useful
|
There are some scenarios where the coordinates will be updated:
The first 2-3 we could says the user must update the room config manually. But the last point without automatically update would be a pain. |
You don't see them because you have only one map mode configured. Changes specific to Ecovacs are mostly done, but there will be more changes in the upcoming release.
I tried to prevent having too much empty space in the card, but I'll check out if it is doable to make it more regular. @edenhaus {
"room_1_id": {
"name": "Room 1 name",
"icon": "mdi:broom",
"x": 1234,
"y": 5678,
"x0": 1000,
"x1": 2000,
"y0": 5000,
"y1": 6000
},
"room_2_id": {
"name": "Room 2 name",
"icon": "mdi:broom",
"x": 2234,
"y": 4678,
"x0": 2000,
"x1": 3000,
"y0": 4000,
"y1": 5000
},
...
}
I think that |
@PiotrMachowski I will for now create the map calibration data. |
@bocchinofr @edenhaus I have added a new feature to the card: v2.2.0-beta.4 version should display the water amount icon with a menu, could you check if it works on a real data? @edenhaus I want to release the new version soon, are able to estimate the time that you will need to add calibration points to your integration? |
@bocchinofr can you please test with this manual calibration points [
{
"vacuum": {
"x": 0,
"y": 0
},
"map": {
"x": 400,
"y": 400
}
},
{
"vacuum": {
"x": 6400,
"y": 0
},
"map": {
"x": 528,
"y": 400
}
},
{
"vacuum": {
"x": 0,
"y": 6400
},
"map": {
"x": 400,
"y": 528
}
}
] @PiotrMachowski Implementing the code would be quick, only I have currently no time to test it. If @bocchinofr can test it, I can implement it. Another question: The values are static and valid foreach model. Can we add it directly in the template? |
Yes, if they are static I can include them in the card's code |
@edenhaus do the coordinates somehow map to the real-world dimensions? |
@edenhaus added the hard-coded calibration in v2.2.0-beta.6 |
Hi @PiotrMachowski i tried to update but now i see installed the v2.2.0 beta 6. thanks |
@bocchinofr Just install the latest beta version, it doesn't make much sense to try previous betas, as the later the closer to the final version |
@bocchinofr have you found some time to perform a test of a beta version? |
Yes, I have tested the new beta version and it works well.
The water amount is in the menu and it is fine.
I don’t know how to use the code below to calibration.
Il giorno ven 2 giu 2023 alle 05:43 Piotr Machowski <
***@***.***> ha scritto:
… @bocchinofr <https://github.com/bocchinofr> have you found some time to
perform a test of a beta version?
—
Reply to this email directly, view it on GitHub
<#490 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYMOSK3GQXNRLK2JJM5BOITXJFOMNANCNFSM6AAAAAARBANVHY>
.
You are receiving this because you were mentioned.Message ID:
<PiotrMachowski/lovelace-xiaomi-vacuum-map-card/issues/490/1573099056@
github.com>
|
@bocchinofr you don't have to do any calibration now, the card should do everything by itself. Can you try it zone cleaning works for you? |
Yes, I use the configuration like this below and the zone cleaning it works
well
type: custom:xiaomi-vacuum-map-cardentity: vacuum.arturomap_source:
camera: camera.arturo_live_mapcalibration_source: identity:
truevacuum_platform: DeebotUniverse/Deebot-4-Home-Assistantmap_modes:
- template: vacuum_clean_segment
predefined_selections:
- id: 3
outline:
…….
Il giorno ven 2 giu 2023 alle 11:19 Piotr Machowski <
***@***.***> ha scritto:
… @bocchinofr <https://github.com/bocchinofr> you don't have to do any
calibration now, the card should do everything by itself. Can you try it
zone cleaning works for you?
—
Reply to this email directly, view it on GitHub
<#490 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYMOSK7HIO2P3VKFCXIUBB3XJGVYNANCNFSM6AAAAAARBANVHY>
.
You are receiving this because you were mentioned.Message ID:
<PiotrMachowski/lovelace-xiaomi-vacuum-map-card/issues/490/1573421869@
github.com>
|
Done in v2.2.0 |
Hey @PiotrMachowski
Versions tried:Configurations:
|
@Anashost can you create a new bug for your problems? |
@PiotrMachowski ok i will open new issue. |
Integration repository
https://github.com/DeebotUniverse/Deebot-4-Home-Assistant
Supported features
Vacuum entity/entities
Service calls
Other info
Can you add the support for ecovacs?
The text was updated successfully, but these errors were encountered: