Overview
OwnTone is the new name of forked-daapd. I was previously using forked-daapd as a way to play music to my HomePods via automations in Home-Assistant.
I wanted a solution to play a sound through our HomePods when someone pressed the doorbell. It seems that OwnTone and Home-Assistant might be able to do this - let’s investigate!
Investigation
The OwnTone docs discuss the API usage and here I’ll demonstrate what I tried using a VM running on 192.168.1.19
:
Clear the queue, add anything of kind “music” and play:
|
|
Get a list of artists:
|
|
‘Justin’s House’ (the only file I have in this test library) is artistID: 8537665808708412949
Get all the albums by artist ‘Justin’s House’:
|
|
The album, ‘CBeebies’ is albumID: 513209088573595807
List the album tracks:
|
|
The track, ‘Who’s at the Door?’ is trackID: 21
Can we play that trackID directly?
|
|
Playing through Home-Assistant
As a rest command in Home-Assistant that would be:
|
|
Putting that into an automation like:
|
|