Why is the state selector entity_id based and not domain based?

When using the state selector, it wants an entity_id as an example. What happens when that entity_id is no longer available? Why are we forced to choose an entity, when we should just be able to choose a domain.

Hi petro, sorry to hijack. I can’t work out how to make the state selector work.
The docs don’t have an example.

    state_filter_states_test:
      name: State Filter States TEST (Optional)
      description: Enter the states
      selector:
        state:
          entity_id:

vscode keeps saying: image