yeah, but if the cards need to have all entities spelled out, it simply cant be used embedding an auto-entities.
also, Ive tried to embed it with a template for the entities, but then we can not use the auto-entities with a grid filling button-cards options options…
ill re-write my issue in the config-template-card to a FR, asking to accept globs in the entities field.
I’m trying to set up picture elements card, but the elements are depending on (DOODS) camera recognition output. I set up a sensor that outputs yaml structure of elements that need to be displayed.
On the left is a preview with static elements, and on the right is a config-template-card. I’m having trouble figuring out why it’s not working, but I guess that |- is causing problems.
As you can see on the screenshot I shared, that sensor’s state is a list of elements. The reason behind this is that the number of elements (and their properties) change every few seconds depending on person recognition.
I am not sure this is a JS code.
Only JS may be used in the card.
Try this:
variables:
GetName: |
var strPartName = "input_number.test_negative_";
var strMonth = (new Date()).getMonth()+1;
var strFullName = strPartName + strMonth;
states[strFullName];
because (correct me if I’m wrong) the JS code returns a month as ‘1’, ‘2’, …
I know this gives a wrong result in october (just debugging and trying to find out why nothing is being displayed).
The reason why your initial idea was not working is probably just because of the “0” in front of the month number. So I went back to that idea, and added the “0” for those months before october.
I tested the card with a variable hoping that if I change my input_select it will also update the card, but this is not the case. And this is my problem i need to update the card after i changed the input_select.
here you see that he not changes the card or the value in the card
Dear all, how can I use “templating” to change picture/icon inside the map card??
I’m referring to device_tracker picture/icon.
For example, if state == home > picture1; if state == not_home > picture2
Check the Map card - Map card - Home Assistant
It does not have an option for the entity’s image - so you cannot use the config-template-card for changing the image.
The image is specified in the entity itself (entity_picture).
Try using CUSTOM UI.
please be warned and read the heads-up on custom-ui… I have hope it will be fixable, but have no proof yet, and, am in need of serious assistance there. due to web sockets changes in 2022.4, a view reload is needed for the templates to kick in.