Hi everyone, need some pointers. I have set up a script then setup a button on my dashboard (and an automation). I've tried it and it worked..... at least once lol. Now, however, it'll start and a second later go idle. I can't get it to fire off now, and not sure how to isolate. Here are my bits, perhaps someone can see the galring error?
Script
alias: Play White Noise Loop
sequence:
- target:
entity_id: media_player.home_assistant_voice_90210_media_player
data:
media_content_id: >-
media-source://media_source/local/Unraid/media/music/Sleep/White-Noise-60min.mp3
media_content_type: music
action: media_player.play_media
- wait_template: >-
{{ not is_state('media_player.home_assistant_voice_90210_media_player',
'playing') }}
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 100
- target:
entity_id: script.play_white_noise_loop
action: script.turn_on
data: {}
description: ""
Button:
show_name: true
show_icon: true
type: button
name: Play White Noise
icon: mdi:sleep
tap_action:
action: call-service
service: script.play_white_noise_loop
Any ideas would be super appreciated!