This card requires you to install and setup the following components:
​Logitech Harmony​
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.
If you are still able to "Configure UI" you can drop the code into a new card. If you have taken full manual control, you can !include the remote file. (shown below)
# if you have taken manual control- type: glancecards: !include remotes/lg.yaml
type: glancetitle: LG Remoteshow_state: falseentities:​# power row- entity: binary_sensor.front_dooricon: mdi:powername: ' 'tap_action:action: call-serviceservice: media_player.toggleservice_data:entity_id: media_player.lg_tv- entity: binary_sensor.front_dooricon: mdi:webname: ' 'tap_action:action: call-serviceservice: media_player.select_sourceservice_data:entity_id: media_player.lg_tvsource: "Web Browser"- entity: binary_sensor.front_dooricon: mdi:netflixname: ' 'tap_action:action: call-serviceservice: media_player.select_sourceservice_data:entity_id: media_player.lg_tvsource: "Netflix"- entity: binary_sensor.front_dooricon: mdi:television-boxname: ' 'tap_action:action: call-serviceservice: media_player.select_sourceservice_data:entity_id: media_player.lg_tvsource: "Tivo"- entity: binary_sensor.front_dooricon: mdi:playstationname: ' 'tap_action:action: call-serviceservice: media_player.select_sourceservice_data:entity_id: media_player.lg_tvsource: "Onkyo"​​# top row- entity: binary_sensor.front_dooricon: mdi:volume-offname: ' 'tap_action:action: call-serviceservice: remote.send_commandservice_data:"entity_id": "remote.joehubz""device": "53209424""command": "Mute"- entity: binary_sensor.front_dooricon: mdi:homename: ' 'tap_action:action: call-serviceservice: remote.send_commandservice_data:"entity_id": "remote.joehubz""device": "59364597""command": "Home"- entity: binary_sensor.front_dooricon: mdi:chevron-up-box-outlinename: ' 'tap_action:action: call-serviceservice: remote.send_commandservice_data:"entity_id": "remote.joehubz""device": "53209424""command": "DirectionUp"- entity: binary_sensor.front_dooricon: mdi:play-pausename: ' 'tap_action:action: call-serviceservice: remote.send_commandservice_data:"entity_id": "remote.joehubz""device": "53209424""command": "Pause"- entity: binary_sensor.front_dooricon: mdi:stopname: ' 'tap_action:action: call-serviceservice: remote.send_commandservice_data:"entity_id": "remote.joehubz""device": "59364597""command": "Stop"​​# middle row- entity: binary_sensor.front_dooricon: mdi:volume-plusname: ' 'tap_action:action: call-serviceservice: media_player.volume_upservice_data:entity_id: media_player.lg_tv- entity: binary_sensor.front_dooricon: mdi:chevron-left-box-outlinename: ' 'tap_action:action: call-serviceservice: remote.send_commandservice_data:"entity_id": "remote.joehubz""device": "53209424""command": "DirectionLeft"- entity: binary_sensor.front_dooricon: mdi:checkbox-blank-circle-outlinename: ' 'tap_action:action: call-serviceservice: remote.send_commandservice_data:"entity_id": "remote.joehubz""device": "53209424""command": "OK"- entity: binary_sensor.front_dooricon: mdi:chevron-right-box-outlinename: ' 'tap_action:action: call-serviceservice: remote.send_commandservice_data:"entity_id": "remote.joehubz""device": "53209424""command": "DirectionRight"- entity: binary_sensor.front_dooricon: mdi:rewindname: ' 'tap_action:action: call-serviceservice: remote.send_commandservice_data:entity_id: remote.joehubzdevice: '59364597'command: Rewind​​# bottom row- entity: binary_sensor.front_dooricon: mdi:volume-minusname: ' 'tap_action:action: call-serviceservice: media_player.volume_downservice_data:entity_id: media_player.lg_tv- entity: binary_sensor.front_dooricon: mdi:undoname: ' 'tap_action:action: call-serviceservice: remote.send_commandservice_data:entity_id: "remote.joehubz"device: "59364597"command: "Back"- entity: binary_sensor.front_dooricon: mdi:chevron-down-box-outlinename: ' 'tap_action:action: call-serviceservice: remote.send_commandservice_data:"entity_id": "remote.joehubz""device": "53209424""command": "DirectionDown"- entity: binary_sensor.front_dooricon: mdi:redoname: ' 'tap_action:action: call-serviceservice: remote.send_commandservice_data:"entity_id": "remote.joehubz""device": "59364597""command": "SkipForward"- entity: binary_sensor.front_dooricon: mdi:fast-forwardname: ' 'tap_action:action: call-serviceservice: remote.send_commandservice_data:"entity_id": "remote.joehubz""device": "59364597""command": "FastForward"