Skip to content

Commit

Permalink
add blurb and example about using default svg icons with custom actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerwyn committed Jan 8, 2024
1 parent 1eee788 commit 513d245
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,21 @@ custom_actions:
entity_id: media_player.tv
```

You can also reference the [default icons](https://github.com/Nerwyn/android-tv-card/blob/main/src/models/enums/svg.ts) provided with this card for default sources for other keys and sources by using the names in the linked file.

```yaml
custom_actions:
discovery:
icon: discovery
tap_action:
action: call-service
service: media_player.select_source
data:
source: discovery+
target:
entity_id: media_player.appletv
```

### Action Types

Actions follow the [Home Assistant actions](https://www.home-assistant.io/dashboards/actions/) syntax. It supports a subset of Home Assistant actions along with `key` and `source`, which are shorthands for remote service calls.
Expand Down

0 comments on commit 513d245

Please sign in to comment.