-
-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
Describe the solution you'd like
Is it possible to define the default value of a variable, as the value of another variable?
Someting like:
my_template:
default:
- history_entity: '[[entity]]'
card:
type: my_card
entity: '[[entity]]'
tap_action:
action: fire-dom-event
browser_mod:
service: browser_mod.more_info
data:
entity: '[[history_entity]]'
And when I call it withoiut specifying a value for history_entity
it will use the value specified for the entity
variable:
- type: custom:decluttering-card
template: my_template
variables:
- entity: sensor.my_entity
pauldcomanici, igorsantos07 and teskanoo
Metadata
Metadata
Assignees
Labels
No labels