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