Roon module for Home Assistant

Hi Marcel,

great extension you built here.

it appears to work on my HASS, but scripts do not work at all.

After following your instructions, I can see the mediaplayer for Roon within HASS and everything I am playing on Roon is correctly shown in HASS and I can also fully control the roon media player component.

However, I would also like to use HASS for playing a radio station from within Roon, but it only runs into an error:

Log Details (ERROR)
Mon Aug 27 2018 13:03:22 GMT+0100 (Western European Summer Time)

Error executing service <ServiceCall media_player.play_media (c:b15d158f232243a19ac5295f5517aeae): media_content_id=1Live, media_content_type=radio, entity_id=[‘media_player.d220’]>
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/core.py”, line 1117, in _event_to_service_call
await service_handler.func(service_call)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/media_player/init.py”, line 442, in async_service_handler
await getattr(player, method[‘method’])(**params)
TypeError: object generator can’t be used in ‘await’ expression

thats the script I defined within HASS:

roon_music:  
  alias: Play Roon Radio
  sequence:
    -  service: media_player.play_media
       entity_id: media_player.d220
       data_template:
         media_content_id: 1Live
         media_content_type: radio

I tried, using quotes around id and type as well. And as content_id I am using the name of the station as mentioned within Roon -> Internet Radio -> 1Live (Name of the station):