Skip to content

đź’ˇ Domain Options#

Mushroom strategy supports several domains to control/view entities of.

Domain Ordering Position Description
Lock 10 Security devices for locking and unlocking doors or gates.
Binary Sensor 20 On/Off sensors such as motion, door/window contacts, or smoke.
Camera 30 Video stream entities from doorbells or security cameras.
Light 40 Light bulbs and LED strips.
Scene 50 Predefined states for a group of entities (e.g., "Movie Night").
Climate 60 HVAC systems, thermostats, and temperature control units.
Fan 70 Speed-controlled or toggle devices specifically for air movement.
Cover 80 Motorized blinds, curtains, garage doors, or shutters.
Media Player 90 Audio and video playback devices like TVs, speakers, and receivers.
Switch 100 Basic toggles (e.g., for outlets or non-dimmable devices.
Vacuum 110 Robotic cleaners with controls for docking and cleaning cycles.
Valve 120 Controls for gas or water flow, including irrigation systems.
Select 130 Configuration entities allowing a choice from a list of options.
Input Select 140 Helper entities for choosing options within the UI or automations.
Number 150 Entities representing a numerical value with a specific range.
Sensor 160 State entities for data like temperature, humidity, or power usage.
Other 170 Any other domain not explicitly categorized above.

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

Option type Default Description
hidden boolean false Set to true to exclude the domain from the dashboard.
hide_config_entities boolean true Set to false to include config-entities to the dashboard.
hide_diagnostic_entities boolean true Set to false to include diagnostic-entities to the dashboard.
order number unset Ordering position of the domain entities in a view.
show_controls boolean true Whether to show controls in a view, to switch all entities of the domain.
stack_count object {_: 1} Cards per row.1
title string domain specific Title of the domain in a view.

Note

  • Domain default represents any other domain than supported by this strategy.
  • The show_controls option will default to false for domain which can't be controlled.
  • The hide_config_entities and hide_diagnostic_entities options are only available as an "All domains" option.

Sorting Domains#

The order property gives you control over how the domains are arranged in a view.

To make the most of this, it helps to understand how the system prioritizes your list:

  • Any domain assigned an order value will automatically move to the front/top.
    This allows you to "pin" your most-used domains—like lights or fans—so they are always the first things you see.
  • If two domains share the same order value, the system will use their names to determine which one comes first.
  • Any domain without an order property will be placed after/below your prioritized list, sorted alphabetically by name.

Setting options for all domains#

Use _ as the identifier to set options for all domains.

Example#

strategy:
  type: custom:mushroom-strategy
  options:
    domains:
      _:
        stack_count: 2
        hide_config_entities: false
      light:
        title: "My cool lights"
        order: 1
      switch:
        stack_count: 3
        show_controls: false
      default: # All other domains
        hidden: true

  1. In the different views, the cards belonging to a specific domain will be horizontally stacked into a row.
    The number of cards per row can be configured with this option.