phairplay
(Phairplay)
1
hi guys,
could someone please help with the below script. the first part works but playing music doesnt
workout:
sequence:
- service: remote.turn_on
data:
entity_id: remote.living_room
activity: 26938779
- service: media_player.volume_set
entity_id: media_player.main_gh
data:
volume_level: 0.5
- service: tts.google_say
entity_id: media_player.main_gh
data:
media_content_id: /local/sounds/workout.mp3
media_content_type: 'music'
dawiyo
2
You have the last service as tts.google_say. It needs to be media_player.play_media.
1 Like
phairplay
(Phairplay)
3
Doh!
Of course I copied from one of my other scripts
Thank you
keithh666
(Keith Hull)
4
Your indents are up the creek as well everything needs 2 spaces, not sometimes 1 sometimes 2 sometimes 3
phairplay
(Phairplay)
5
That’s odd
It must be the way I posted it. I changed the TTS.google.say and changed the content I’d to my full web address and it works