Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- media_pause:
- alias: Media Pause
- sequence:
- - data:
- command: Pause
- entity_id: remote.harmony
- data_template:
- device: "{% if is_state_attr('remote.harmony', 'current_activity', 'Get-TV')\
- \ %}\n Get GB2\n{% elif is_state_attr('remote.harmony', 'current_activity',\
- \ 'Apple-TV') %}\n Apple TV\n{% else %}\n Windows Computer\n{% endif %}\n"
- service: remote.send_command
- media_play:
- alias: Media Play
- sequence:
- - data:
- command: Play
- entity_id: remote.harmony
- data_template:
- device: "{% if is_state_attr('remote.harmony', 'current_activity', 'Get-TV')\
- \ %}\n Get GB2\n{% elif is_state_attr('remote.harmony', 'current_activity',\
- \ 'Apple-TV') %}\n Apple TV\n{% else %}\n Windows Computer\n{% endif %}\n"
- service: remote.send_command
- media_rewind:
- alias: Media Rewind
- sequence:
- - data:
- entity_id: remote.harmony
- data_template:
- device: "{% if is_state_attr('remote.harmony', 'current_activity', 'Get-TV')\
- \ %}\n Get GB2\n{% elif is_state_attr('remote.harmony', 'current_activity',\
- \ 'Apple-TV') %}\n Apple TV\n{% else %}\n Windows Computer\n{% endif %}\n"
- command: "{% if is_state_attr('remote.harmony', 'current_activity', 'Get-TV')\
- \ %}\n Rewind\n{% elif is_state_attr('remote.harmony', 'current_activity',\
- \ 'Apple-TV') %}\n Rewind\n{% else %}\n SkipBack\n{% endif %}\n"
- service: remote.send_command
- media_forward:
- alias: Media Forward
- sequence:
- - data:
- entity_id: remote.harmony
- data_template:
- device: "{% if is_state_attr('remote.harmony', 'current_activity', 'Get-TV')\
- \ %}\n Get GB2\n{% elif is_state_attr('remote.harmony', 'current_activity',\
- \ 'Apple-TV') %}\n Apple TV\n{% else %}\n Windows Computer\n{% endif %}\n"
- command: "{% if is_state_attr('remote.harmony', 'current_activity', 'Get-TV')\
- \ %}\n FastForward\n{% elif is_state_attr('remote.harmony', 'current_activity',\
- \ 'Apple-TV') %}\n FastForward\n{% else %}\n SkipForward\n{% endif %}\n"
- service: remote.send_command
- media_stop:
- alias: Media Stop
- sequence:
- - data:
- command: Stop
- entity_id: remote.harmony
- data_template:
- device: "{% if is_state_attr('remote.harmony', 'current_activity', 'Get-TV')\
- \ %}\n Get GB2\n{% elif is_state_attr('remote.harmony', 'current_activity',\
- \ 'Apple-TV') %}\n Apple TV\n{% else %}\n Windows Computer\n{% endif %}\n"
- service: remote.send_command
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement