Input Select Template support for `initial`

Hi guys,

I am using an input_select component to select activities on my Harmony Hub remote.

If an Harmony activity is active when Hass starts my input select is in an incorrect state.

It would be great if the initial: value supported templating so I could pull the current activity from the Harmony remote at startup and set the initial value to the current activity.

Similar to how this template sensor works, but doesn’t work for input_select.

 - platform: template
    sensors:
      living_room:
        value_template: '{{ states.remote.living_room.attributes.current_activity }}'
        friendly_name: 'Living Room'

Hopefully I’m not the only one who sees the merit in this and someone with more code skill than I (which is pretty much everyone) can make this change?

Cheers,
AC

Problem I see here is when to actually fill the “initial” e.g. 2 input_select components both use template for initial and refer each other in the template…how would you deal with this?

How about you just set the option once via the service and template after starting hass?

~Cheers

Yeah thats a valid point.

How about you just set the option once via the service and template after starting hass?

Thats what I am trying to achieve with this. How are you proposing to achieve the same result?

Cheers!

You should be able to listen to the start event. Take a look here:

~Cheers

Have you guys managed to do something with the initial_state after all?

Anything today for this? Looking for this as well.