-
Hi, Second question of the day... I'm very familiar with the rule to handle multiple elements of the same type, e.g.
However, this is dependent on the SVG elements having the same id as the HA entities. Is it possible to do the same - perform one rule on multiple elements - if their ids are different to the entities? Or do I have to list out each one individually with its own rule, e.g.
I want to understand if there's an easy way to do it before I proceed with creating a function to do this. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
I actually tried to extend this locally yesterday, cause I spotted a need for it. However: I deleted the comment in another other discussion, cause it was too long away from the main question. The short version of your question is: Right? I bet you're able to do it with some magical YAML template mapping, but what would require a plugin/custom-component or similar... But I need to check, how it can be handled in ha-floorplan. Also: +1 to you, for creating a both clean and easily understandable question! |
Beta Was this translation helpful? Give feedback.
-
Yes, I've done it by replacing cliamte with text but I still need to do it for every element/entity pairing, which is why I was thinking a function is the way to go, but I thought I'd ask if there was another way, I was thinking/hoping something like this
|
Beta Was this translation helpful? Give feedback.
I actually tried to extend this locally yesterday, cause I spotted a need for it. However: I deleted the comment in another other discussion, cause it was too long away from the main question.
The short version of your question is:
"Can I use multiple elements for a single (or multiple) entities, and have ha-floorplan to manipulte each element on basis of the provided rule(s)?"
Right?
I bet you're able to do it with some magical YAML template mapping, but what would require a plugin/custom-component or similar... But I need to check, how it can be handled in ha-floorplan.
Also: +1 to you, for creating a both clean and easily understandable question!
It highly improves my tendency to give …