First off: big thanks for the integration! I just “smartened” up a speaker with an Arylic Up2Stream Mini, streaming works like a charm! I mainly use it to stream internetradio for my alarm clock. which also works fine, including fade in.
The only thing I am struggling is, that i want to choose the radio station for my alarm clock in lovelace. Up to now I am only able to “hardcode” it in the automation.
So I put three stations in sources:
media_player:
- platform: linkplay
host: 192.168.x.xxx
name: Schlafzimmer_Linkplay
icecast_metadata: 'StationNameSongTitle'
sources:
{
'http://orf-live.ors-shoutcast.at/oe3-q2a': 'OE3',
'http://orf-live.ors-shoutcast.at/oe1-q2a': 'OE1',
'http://orf-live.ors-shoutcast.at/fm4-q2a': 'FM4'
}
It is working, if i set the source like that: Actually it is not, see my next posting.
action:
- service: media_player.volume_set
target:
entity_id: media_player.schlafzimmer_linkplay
data:
volume_level: 0.1
- service: media_player.select_source
data:
source: OE1
target:
entity_id: media_player.schlafzimmer_linkplay
- service: media_player.media_play
target:
entity_id: media_player.schlafzimmer_linkplay
It is not working when i use the input_select.radiosender
I created where I can choose OE3
, OE1
or FM4
.
- service: media_player.select_source
data:
source: {{states('input_select.radiosender')}}
target:
entity_id: media_player.schlafzimmer_linkplay
If I paste {{states('input_select.radiosender')}}
in the templating tool, it returns the current state (OE3, OE1 or FM4
).
Also changing data:
to data_template:
changes nothing…
When I save the automation and open it again it shows like that:
- service: media_player.select_source
data:
source: '[object Object]'
target:
entity_id: media_player.schlafzimmer_linkplay
Any ideas how i could get that working?