Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/silentbil/silent-remotes-card

Remotes control card for home assistant
https://github.com/silentbil/silent-remotes-card

broadlink card hacs homeassistant remote remote-control smartir

Last synced: 8 days ago
JSON representation

Remotes control card for home assistant

Awesome Lists containing this project

README

        

# 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](https://github.com/silentbil/silent-remotes-card/blob/main/demo1.png)
![remoteBell-modified](https://github.com/silentbil/silent-remotes-card/blob/main/demo2.png)

## 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](https://github.com/silentbil/silent-remotes-card/blob/main/command-examples/tv-command-example.json)

[TV command file example from smartIR](https://github.com/smartHomeHub/SmartIR/blob/master/codes/media_player/1060.json)

[AC command file example from smartIR](https://github.com/smartHomeHub/SmartIR/blob/master/codes/climate/1943.json)

Check out [smartIR](https://github.com/smartHomeHub/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
```