Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/silentbil/silent-remotes-card
- Owner: silentbil
- Created: 2022-12-29T20:20:43.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-15T07:56:51.000Z (about 1 year ago)
- Last Synced: 2024-01-26T13:23:11.480Z (12 months ago)
- Topics: broadlink, card, hacs, homeassistant, remote, remote-control, smartir
- Homepage:
- Size: 73.2 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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)
## 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
```