See attached images.
Tired of juggling remotes and I don't use the TV's native apps..repurposed the LG's app buttons that I don't use to make my dumb remote smart. Home assistant detects the app (ex; Netflix, Disney+) is opened (tv active source/input) and then changes inputs on my tv and hue sync box. for the cctv cams it opens the tv browser to my camera feed http stream. hooray! handwriting by my girlfriend. maybe i can find someone to custom replace these buttons..used acrylic marker on top of black nail polish.
automation:
alias: LG Disney+ override.
description: Redirect to PS5 script.
triggers:
- trigger: state
entity_id:
- media_player.justinsg4lgtv
attribute: source
to: Disney+
conditions: []
actions:
- action: script.turn_tv_on_to_ps5
metadata: {}
data: {}
mode: single
script referenced in automation:
alias: Turn TV on to PS5
sequence:
- metadata: {}
data:
power: true
input: input2
mode: video
sync: true
target:
device_id: 24965629049e31a11ebfbb1057a794f8
enabled: true
action: huesyncbox.set_sync_state
- if:
- condition: state
entity_id: media_player.justinsg4lgtv
state: "off"
then:
- action: remote.send_command
metadata: {}
data:
num_repeats: 1
delay_secs: 0.4
hold_secs: 0
device: lgtv
command: powerbutton
target:
entity_id: remote.broadlink_remote
- wait_for_trigger:
- trigger: state
entity_id:
- media_player.justinsg4lgtv
from: "off"
timeout:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
continue_on_timeout: false
- action: media_player.select_source
metadata: {}
data:
source: HDMI3
target:
entity_id: media_player.justinsg4lgtv
- action: media_player.select_source
metadata: {}
data:
source: HDMI 3
target:
entity_id: media_player.justinsg4lgtv
else:
- action: media_player.select_source
metadata: {}
data:
source: HDMI 3
target:
entity_id: media_player.justinsg4lgtv
- action: media_player.select_source
metadata: {}
data:
source: HDMI3
target:
entity_id: media_player.justinsg4lgtv
mode: single
icon: mdi:set-top-box
description: HDMI 3 (sync box) on TV and HDMI2 (PS5) on Sync Box