-
-
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
Dynamic zones definition / template support for predefined_selections #549
Comments
It is possible to use entities for map_modes:
- template: vacuum_clean_zone_predefined
predefined_selections:
- zones: sensor.all_vacuum_zones
- zones: vacuum.some_vacuum.attributes.zones
- template: vacuum_goto_predefined
predefined_selections:
- zones: sensor.all_vacuum_points
- zones: vacuum.some_vacuum.attributes.points Supported format for [[ 21485, 28767, 24236, 32131 ], [ 23217, 27379, 24216, 28737 ]] Supported format for [[ 21478, 27237 ], [ 23048, 27250 ], [ 23061, 25655 ], [ 21478, 25680 ]] (spaces are not required) |
Thank you. I see but unfortunately this doesn't fit my needs. I hope that in the future it will be possible to specify templates in a wider form :) |
Or maybe it would be possible to extend eg: {
"zones": [
[
28081,
22729,
29793,
27673
],
[
29810,
23798,
32431,
25043
]
],
"label": {
"text": "Hol",
"x": 28937,
"y": 24631
},
"icon": {
"name": "mdi:hanger",
"x": 28937,
"y": 25231
}
} |
@PiotrMachowski i have a question because i have differen bahavior using arrays directly and entering sensor name. If i specify: - zones: [[28081,22729,29793,27673],[29810,23798,32431,25043]]
label:
text: Hol
x: 28937
'y': 24631
icon:
name: mdi:hanger
x: 28937
'y': 25231 I get one zone in map as desired: But if i do: - zones: sensor.rockrobo_valetudo_zones_processed_hall
label:
text: Hol
x: 28937
'y': 24631
icon:
name: mdi:hanger
x: 28937
'y': 25231 where Is there any option to specyfy zones as sensor and get one zone with two segments? Add mayby add additional label and icon config? Thank You! |
No, unfortunately it's not possible at this moment. |
Are these predefined zones working with neato? |
@HabelStefan Neato supports only cleaning based on room ID ( |
Thank you for your quick answer, but when i try to get the coordinate, i only get 4 numbers and not 4 pairs of numbers. |
@HabelStefan you have to create an outline, as described here |
Description
Now
predefined_selections
have to be defined in card definition but it would be great to use data from sensor/template.I use ValetudoRE + valetudo mapper.
ValetudoRE can publish zones, spots data over mqtt, eg.:
Then I use automation to transform zones data and append additional properties:
Then using
custom:config-template-card
i am able to injectpredefined_selections
from my sensor but it doesn't work perfectly. Biggest issue is card flickering/blinking.Solution
Is it possible to add template support to predefined_selections. It would allow to use data from vaccum.
Thank you for you hard work :)
Alternatives
No response
Context
No response
The text was updated successfully, but these errors were encountered: