AV Remote Card

Last updated 2 months ago

This card requires you to install and setup the following components:

Once harmony is set up, open [HUB_NAME].conf (located at the root of your config folder). Here you will find a listing of all the devices and the commands they can issue. Each device starts with something like: 53209424 - LG TV. The number on the left is the device code for that device. You will utilize tap_action to send the command. A service block looks like this:

service_data:
"entity_id": "remote.joehubz"
"device": "53209424"
"command": "Mute"

Swap your device code and command name to customize for your AV setup.

Finally, switch out the entity for some dormant binary sensor in your system. In the example below, I used my front_door sensor.

Change the icons and device codes to your own.

ui-lovelace.yaml
- type: vertical-stack
cards: !include remotes/lg.yaml
remotes/lg.yaml
- type: glance
title: LG Remote
show_state: false
entities:
# power row
- entity: binary_sensor.front_door
icon: mdi:power
name:
tap_action: call-service
service: media_player.toggle
service_data:
entity_id: media_player.lg_tv
- entity: binary_sensor.front_door
icon: mdi:web
name:
tap_action: call-service
service: media_player.select_source
service_data:
entity_id: media_player.lg_tv
source: "Web Browser"
- entity: binary_sensor.front_door
icon: mdi:netflix
name:
tap_action: call-service
service: media_player.select_source
service_data:
entity_id: media_player.lg_tv
source: "Netflix"
- entity: binary_sensor.front_door
icon: mdi:television-box
name:
tap_action: call-service
service: media_player.select_source
service_data:
entity_id: media_player.lg_tv
source: "Tivo"
- entity: binary_sensor.front_door
icon: mdi:playstation
name:
tap_action: call-service
service: media_player.select_source
service_data:
entity_id: media_player.lg_tv
source: "Onkyo"
# top row
- entity: binary_sensor.front_door
icon: mdi:volume-off
name:
tap_action: call-service
service: remote.send_command
service_data:
"entity_id": "remote.joehubz"
"device": "53209424"
"command": "Mute"
- entity: binary_sensor.front_door
icon: mdi:dots-horizontal-circle
name:
tap_action: call-service
service: remote.send_command
service_data:
"entity_id": "remote.joehubz"
"device": "50336544"
"command": "TiVo"
- entity: binary_sensor.front_door
icon: mdi:chevron-up-box-outline
name:
tap_action: call-service
service: remote.send_command
service_data:
"entity_id": "remote.joehubz"
"device": "50336544"
"command": "DirectionUp"
- entity: binary_sensor.front_door
icon: mdi:play-pause
name:
tap_action: call-service
service: remote.send_command
service_data:
"entity_id": "remote.joehubz"
"device": "50336544"
"command": "Pause"
# - entity: binary_sensor.front_door
# icon: mdi:square-small
# name:
# tap_action: call-service
- entity: binary_sensor.front_door
icon: mdi:television-guide
name:
tap_action: call-service
service: remote.send_command
service_data:
"entity_id": "remote.joehubz"
"device": "50336544"
"command": "Guide"
# middle row
- entity: binary_sensor.front_door
icon: mdi:volume-plus
name:
tap_action: call-service
service: media_player.volume_up
service_data:
entity_id: media_player.lg_tv
- entity: binary_sensor.front_door
icon: mdi:chevron-left-box-outline
name:
tap_action: call-service
service: remote.send_command
service_data:
"entity_id": "remote.joehubz"
"device": "50336544"
"command": "DirectionLeft"
- entity: binary_sensor.front_door
icon: mdi:checkbox-blank-circle-outline
name:
tap_action: call-service
service: remote.send_command
service_data:
"entity_id": "remote.joehubz"
"device": "50336544"
"command": "Select"
- entity: binary_sensor.front_door
icon: mdi:chevron-right-box-outline
name:
tap_action: call-service
service: remote.send_command
service_data:
"entity_id": "remote.joehubz"
"device": "50336544"
"command": "DirectionRight"
- entity: binary_sensor.front_door
icon: mdi:arrow-up-box
name:
tap_action: call-service
service: remote.send_command
service_data:
"entity_id": "remote.joehubz"
"device": "50336544"
"command": "ChannelUp"
# bottom row
- entity: binary_sensor.front_door
icon: mdi:volume-minus
name:
tap_action: call-service
service: media_player.volume_down
service_data:
entity_id: media_player.lg_tv
- entity: binary_sensor.front_door
icon: mdi:keyboard-backspace
name:
tap_action: call-service
service: remote.send_command
service_data:
"entity_id": "remote.joehubz"
"device": "50336544"
"command": "Back"
- entity: binary_sensor.front_door
icon: mdi:chevron-down-box-outline
name:
tap_action: call-service
service: remote.send_command
service_data:
"entity_id": "remote.joehubz"
"device": "50336544"
"command": "DirectionDown"
- entity: binary_sensor.front_door
icon: mdi:fast-forward-outline
name:
tap_action: call-service
service: remote.send_command
service_data:
"entity_id": "remote.joehubz"
"device": "50336544"
"command": "Advance"
- entity: binary_sensor.front_door
icon: mdi:arrow-down-box
name:
tap_action: call-service
service: remote.send_command
service_data:
"entity_id": "remote.joehubz"
"device": "50336544"
"command": "ChannelDown"

The 3D floorplan was made using the free website http://www.sweethome3d.com

The black boxes were cut out using the free software from https://www.gimp.org