Is there a simpler way to express this in my configuration? I want to prevent the action from triggering when any of these titles are playing but I thought there must be a simple way to combine them into one value_template condition. Or is this already the best way to do it?
- alias: dim_backlight
trigger:
platform: state
entity_id: media_player.kodi
state: 'playing'
condition:
condition: and
conditions:
- condition: template
value_template: "{{ states.media_player.kodi.attributes.media_title != 'theme' }}"
- condition: template
value_template: "{{ states.media_player.kodi.attributes.media_title != 'Fireplace' }}"
- condition: template
value_template: "{{ states.media_player.kodi.attributes.media_title != 'Ocean' }}"
- condition: template
value_template: "{{ states.media_player.kodi.attributes.media_title != 'Forest' }}"
- condition: template
value_template: "{{ states.media_player.kodi.attributes.media_title != 'Rain' }}"
- condition: template
value_template: "{{ states.media_player.kodi.attributes.media_title != 'Rain 2' }}"