mirror of
https://github.com/DigiLive/mushroom-strategy.git
synced 2025-07-31 18:34:26 +02:00
Created Full Example (markdown)
123
Full-Example.md
Normal file
123
Full-Example.md
Normal file
@@ -0,0 +1,123 @@
|
|||||||
|
Here is a full example utilizing all the options provided with the strategy
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
strategy:
|
||||||
|
type: custom:mushroom-strategy
|
||||||
|
options:
|
||||||
|
views:
|
||||||
|
light:
|
||||||
|
title: illumination
|
||||||
|
switches:
|
||||||
|
hidden: true
|
||||||
|
icon: mdi:toggle-switch
|
||||||
|
homeView:
|
||||||
|
hidden:
|
||||||
|
- Greeting
|
||||||
|
- AreaTitle
|
||||||
|
chips:
|
||||||
|
weather_entity: weather.forecast_home
|
||||||
|
climate_count: false
|
||||||
|
cover_count: false
|
||||||
|
extra_chips:
|
||||||
|
- type: conditional
|
||||||
|
conditions:
|
||||||
|
- entity: lock.front_door
|
||||||
|
state: unlocked
|
||||||
|
chip:
|
||||||
|
type: entity
|
||||||
|
entity: lock.front_door
|
||||||
|
icon_color: red
|
||||||
|
content_info: none
|
||||||
|
icon: ''
|
||||||
|
use_entity_picture: false
|
||||||
|
tap_action:
|
||||||
|
action: toggle
|
||||||
|
- type: conditional
|
||||||
|
conditions:
|
||||||
|
- entity: cover.garage_door
|
||||||
|
state_not: closed
|
||||||
|
chip:
|
||||||
|
type: entity
|
||||||
|
entity: cover.garage_door
|
||||||
|
icon_color: red
|
||||||
|
content_info: none
|
||||||
|
tap_action:
|
||||||
|
action: toggle
|
||||||
|
areas:
|
||||||
|
family_room_id:
|
||||||
|
name: Family Room
|
||||||
|
icon: mdi:television
|
||||||
|
icon_color: green
|
||||||
|
extra_cards:
|
||||||
|
- type: custom:mushroom-chips-card
|
||||||
|
chips:
|
||||||
|
- type: entity
|
||||||
|
entity: sensor.family_room_temperature
|
||||||
|
icon: mdi:thermometer
|
||||||
|
icon_color: pink
|
||||||
|
alignment: center
|
||||||
|
kitchen_id:
|
||||||
|
name: Kitchen
|
||||||
|
icon: mdi:silverware-fork-knife
|
||||||
|
icon_color: red
|
||||||
|
master_bedroom_id:
|
||||||
|
name: Master Bedroom
|
||||||
|
icon: mdi:bed-king
|
||||||
|
icon_color: blue
|
||||||
|
abias_bedroom_id:
|
||||||
|
name: Abia's Bedroom
|
||||||
|
icon: mdi:flower-tulip
|
||||||
|
icon_color: green
|
||||||
|
aalians_bedroom_id:
|
||||||
|
name: Aalian's Bedroom
|
||||||
|
icon: mdi:rocket-launch
|
||||||
|
icon_color: yellow
|
||||||
|
rohaans_bedroom_id:
|
||||||
|
name: Rohaan's Bedroom
|
||||||
|
icon: mdi:controller
|
||||||
|
icon_color: red
|
||||||
|
hallway_id:
|
||||||
|
name: Hallway
|
||||||
|
living_room_id:
|
||||||
|
name: Living Room
|
||||||
|
icon: mdi:sofa
|
||||||
|
front_door_id:
|
||||||
|
name: Front Door
|
||||||
|
icon: mdi:door-closed
|
||||||
|
card_options:
|
||||||
|
fan.master_bedroom_fan:
|
||||||
|
type: custom:mushroom-fan-card
|
||||||
|
remote.harmony_hub_wk:
|
||||||
|
hidden: true
|
||||||
|
quick_access_cards:
|
||||||
|
- type: custom:mushroom-title-card
|
||||||
|
title: Security
|
||||||
|
- type: custom:mushroom-cover-card
|
||||||
|
entity: cover.garage_door
|
||||||
|
show_buttons_control: true
|
||||||
|
- type: horizontal-stack
|
||||||
|
cards:
|
||||||
|
- type: custom:mushroom-lock-card
|
||||||
|
entity: lock.front_door
|
||||||
|
- type: custom:mushroom-entity-card
|
||||||
|
entity: sensor.front_door_lock_battery
|
||||||
|
name: Battery
|
||||||
|
extra_cards:
|
||||||
|
- type: custom:xiaomi-vacuum-map-card
|
||||||
|
map_source:
|
||||||
|
camera: camera.xiaomi_cloud_map_extractor
|
||||||
|
calibration_source:
|
||||||
|
camera: true
|
||||||
|
entity: vacuum.robot_vacuum
|
||||||
|
vacuum_platform: default
|
||||||
|
extra_views:
|
||||||
|
- theme: Backend-selected
|
||||||
|
title: cool view
|
||||||
|
path: cool-view
|
||||||
|
icon: mdi:emoticon-cool
|
||||||
|
badges: []
|
||||||
|
cards:
|
||||||
|
- type: markdown
|
||||||
|
content: I am cool
|
||||||
|
views: []
|
||||||
|
```
|
Reference in New Issue
Block a user