daily pastebin goal
33%
SHARE
TWEET

Untitled

a guest Dec 15th, 2018 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - alias: "TEL-Radio Deejay ON"
  2.   trigger:
  3.       platform: event
  4.       event_type: telegram_callback
  5.       event_data:
  6.         data: '/command2'
  7.   condition:
  8.     - condition: state
  9.       entity_id: media_player.gh_mini
  10.       state: 'off'
  11.   action:
  12.         -  service: media_player.play_media
  13.            data_template:
  14.              entity_id: media_player.gh_mini
  15.              media_content_id: http://radiodeejay-lh.akamaihd.net/i/RadioDeejay_Live_1@189857/master.m3u8
  16.              media_content_type: 'audio/mp4'
  17. - alias: "TEL-Radio Deejay OFF"
  18.   trigger:
  19.       platform: event
  20.       event_type: telegram_callback
  21.       event_data:
  22.         data: '/command2'
  23.   condition:
  24.     - condition: state
  25.       entity_id: media_player.gh_mini
  26.       state: 'playing'
  27.   action:
  28.         -  service: media_player.turn_off
  29.            data_template:
  30.              entity_id: media_player.gh_mini
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand