Select box for select switch entity

I want to make some condition card for on/off some switches. Which switch should be on/off I need select dynamicaly, from the card.

Now I know how to list all entities:

{{ set(states|map(attribute='entity_id')|reject('none'))|list }}

I need filter “switch” entities from the list.

Next step is, how to put the list to select card to select the entity name dynamicaly.

This is what you want:

Looking at your template above it looks like you want all switches so the card filter would be as simple as:

filter:
  include:
    - domain: switch

Thanks for the tip. But it is not exactly, what I need.

I want to make card, which will switch on and off one of switch entities (based on some parrrameters, like time, energy production and so on).
I want to have drop down menu, where I can select which of switches should apply on/off .
So, some of switches will be switch on/off and I want to chose in the drop down menu which one.

Cards are not automations.

You can only select one item from a dropdown. There is no multi-select.