Files
mushroom-strategy/docs/options/view-options.md
T
Ferry Cools 561e047736 Release v2.3.3
* Add Configuration Option: Set card count for horizontal stacks.
* Add Brazilian Portuguese language.
* Add Valve view.
* Add a log message for domain views.

* Fix Entities shown twice.
* Fix Entities not shown.
* Fix Area not found error.
* Fix Unable to hide areas.
* Fix Home view section split.
* Fix filtering on AreaId.

* Refactor sorting logic.
* Refactor sorting logic of extra_views.
* Bump Strategy version to v2.3.3.
* Build Distribution.
2025-06-01 12:49:10 +02:00

3.6 KiB

👀 View Options

Mushroom strategy includes several views to control/view entities of a specific domain.
Hidden/Disabled entities or linked to a hidden area are excluded from the view.

The following views are supported and enabled by default:

View Type Description
camera object View to control cameras.
climate object View to control climates.
cover object View to control covers.
fan object View to control fans.
home object An overview of several entities and areas.
light object View to control lights.
lock object View to control locks.
scene object View to control scenes.
switch object View to control switches.
vacuum object View to control vacuums.
valve object View to control valves.

The views group enables you to specify the configuration of a view. Each configuration is identified by a view name and can have the following options:

name type Default description
hidden boolean false Set to true to exclude the view from the dashboard
icon string domain specific Icon of the view in the navigation bar.
order string home, light, fan, cover, switch, climate, camera, vacuum, scene, lock, valve Ordering position of the view in the navigation bar.
title string domain specific Title of the view in the navigation bar. (Shown when no icon is defined or hovering above it.)

Example

strategy:
  type: custom:mushroom-strategy
  options:
    views:
      light:
        order: 0
        title: illumination
      switch:
        order: 1
        hidden: true
        icon: mdi:toggle-switch
views: []

Extra Views

The extra_views group enables you to specify the configuration of additional views. Each view can have the options as described in the Home Assistant documentation{: target="_blank"}.

Extra views are sorted by order first and then by title, together with the build-in views.

!!! tip

You can build your view in a temporary dashboard and copy the `views` group from the YAML of that dashboard into
group `extra_views` of the strategy configuration. The YAML can be found in the Raw configuration editor.

Example

strategy:
  type: custom:mushroom-strategy
  options:
    extra_views:
      - theme: Backend-selected
        title: cool view
        path: cool-view
        order: Infinity
        icon: mdi:emoticon-cool
        badges: []
        cards:
          - type: markdown
            content: I am cool