#Hooking up preamp to HA via Broadcom IR in an elegant way

1 messages · Page 1 of 1 (latest)

hasty garnet
#

Hi. I want to "connect" my preamp to Home Assistant using IR. The good thing is that the amp only has unistate (as opposite to toggle) IR commands. The thing is that i want to make it via UI and in an elegant way.
So far i have done template switches for power, mute and other on/off commands. Looks beautiful.
The problem is with multistate switches (for example preamp inputs or surround mode). I was hoping that i can template input select in the same way as i am templating switches in HA, but looking at the UI it is completely different and im not sure how to even start

worldly dagger
#

Template a list of options, template the state which should be one of the options, then use the proper actions for on select.

#

Don’t use device actions as they are currently broken in template entities.

hasty garnet
#

so i need to create a script for each of the possible values?

worldly dagger
#

no, you can perform all the logic in the on select actions

hasty garnet
#

would you be able to share a screenshot of a working template select if you have one?

#

i just cant wrap my head around it

#

its probably some stupid assumption engraved in my mind