Replies: 2 comments 2 replies
-
Hi, What do you actually try and accomplish here? The real-world result, of the logic's you're trying to code. With that kind of info, I think it's easier to give you the best recommendation. Provide visual examples too, if possible. I'm unsure about the actual use-case, here. And that's a classic XY Problem. |
Beta Was this translation helpful? Give feedback.
-
Allright. I got an alerts system composed of several alert type: For each alert type I display an icon with a frame with informations. When there is several alerts in the same time, their icons are displayed and only the last alert frame is displayed. My main problem is when an active alert stop the related frame is hidden letting only icons without frame on screen. Actual yaml code is really redundant and if I could use a function that can work with several entities I could compute and so populate elements to display/hide. Sorry for the complexity and thanks for this fantastic code ;) |
Beta Was this translation helpful? Give feedback.
-
I need a way to iterate on several entities in a function to use it like it:
YAML:
function:
My tries show that entities in the function are all entities of HA and not the list from floorplan YAML declaration.
Note that I need to manipulate the declared entities in the same function , not to apply the function to each entities indiviually.
Is it possible to achieve this ?
Beta Was this translation helpful? Give feedback.
All reactions