i tried googling what i wanted… and i not sure if i did right… i trying to pass Variables. so i can change the Card and just change 1 2 variables instead of searching and replacing it all… its to do remote controls this is the code i got so far
but doesnt it like
type: custom:generic-remote-control-card
name: VIZIO Bell RECEIVER
remote_template: samsungtv
button_card_templates:
variables:
TV_name: TV_VIZIO
Satellite: Satellite
Remote: remote.broadlink_rm4_pro_bedroom
buttons:
power:
call: remote.send_command
data:
- entity_id: '[[[ return variables.Remote]]]'
command: POWER
device: '[[[ return variables.Satellite]]]'
one:
call: remote.send_command
data:
- entity_id: '[[[ return variables.Remote]]]'
command: 1
device: '[[[ return variables.Satellite]]]'
two:
call: remote.send_command
data:
- entity_id: '[[[ return variables.Remote]]]'
command: 2
device: '[[[ return variables.Satellite]]]'
volplus:
call: remote.send_command
data:
- entity_id: '[[[ return variables.Remote]]]'
command: VOLUME UP
device: '[[[ return variables.TV_name]]]'
volmin:
call: remote.send_command
data:
- entity_id: '[[[ return variables.Remote]]]'
command: VOLUME DOWN
device: '[[[ return variables.TV_name]]]'