i want an automation to stop kodi from playing after the news is done but the media_title always shows a different string.
yesterdays title was:
media_title: VTM NIEUWS [COLOR green]•[/COLOR][COLOR vod=“plugin://plugin.video.vtm.go/play/catalog/episodes/a29fada5-9e94-4285-a565-ef177fd6cff9”][/COLOR]
and todays title is:
media_title: VTM NIEUWS [COLOR green]•[/COLOR][COLOR vod=“plugin://plugin.video.vtm.go/play/catalog/episodes/acf9761e-1814-4a0f-82b7-4f8fdb01e42e”][/COLOR]
anyone have any idea how to solve this?
My current automation is:
- id: '1599330700534'
alias: stop playing vtm after news
description: stop playing vtm after news
trigger:
- entity_id: sensor.media_player_title
from: VTM NIEUWS [COLOR green]•[/COLOR][COLOR vod="plugin://plugin.video.vtm.go/play/catalog/episodes/a29fada5-9e94-4285-a565-ef177fd6cff9"][/COLOR]
platform: state
condition: []
action:
- data:
entity_id: media_player.kodi_livingroom
entity_id: media_player.kodi_livingroom
service: media_player.media_stop
mode: single
it would be allot easier if i could just use a wildcard so it looks like this:
- id: '1599330700534'
alias: stop playing vtm after news
description: stop playing vtm after news
trigger:
- entity_id: sensor.media_player_title
from: VTM NIEUWS *wildcard goes here*
platform: state
condition: []
action:
- data:
entity_id: media_player.kodi_livingroom
entity_id: media_player.kodi_livingroom
service: media_player.media_stop
mode: single