|
@@ -28,6 +28,12 @@ trigger:
|
|
id: SKIP
|
|
id: SKIP
|
|
to: SKIP
|
|
to: SKIP
|
|
enabled: true
|
|
enabled: true
|
|
|
|
+ - platform: state
|
|
|
|
+ entity_id:
|
|
|
|
+ - sensor.floppy_player_device_status
|
|
|
|
+ id: RADIO
|
|
|
|
+ to: RADIO
|
|
|
|
+ enabled: true
|
|
condition: []
|
|
condition: []
|
|
action:
|
|
action:
|
|
- if:
|
|
- if:
|
|
@@ -71,4 +77,17 @@ action:
|
|
entity_id:
|
|
entity_id:
|
|
- media_player.ytube_music_player
|
|
- media_player.ytube_music_player
|
|
data: {}
|
|
data: {}
|
|
|
|
+ - if:
|
|
|
|
+ - condition: trigger
|
|
|
|
+ id:
|
|
|
|
+ - RADIO
|
|
|
|
+ then:
|
|
|
|
+ - alias: RadioOnSong
|
|
|
|
+ sequence:
|
|
|
|
+ - service: media_player.play_media
|
|
|
|
+ data:
|
|
|
|
+ media_content_id: |
|
|
|
|
+ {{state_attr("media_player.ytube_music_player","videoId") }}
|
|
|
|
+ media_content_type: vid_channel
|
|
|
|
+ entity_id: media_player.ytube_music_player
|
|
mode: single
|
|
mode: single
|