mirror of
https://github.com/jkocon/tv-card.git
synced 2026-02-24 05:14:40 +01:00
Update README.md
This commit is contained in:
101
README.md
101
README.md
@@ -1,27 +1,3 @@
|
|||||||
# TV Remote Card
|
|
||||||
📺 [Roku Lovelace Card](https://github.com/custom-cards/roku-card) editited by mar_robHD
|
|
||||||
|
|
||||||
[![GitHub Release][releases-shield]][releases]
|
|
||||||
[![License][license-shield]](LICENSE.md)
|
|
||||||
|
|
||||||
![Project Maintenance][maintenance-shield]
|
|
||||||
[![GitHub Activity][commits-shield]][commits]
|
|
||||||
[](https://github.com/custom-components/hacs)
|
|
||||||
[![Discord][discord-shield]][discord]
|
|
||||||
[![Community Forum][forum-shield]][forum]
|
|
||||||
|
|
||||||
[![Twitter][twitter]][twitter]
|
|
||||||
[![Github][github]][github]
|
|
||||||
|
|
||||||
## Support
|
|
||||||
|
|
||||||
This card is for [Lovelace](https://www.home-assistant.io/lovelace) on [Home Assistant](https://www.home-assistant.io/) that display a [TV]() remote.
|
|
||||||
|
|
||||||
# NOTE: Firefox releases before 67 are not supported
|
|
||||||
https://twitter.com/_developit/status/1090364879377260544
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## Options
|
## Options
|
||||||
|
|
||||||
| Name | Type | Requirement | Description
|
| Name | Type | Requirement | Description
|
||||||
@@ -59,80 +35,3 @@ https://twitter.com/_developit/status/1090364879377260544
|
|||||||
| service | string | **Required** | Service to call
|
| service | string | **Required** | Service to call
|
||||||
| service_data | string | **Optional** | Service data to use
|
| service_data | string | **Optional** | Service data to use
|
||||||
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
### HACS:
|
|
||||||
|
|
||||||
1.
|
|
||||||
|
|
||||||
Add this to your `HACS settings tab`:
|
|
||||||
|
|
||||||
```
|
|
||||||
https://github.com/marrobHD/tv-card
|
|
||||||
```
|
|
||||||

|
|
||||||
|
|
||||||
### Step 1
|
|
||||||
|
|
||||||
Install `tv-card` by copying `tv-card.js` and `tv-card-editor.js` from this repo to `<config directory>/www/tv-card.js` on your Home Assistant instance.
|
|
||||||
|
|
||||||
**Example:**
|
|
||||||
|
|
||||||
```bash
|
|
||||||
wget https://raw.githubusercontent.com/marrobHD/tv-card/master/tv-card.js
|
|
||||||
wget https://raw.githubusercontent.com/marrobHD/tv-card/master/tv-card-editor.js
|
|
||||||
mv tv-card* /config/www/
|
|
||||||
```
|
|
||||||
|
|
||||||
### Step 2
|
|
||||||
|
|
||||||
Link `tv-card` inside your `ui-lovelace.yaml`.
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
resources:
|
|
||||||
- url: /local/tv-card.js?v=1
|
|
||||||
type: module
|
|
||||||
```
|
|
||||||
|
|
||||||
### Step 3
|
|
||||||
|
|
||||||
Add a custom element in your `ui-lovelace.yaml`
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
- type: custom:tv-card
|
|
||||||
entity: media_player.bedroom_tv
|
|
||||||
name: Bedroom TV
|
|
||||||
theme: darkpurple
|
|
||||||
tv: true
|
|
||||||
power:
|
|
||||||
service: switch.turn_on
|
|
||||||
service_data:
|
|
||||||
entity_id: switch.bedroom_tv_power
|
|
||||||
```
|
|
||||||
|
|
||||||
**Custom Updater:**
|
|
||||||
|
|
||||||
Add this to your `configuration.yaml`
|
|
||||||
|
|
||||||
```
|
|
||||||
custom_updater:
|
|
||||||
card_urls:
|
|
||||||
- https://raw.githubusercontent.com/marrobHD/tv-card/master/tracker.json
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
[Troubleshooting](https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins)
|
|
||||||
|
|
||||||
[commits-shield]: https://img.shields.io/github/commit-activity/y/marrobHD/tv-card.svg?style=for-the-badge
|
|
||||||
[commits]: https://github.com/marrobHD/tv-card/commits/master
|
|
||||||
[discord]: https://discord.gg/ND4emRS
|
|
||||||
[discord-shield]: https://img.shields.io/discord/579704220970909717.svg?style=for-the-badge
|
|
||||||
[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg?style=for-the-badge
|
|
||||||
[forum]: https://community.home-assistant.io/t/lovelace-tv-remote-card/91476
|
|
||||||
[license-shield]: https://img.shields.io/github/license/marrobHD/tv-card.svg?style=for-the-badge
|
|
||||||
[maintenance-shield]: https://img.shields.io/badge/maintainer-marrobHD-blue.svg?style=for-the-badge
|
|
||||||
[releases-shield]: https://img.shields.io/github/release/marrobHD/tv-card.svg?style=for-the-badge
|
|
||||||
[releases]: https://github.com/marrobHD/tv-card/releases
|
|
||||||
[twitter]: https://img.shields.io/twitter/follow/mar_robHD.svg?style=social
|
|
||||||
[github]: https://img.shields.io/github/followers/marrobHD.svg?style=social
|
|
||||||
|
|||||||
Reference in New Issue
Block a user