From 0fe9d5172b81a6330b67c0abf2069a90e1eebc17 Mon Sep 17 00:00:00 2001 From: c727 Date: Sat, 30 Jun 2018 15:51:35 +0200 Subject: [PATCH] picture elements: new state-badge (#46) --- docs/lovelace_card_types.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/lovelace_card_types.md b/docs/lovelace_card_types.md index bb981713..0eb62f75 100644 --- a/docs/lovelace_card_types.md +++ b/docs/lovelace_card_types.md @@ -101,18 +101,25 @@ Element types: | type | string | **Required** | `state-badge` | entity | string | **Required** | Entity id | style | object | **Required** | See "Style options" + +| Name | Type | Default | Description +| ---- | ---- | ------- | ----------- +| type | string | **Required** | `state-icon` +| entity | string | **Required** | Entity id +| style | object | **Required** | See "Style options" | tap_action | string | more-info | Set to `toggle` to change state | Name | Type | Default | Description | ---- | ---- | ------- | ----------- -| type | string | **Required** | `state-text` +| type | string | **Required** | `state-label` | entity | string | **Required** | Entity id | style | object | **Required** | See "Style options" | Name | Type | Default | Description | ---- | ---- | ------- | ----------- | type | string | **Required** | `service-button` -| service | object | **Required** | `{'domain': 'light', 'service': 'turn_on', 'data': {'entity_id': 'light.floor'}}` +| service | string | **Required** | `light.turn_on` +| service_data | object | optional | `{'entity_id': 'light.floor'}` | style | object | **Required** | See "Style options" | title | string | optional | Button label