Automation State Trigger with Entity_globs?

Hey I am trying to be notified when the sensor state changes. I want to automatically add new entites to the list. Here is what I have right now.

alias: test
description: ''
trigger:
  - platform: state
    entity_id:
      - sensor.tgtg_china_restaurant_szetchuan
      - sensor.tgtg_trattoria_sole
      - sensor.tgtg_koshari_time
      - sensor.tgtg_tasty_donuts
      - sensor.tgtg_may_kay
      - sensor.tgtg_koko_mittagsbuffet
      - sensor.tgtg_koko_abendbuffet
      - sensor.tgtg_backwerk_hauptplatz_backwerk_sackerl
      - sensor.tgtg_bowls_pots_by_maykay
      - sensor.tgtg_kaoo_riverside
condition: []
action:
  - choose:
      - conditions:
          - condition: template
            value_template: '{{ trigger.to_state.state | float >= 1 }}'
          - condition: template
            value_template: >-
              {{ trigger.from_state.state | float == 0 or
              trigger.from_state.state == "Unknown" }}
        sequence:
          - service: notify.mobile_app_iphone
            data_template:
              message: '''{{ trigger.from_state.attributes.friendly_name }}'''
              data:
                tag: '''{{ trigger.from_state.attributes.friendly_name }}'''
    default: []
  - choose:
      - conditions:
          - condition: template
            value_template: '{{ trigger.to_state.state | float == 0 }}'
        sequence:
          - service: notify.mobile_app_iphone
            data:
              message: clear_notification
              data:
                tag: '''{{ trigger.from_state.attributes.friendly_name }}'''
    default: []
mode: single 

It works fine but I would like something like this as trigger:

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

Similar to entity_globs with influxdb or with recorder. Is this somehow possible?

No.

So moderators can do replies with less then 10 chars, huh.
Favoritism :joy:

< 10

Nope. <padding>

1 Like

Well a short No is better than no answer at all :smiley:. Searched a little but couldn’t find anything.