#How to use wildcards in conditions

1 messages · Page 1 of 1 (latest)

robust umbra
#
        - condition: state
          entity_id: input_text.openweathermap_condition
          state: "{storm}"

        - condition: state
          entity_id: input_text.openweathermap_condition
          state: "*storm*"

Neither of these work for me. I'm trying to set the condition to true if input_text.openweathermap_condition contains 'storm'.

half pebble
#

You'll have to write a template condition. state condition does not support any kind of wildcard

robust umbra
#
          value_template: "{{ 'storm' in states('input_text.openweathermap_condition') }}"