Sennevds / media_player.template

Template media_player for Home Assistant
MIT License
126 stars 23 forks source link

About sound mode template #16

Closed darkleliel closed 3 years ago

darkleliel commented 3 years ago

Hi Is there possible adding a "sound mode template" feature? And how about adding a switch for "one button control source" (IR remoted, can not be specified)?

Sennevds commented 3 years ago

I will try to implement sound mode this week! For the second part you push the same button several times to change the input source?

darkleliel commented 3 years ago

I will try to implement sound mode this week! For the second part you push the same button several times to change the input source?

Glad to have your reply! About the second part, that is correct, my speaker source can be change by the "source" button on IR remote, and the source will cycle through several options (usb/aux/bluetooth/etc).

Sennevds commented 3 years ago

You could just add random inputs and every time you change the input you send the same code.

darkleliel commented 3 years ago

OK...I set a string on 'current_source_template' and it works great...XD