Document examples to be more readable.

This commit is contained in:
Aalian Khan
2023-04-10 16:06:36 -04:00
committed by GitHub
parent 8cb96c2c98
commit 7ee82546f5

View File

@@ -139,6 +139,9 @@ The area object includes all options from the template mushroom card and `extra_
#### Example
```yaml
strategy:
type: custom:mushroom-strategy
options:
areas:
- name: Family Room
icon: mdi:television
@@ -154,6 +157,7 @@ areas:
- name: Kitchen
icon: mdi:silverware-fork-knife
icon_color: red
views: []
```
### Entity Config
@@ -162,9 +166,13 @@ The `entity_config` essentially enables you to give a specific entity any card y
#### Example
```yaml
strategy:
type: custom:mushroom-strategy
options:
entity_config:
- entity: fan.master_bedroom_fan
type: custom:mushroom-fan-card
views: []
```
### Pre-built views
@@ -185,12 +193,16 @@ Mushroom strategy includes pre-built views to control/view specific domains. Onl
#### Example
```yaml
strategy:
type: custom:mushroom-strategy
options:
views:
lights: true
switches: true
covers: false
cameras: true
thermostats: false
views: []
```
### Chips
@@ -214,6 +226,9 @@ Mushroom strategy has chips that count the number of devices active for a specif
#### Example
```yaml
strategy:
type: custom:mushroom-strategy
options:
chips:
climate_count: false
cover_count: false
@@ -228,8 +243,6 @@ chips:
entity: lock.front_door
icon_color: red
content_info: none
icon: ''
use_entity_picture: false
tap_action:
action: toggle
```