WTH can't we use wildcards in state triggers

It would be great to have wildcard support in state triggers, so one can simplify automations. The idea would be to trigger on any state change of matching entities.

I.e. Trigger on sensor.tgtg_* :

  trigger:
    - platform: state
      entity_id: sensor.tgtg_*

See also How to get wildcard state triggers

It would more likely be implemented like this to follow previous uses of wildcards:

  trigger:
    - platform: state
      entity_glob: sensor.tgtg_*
3 Likes