The best I can do so far is point a squeezebox to the stream URL... I've
now got an automation that turns on my amplifier and switches the input
to my Squeezebox Touch whenever a trip the following script...
Code:
--------------------
alias: ABC Radio Perth SB Touch
sequence:
- service: squeezebox.call_method
target:
entity_id: media_player.living_room
data:
command: playlist
parameters:
- play
- http://www.abc.net.au/res/streaming/audio/mp3/local_perth.pls
mode: single
icon: mdi:radio
--------------------
The automation triggers another script that turns on my dumb Cambridge
Audio amp via a Broadlink RM4 Mini and switches the input to the Touch
regardless of the state of the CA amp. I only use two inputs, the Touch
and the Google Chromecast but you could easily tweak this code for many
more inputs
Code:
--------------------
alias: Choose Squeezebox Cambridge Audio
sequence:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.cambridge_audio
state: 'off'
- condition: not
conditions:
- condition: state
entity_id: input_select.cambridge_audio_inputs
state: Squeezebox
sequence:
- service: script.cambridge_audio_select_squeezebox
- conditions:
- condition: state
entity_id: input_boolean.cambridge_audio
state: 'on'
- condition: not
conditions:
- condition: state
entity_id: input_select.cambridge_audio_inputs
state: Squeezebox
sequence:
- service: script.cambridge_audio_select_squeezebox
- conditions:
- condition: state
entity_id: input_boolean.cambridge_audio
state: 'off'
- condition: state
entity_id: input_select.cambridge_audio_inputs
state: Squeezebox
sequence:
- service: script.cambridge_audio_select_squeezebox
default: []
mode: single
icon: mdi:music
--------------------
The input booleans and selects get triggered with the Broadlink
commands, such as...
Code:
--------------------
alias: Cambridge Audio select squeezebox
sequence:
- service: remote.send_command
target:
entity_id: remote.lounge_blaster_remote
data:
command: squeezebox
device: cambridge_audio
- service: input_select.select_option
data:
option: Squeezebox
target:
entity_id: input_select.cambridge_audio_inputs
- service: input_boolean.turn_on
target:
entity_id: input_boolean.cambridge_audio
mode: single
icon: mdi:music
--------------------
When it comes to in-app radio selection triggers, the CLI page does have
directions for such expert-level wizardry... I used to have a Digitally
Imported account for emergency party situations but that was 10 years
ago... Have you tried emailing your preferred app devs for hints?
And if anyone with Pearl credentials is reading this, please...
Please... PLEASE write a Twitch audio stream plugin for us
near-mortals... SoundCloud just doesn't have the DJ draw that it used
to. I demand DJ live stream wizardry or on strike I shall go! See if I
don't...
Wizards of the world unite, you only have your wands to lose!
------------------------------------------------------------------------
malpeli's Profile: http://forums.slimdevices.com/member.php?userid=70891
View this thread: http://forums.slimdevices.com/showthread.php?t=115321
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins