Add entities card tap_action

This commit is contained in:
2019-10-01 21:18:17 +02:00
parent f412fd4999
commit 50364f68f0
9 changed files with 335 additions and 255 deletions

View File

@@ -183,6 +183,43 @@ entity: alarm_control_panel.alarm
![advanced](https://user-images.githubusercontent.com/1299821/59151780-59732c80-8a39-11e9-9f19-34d3e0dbd8e9.png)
# Bonus function - entities card tap\_action
With card-mod installed, you will be able to use `tap_action` with rows in your entities cards:
Example:
```yaml
type: entities
entities:
- entity: light.bed_light
name: default
- entity: light.bed_light
name: toggle
tap_action:
action: toggle
- entity: light.bed_light
name: navigate
tap_action:
action: navigate
navigation_path: /lovelace/1
- entity: light.bed_light
name: url
tap_action:
action: url
url_path: https://google.com
- entity: light.bed_light
name: call-service
tap_action:
action: call-service
service: browser_mod.popup
service_data:
deviceID: this
title: Popup
card:
type: entities
entities:
- light.bed_light
```
# FAQ
### How do I convert my old card-modder configuration to card-mod?