I’ve been trying to follow a few forum posts but don’t seem to be making much headway.
after a trigger I want a song to play. For testing im just using a light
- alias: play on light trigger: platform: state entity_id: switch.lamp01 state: 'on'
I’ve tried a few variations but can’t get anything to work. I thought maybe the way I was using media_content_id: was wrong so I found a link to a mp3 and tried both. Again between the forum examples and the states example I tried some variations on the media_content_type:
Any help would be great
action: service: media_player.play_media data: entity_id: media_player.osmc media_content_id: //192.168.1.110/Media/Music/Aloe_Blacc/Good_Things/Need_A_Dollar.mp3 media_content_type: MUSIC
and
action: service: media_player.play_media data: entity_id: media_player.osmc media_content_id: //192.168.1.110/Media/Music/Aloe_Blacc/Good_Things/Need_A_Dollar.mp3 media_content_type: audio/mp3
and
action: service: media_player.play_media data: entity_id: media_player.osmc media_content_id: http://www.noiseaddicts.com/samples_1w72b820/280.mp3 media_content_type: MUSIC
and
action: service: media_player.play_media data: entity_id: media_player.osmc media_content_id: http://www.noiseaddicts.com/samples_1w72b820/280.mp3 media_content_type: audio/mp3