Klassik Radio fix & shuffle auf IR remote

This commit is contained in:
Martin Bauer 2019-12-22 21:49:33 +01:00
parent 6474210927
commit e7eb443806
2 changed files with 16 additions and 2 deletions

View File

@ -25,7 +25,7 @@ def get_config():
'btn_7': '[radio] B 5 aktuell',
'btn_8': '[radio] BR-Klassik',
'btn_9': '[playlist] http://opml.radiotime.com/Tune.ashx?id=s25028', # Klassik Radio
'btn_9': '[playlist] http://opml.radiotime.com/Tune.ashx?id=s25028&formats=aac,ogg,mp3', # Klassik Radio
'key_numeric_star': '[radio] Antenne Bayern',
'btn_0': '[radio] Bayern 3',
@ -65,7 +65,7 @@ def get_config():
'btn_7': '[radio] B 5 aktuell',
'btn_8': '[radio] BR-Klassik',
'btn_9': '[playlist] http://opml.radiotime.com/Tune.ashx?id=s25028', # Klassik Radio
'btn_9': '[playlist] http://opml.radiotime.com/Tune.ashx?id=s25028&formats=aac,ogg,mp3', # Klassik Radio
'key_numeric_star': '[radio] Antenne Bayern',
'btn_0': '[radio] Bayern 3',
@ -224,6 +224,16 @@ def default_music_controls(device_group, ir_host):
'trigger': ir_trigger(ir_host, 'key_volumedown'),
'action': service('media_player.volume_down', device_group),
},
{
'alias': f'IR {ir_host} Shuffle On',
'trigger': ir_trigger(ir_host, 'key_menu'),
'action': service('media_player.shuffle_set', device_group, shuffle=True),
},
{
'alias': f'IR {ir_host} Shuffle Off',
'trigger': ir_trigger(ir_host, 'key_exit'),
'action': service('media_player.shuffle_set', device_group, shuffle=False),
},
]

View File

@ -65,3 +65,7 @@ def find_local_radio_url_by_name(search_name):
find_local_radio_url_by_name.stations = get_local_radio_stations()
if __name__ == '__main__':
print(find_local_radio_url_by_name("B 5 aktuell"))