PRProd / HA-Firemote

Apple TV, Amazon Fire TV, Fire streaming stick, Chromecast, NVIDIA Shield, onn., Roku, Xiaomi Mi, and Android TV remote control card for Home Assistant
GNU General Public License v3.0
384 stars 65 forks source link

[Feature Request]: Templating Support #387

Open jwagner0789 opened 2 months ago

jwagner0789 commented 2 months ago

Is your feature request related to a problem?

No response

Feature Request

Just curious if button overrides support templating? I have Roku that uses IR to control the TV's input. I'm trying to create a button that will cycle through the physical inputs of the TV via a media_player.select_source call via the TV manufactures integration. However, I need to use a template to select a source based on what the current source is. I can write a script to do this but was just trying not too.

Side note, great card! Saw it on BeardedTinker channel and instantly loaded it. Thanks!

Additional Comments (optional)

No response

PRProd commented 2 months ago

Greetings @jwagner0789!

Thanks for your kind words! BeardedTinker did a great job with that video, didn't he?

Templating support isn't something that's been requested before, but your use case makes a lot of sense. You are absolutely correct that you could write a script to do that, and it might be the best route to take at this time.

Just a curiosity question: I've heard this from a few people, that they'd rather not write a script if it can be avoided. I'm trying to understand the hesitancy. The only thing I can think of is community sharing of YAML vs needing to share YAML and a script. I'm probably missing something obvious. Can you offer any insight for me?

jwagner0789 commented 2 months ago

Ok thanks information and the quick response!

Honestly, its just for simplicity and time. I'm on my mobile more than my computer and if there is an enhancement or bug that needs addressed quickly, its a lot easier and quicker for me to troubleshoot it on my phone by going directly to the location of the card vs having to bounce back and forth between card and script. Hopefully, that makes sense.

PRProd commented 2 months ago

It does! Thanks for enlightening me. :smile:

PRProd commented 3 hours ago

@jwagner0789 ~

I haven't forgotten about this, just been busy with other things. I still want to investigate implementing your ideas. Thanks for your patience and understanding.

-Doug