Use wildcard in trigger

HI All,

Will be nice to use wildcards in trigger. So you don’t have to make all kind script constructions to let it work.

- alias: "Example"
  trigger:
    - platform: state
      entity_id: switch.*
      to: "on"
- alias: "Example"
  trigger:
    - platform: state
      entity_id: switch.*_1
      to: "on"
- alias: "Example"
  trigger:
    - platform: state
      entity_id: sensor.firstpart_*
      to: "on"
- alias: "Example"
  trigger:
    - platform: state
      entity_id: *.light
      to: "on"

etc

Isn’t entity_id template able?

You can do it with Node red using regex.
But it would be nice to have it in yaml also.

Don’t forget to vote your own request

Dupe of Add support for wildcards in automation trigger entity_id?

My question about wildcard is little different. Would be nice to use different way wildcard in trigger.