picture elements: new state-badge (#46)

This commit is contained in:
c727 2018-06-30 15:51:35 +02:00 committed by GitHub
parent f0cf27fbea
commit 0fe9d5172b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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