After searching for a nice solution to combine the three I decided to create my own ansible script to build it.
You can find it here.
Get a Raspberry Pi, attach a usb drive, make it boot into a minimal raspbian, use this ansible script and you will end up with a nice media server combined with home assistant.
Hope someone finds it as useful as I do .