Hi all
New to HA and playing around with writing YAML. I can get the simple script to say something to my google device, but am trying a fix to remove the annoying casting icon that stays on after. I have the below but get the following error and have no clue what to correct (and neither does MS copilot )
Any help would be appreciated.
Alan
Error on save:
Message malformed: Unable to determine action @ data[‘sequence’][0]
script:
tts_test:
alias: "Testing text to speech"
sequence:
- service: tts.speak
data:
media_player_entity_id: media_player.gh_chef
message: "Testing 1 2 3"
- wait_template: "{{ is_state('media_player.gh_chef', 'idle') }}"
- service: media_player.turn_off
target:
entity_id: media_player.gh_chef