input_boolean:
testmp3:
name: Play test mp3 on office speaker
initial: off
automation:
- alias: PlayTest
trigger:
platform: state
entity_id: input_boolean.testmp3
to: on
action:
service: media_player.play_media
data:
entity_id: media_player.office_speaker
media_content_id: http://http-live.sr.se/p4malmo-mp3-192
media_content_type: audio/mp4
Its the default configuration.yaml with the above added. thank you!
input_boolean:
song:
name: Play Country Music
initial: off
automation:
- alias: Play Song
trigger:
platform: state
entity_id: input_boolean.song
to: "on"
action:
service: media_player.play_media
data:
entity_id: media_player.home_group
media_content_id: http://listen.181fm.com/181-kickincountry_128k.mp3
media_content_type: audio/mp4