Hi,
i want to get two values out of this media_title:
Robin Schulz - Sugar | RSH - Radio Schleswig-Holstein
value1: Robin Schulz
value2: Sugar
what is the correct string?
value1: {{ states.media_player.radio.attributes.media_title.split(’ - ‘)[0] }} ?
value2: {{ states.media_player.radio.attributes.media_title.split(’ - ')[1] }} ?
And how to delete the Radio-Station from the String?
Thank you very much.