#Cb card variables.
1 messages · Page 1 of 1 (latest)
Post your current yaml code in here. Preferably text; not a screenshot. Use three back ticks to format code properly. I think I see your problem but want to see what you currently have after the revisions done earlier.
entity: input_select.bs9000
show_name: true
show_icon: true
show_label: true
variables:
var_disc: input_select.bs9000
label: |
[[[
return states[variable.var_disc].state;
]]]```
Last line: it should be variables with an s
But that is kind of redundant because the custom:button-card has a self-defined variable called entity that you can use there. IIRC.
Thank you very much! now it works
Now, try switching from your variable to the built-in variable entity.
Your method is useful from when you want to get the state of a different entity, perhaps for charging state or battery level.
It is just a test. I need to use other entity state for animations. Not my thing, but with your input I can progress further. Thanks again!
could I ask you one last question?
Feel free. I'm heading home from work now. Be on the computer shortly.
Hi, Thanks again for your kind help
this is what I am trying to do
If you have an idea how to get the element to slide from disc to disc? I am driving it from input select at the moment, but struggling with the animation part.
I haven't really ventured into making my own animations. I tend to find premade ones and then tweak them to my liking. There's a couple of posts in the forum for Mushroom cards animations that have a lot of examples. It might be possible to find something that moves around and then it would just be a matter of mapping the positions to the discs.