Helllo All,
I keep getting Error: “Invalid media type: music” under this script,
All I’m trying to do is I have a audio repeat everytime it finishes.
Used “audio/mp3” and still issue
repeat:
until:
- condition: template
value_template: >-
{{ state_attr('media_player.front_bedroom_speaker', 'media_title') !=
'Sound' or states('media_player.front_bedroom_speaker') != 'idle' }}
sequence:
- service: media_player.play_media
data:
media_content_type: music
extra:
title: Zikr
media_content_id: media-source://media_source/media/002.mp3
target:
area_id:
- bedroom
- back_bedroom
- delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
- wait_for_trigger:
- platform: template
value_template: >-
{{ state_attr('media_player.front_bedroom_speaker', 'media_title')
== 'Sound' and is_state('media_player.front_bedroom_speaker', 'idle')
}}
continue_on_timeout: false
timeout:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0