I am struggling to create an automation that plays a playlist from Apple Music on one of my Homepods when I start my work computer. However, I just can’t get it to work.
I tried the below automation but started to comment out some of the services (shown below) to try and work out why it wasn’t working but, even with what I’m left with, the HomePod doesn’t even turn on.
Can anyone please advise where I’m obviously going wrong:
- alias: Workday TEST
id: workday_test
mode: single
trigger:
platform: state
entity_id: device_tracker.my_work_laptop
to: home
action:
- service: media_player.turn_on
entity_id: media_player.office_homepod
# - service: media_player.play_media
# entity_id: media_player.office_homepod
# media_content_id: 'Shazammed'
# media_content_type: playlist
# - service: media_player.volume_set
# entity_id: media_player.office_homepod
# volume_level: 4