Skip to content

silentbil/silent-remotes-card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Silent remote controls card for home assistant

  • TV remote control
  • AC remote control

The card was tested with Broadlink, but should work for any other device/service.

Feel free to request features / changes / issues report.

Demo

remoteBell-modified remoteBell-modified

HACS Installation (Preferred option with updates)

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

HACS manual Installation

  • In the HACS Frontend, click the 3 dots in the upper right
  • Click 'Add Custom Repository'
  • Fill in the repo url https://github.com/silentbil/silent-remotes-card and choose 'Lovelace' category.
  • Install the custom card (should now appear in the Frontend)
  • HACS should automatically add the following to your resources:
url: /hacsfiles/silent-remotes-card/silent-remotes-card.js
type: Javascript Module

Adding the Card to the Dashboard

Add a Manual card to the dashboard and enter the YAML to configure it as desired.

Options

Name Description Default Required Values
iconSize Size of the buttons 25 No number
remote remote control name None Yes string
commandsFilePath path of the file with the commands None Yes /folder/file-name.json
theme Theme of style light No light or dark
title Title of the remote None No string
remoteType Type of remote control None Yes tv or ac
callServiceProps Service to call None Yes Object with: domain and service
entity Climate entity id None No string

entity mode (NEW)

You can now simply use a climate entity (using smartIR) and skip the next steps of using external command file.
example:

type: custom:silent-remotes-card
theme: light
title: Electra
remoteType: ac
entity: climate.salon_ac

Command file structure

  • The command file look like smartIr structure, meaning you can download the relevant commands from their device list and use as is.
  • If not using smartIr, the file structre still need to fit the following

TV example file with custom buttons
TV command file example from smartIR
AC command file example from smartIR

Check out smartIR and find your device commands.

Add a command file:

create a json file somewhere inside your www folder. for example: www/my-remotes(create this folder)/tv.json, and paste the commands from the correct file from smartIR, or manually fill the commands yourself.
after that, in the card configuration use: commandsFilePath: /local/my-remotes/tv.json , note that www folder is equal to local
do not create the json file where this card is installed, because after updates it will be deleted

Examples

example1: AC remote

type: custom:silent-remotes-card
remote: remote.broadlink_remote
commandsFilePath: /local/my-remotes/1945.json
theme: light
title: Electra
remoteType: ac
callServiceProps:
  domain: remote
  service: send_command

In this example, AC remote control will be created. Remote device name is: remote.broadlink_remote and the service to send the command is: "remote.send_command". the file with the commands is taken from 1945.json found in the folder.

example2: TV remote

type: custom:silent-remotes-card
remote: remote.broadlink_remote
commandsFilePath: /local/my-remotes/1061.json
theme: dark
title: my samsung tv
remoteType: tv
iconSize: 25
callServiceProps:
  domain: remote
  service: send_command

Releases

No releases published

Packages

No packages published