In order to have a more orderly structure, I would like to separate the custom button templates into different files, but the attempts I have made seem not to work.
Yes, only one “Include” line working fine.
My question is if I can divide the templates for different interesting area (climate, irrigation, alarms etc. etc.) on different files and import all separate.
I have slider entity for a heat pump which starts at 0.0 then goes through up to 2.0
I would like to create an entity with buttons instead of using the slider. So button 1 would set 0.0, button 2 would set a value of 1.0 and button 3 a value of 2.0
Any ideas on how? I probably will have to create scripts for each, but not sure how do that.
I’d say step one is to clear cache and reload. If that doesn’t work, step two is installing via HACS (if you haven’t already). There might also be a thread on this somewhere on the forum.
I’ve never encountered that problem myself, but I do remember reading about this problem many times, for various custom cards. Try searching the forum for this error and don’t look only to results for this specific card.
Hi, is it possible to use a condition in a “picture-elements”?
I would like to display a Card based on the selection of a " tap_action" on the image, is this possible?
IMHO it happens due to “variables” object may not be ready yet when addressing a variable inside another variable.
Why a “use var_1 inside a var_2” functionality may be useful?
Imagine a button-card-template with specified “var_2” (could be anything).
Then in descendant templates you will have to re-define the “var_1” to get a new behaviour.