diff --git a/apple-tv-remote.psd b/apple-tv-remote.psd new file mode 100644 index 0000000..39f186d Binary files /dev/null and b/apple-tv-remote.psd differ diff --git a/apple-tv-remote_PLUS_MINUS.png b/apple-tv-remote_PLUS_MINUS.png new file mode 100644 index 0000000..0e08808 Binary files /dev/null and b/apple-tv-remote_PLUS_MINUS.png differ diff --git a/apple-tv-remote_PLUS_MINUS_notRounded.png b/apple-tv-remote_PLUS_MINUS_notRounded.png new file mode 100644 index 0000000..573a406 Binary files /dev/null and b/apple-tv-remote_PLUS_MINUS_notRounded.png differ diff --git a/apple-tv-remote_VOL.png b/apple-tv-remote_VOL.png new file mode 100644 index 0000000..e076657 Binary files /dev/null and b/apple-tv-remote_VOL.png differ diff --git a/apple-tv-remote_VOL_notRounded.png b/apple-tv-remote_VOL_notRounded.png new file mode 100644 index 0000000..d1ea681 Binary files /dev/null and b/apple-tv-remote_VOL_notRounded.png differ diff --git a/apple_tv_power.yaml b/apple_tv_power.yaml new file mode 100644 index 0000000..b6ebd02 --- /dev/null +++ b/apple_tv_power.yaml @@ -0,0 +1,15 @@ +alias: Apple TV Power +sequence: + - service: remote.send_command + data: + delay_secs: 1 + command: + - home_hold + - select + target: + entity_id: remote.living_apple_tv + - service: media_player.toggle + data: {} + target: + entity_id: media_player.living_apple_tv +mode: single diff --git a/button_example.png b/button_example.png new file mode 100644 index 0000000..9bf7b3a Binary files /dev/null and b/button_example.png differ diff --git a/eithor_or.png b/eithor_or.png new file mode 100644 index 0000000..0704b10 Binary files /dev/null and b/eithor_or.png differ diff --git a/remote-card.yaml b/remote-card.yaml new file mode 100644 index 0000000..b0957f4 --- /dev/null +++ b/remote-card.yaml @@ -0,0 +1,171 @@ +type: picture-elements +image: /local/resources/apple-tv-remote_PLUS_MINUS.png + +elements: + # Exit ================================= + - type: icon + icon: none + tap_action: + action: navigate + navigation_path: home + style: + top: 6% + left: 14% + transform: translate(-50%, -50%) scale(380%, 380%) + opacity: 0 + # Power ================================= + - type: icon + icon: none + tap_action: + action: call-service + service: script.apple_tv_power + style: + top: 6% + left: 85% + transform: translate(-50%, -50%) scale(380%, 380%) + opacity: 0 + # Up ================================= + - type: icon + icon: none + tap_action: + action: call-service + service: remote.send_command + service_data: + entity_id: remote.living_apple_tv + command: up + style: + top: 23.5% + left: 50% + transform: translate(-50%, -50%) scale(600%, 800%) + opacity: 0 + # Down ================================= + - type: icon + icon: none + tap_action: + action: call-service + service: remote.send_command + service_data: + entity_id: remote.living_apple_tv + command: down + style: + top: 62% + left: 50% + transform: translate(-50%, -50%) scale(600%, 800%) + opacity: 0 + # Left ================================= + - type: icon + icon: none + tap_action: + action: call-service + service: remote.send_command + service_data: + entity_id: remote.living_apple_tv + command: left + style: + top: 42.6% + left: 21% + transform: translate(-50%, -50%) scale(600%, 500%) + opacity: 0 + # Right ================================= + - type: icon + icon: none + tap_action: + action: call-service + service: remote.send_command + service_data: + entity_id: remote.living_apple_tv + command: right + style: + top: 42.6% + left: 79% + transform: translate(-50%, -50%) scale(600%, 500%) + opacity: 0 + # Select ================================= + - type: icon + icon: none + tap_action: + action: call-service + service: remote.send_command + service_data: + entity_id: remote.living_apple_tv + command: select + style: + top: 42.4% + left: 50% + transform: translate(-50%, -50%) scale(400%, 400%) + opacity: 0 + # Home ================================= + - type: icon + icon: none + tap_action: + action: call-service + service: remote.send_command + service_data: + entity_id: remote.living_apple_tv + command: top_menu + hold_action: + action: call-service + service: remote.send_command + service_data: + entity_id: remote.living_apple_tv + command: home_hold + style: + top: 80% + left: 15.5% + transform: translate(-50%, -50%) scale(380%, 380%) + opacity: 0 + # Play/Pause ============================ + - type: icon + icon: none + tap_action: + action: call-service + service: media_player.media_play_pause + service_data: + entity_id: media_player.living_apple_tv + style: + top: 91% + left: 15.5% + transform: translate(-50%, -50%) scale(380%, 380%) + opacity: 0 + # Back ================================= + - type: icon + icon: none + tap_action: + action: call-service + service: remote.send_command + service_data: + entity_id: remote.living_apple_tv + command: menu + style: + top: 85.5% + left: 50% + transform: translate(-50%, -50%) scale(750%, 750%) + opacity: 0 + # Volume Up ============================= + - type: icon + icon: none + tap_action: + action: call-service + service: remote.send_command + service_data: + entity_id: remote.living_apple_tv + command: volume_up + style: + top: 80% + left: 84.5% + transform: translate(-50%, -50%) scale(380%, 380%) + opacity: 0 + # Volume Down =========================== + - type: icon + icon: none + tap_action: + action: call-service + service: remote.send_command + service_data: + entity_id: remote.living_apple_tv + command: volume_down + style: + top: 91% + left: 84.5% + transform: translate(-50%, -50%) scale(380%, 380%) + opacity: 0