You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+44-39Lines changed: 44 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -18,14 +18,14 @@ Mushroom mission is to propose easy to use components to build your [Home Assist
18
18
19
19
### Features
20
20
21
-
-🛠 Editor for **all cards** and and **all options** (no need to edit `yaml`)
22
-
-😍 Icon picker
23
-
-🖌 Color picker
24
-
-🚀 0 dependencies : no need to install another card.
25
-
-🌈 Based on Material UI colors
26
-
-🌓 Light and dark theme support
27
-
-🎨 Optional theme customization
28
-
-🌎 Internationalization
21
+
- 🛠 Editor for **all cards** and and **all options** (no need to edit `yaml`)
22
+
- 😍 Icon picker
23
+
- 🖌 Color picker
24
+
- 🚀 0 dependencies : no need to install another card.
25
+
- 🌈 Based on Material UI colors
26
+
- 🌓 Light and dark theme support
27
+
- 🎨 Optional theme customization
28
+
- 🌎 Internationalization
29
29
30
30
The goal of Mushroom is not to provide custom card for deep customization. You can use the excellent [UI Lovelace Minimalist][ui-lovelace-minimalist] and [Button card][button-card] plugins for this.
31
31
@@ -46,20 +46,19 @@ _or_
46
46
3. Search for "Mushroom"
47
47
4. Click the download button. ⬇️
48
48
49
-
50
49
### Manual
51
50
52
51
1. Download `mushroom.js` file from the [latest release][release-url].
53
52
2. Put `mushroom.js` file into your `config/www` folder.
54
53
3. Add reference to `mushroom.js` in Dashboard. There's two way to do that:
55
-
-**Using UI:**_Settings_ → _Dashboards_ → _More Options icon_ → _Resources_ → _Add Resource_ → Set _Url_ as `/local/mushroom.js` → Set _Resource type_ as `JavaScript Module`.
56
-
**Note:** If you do not see the Resources menu, you will need to enable _Advanced Mode_ in your _User Profile_
57
-
-**Using YAML:** Add following code to `lovelace` section.
58
-
```yaml
59
-
resources:
60
-
- url: /local/mushroom.js
61
-
type: module
62
-
```
54
+
-**Using UI:**_Settings_ → _Dashboards_ → _More Options icon_ → _Resources_ → _Add Resource_ → Set _Url_ as `/local/mushroom.js` → Set _Resource type_ as `JavaScript Module`.
55
+
**Note:** If you do not see the Resources menu, you will need to enable _Advanced Mode_ in your _User Profile_
56
+
-**Using YAML:** Add following code to `lovelace` section.
57
+
```yaml
58
+
resources:
59
+
- url: /local/mushroom.js
60
+
type: module
61
+
```
63
62
64
63
## Usage
65
64
@@ -74,29 +73,35 @@ All the Mushroom cards can be configured using Dashboard UI editor.
74
73
75
74
Different cards are available for differents entities :
A [template badge](docs/badges/template.md) is available if you're using at least Home Assistant 2024.8.
99
-
104
+
100
105
### Theme customization
101
106
102
107
Mushroom works without theme but you can add a theme for better experience by installing the [Mushroom Themes](https://github.com/piitaya/lovelace-mushroom-themes). If you want more information about themes, check out the official [Home Assistant documentation about themes][home-assitant-theme-docs].
@@ -159,9 +164,9 @@ If you want to help translating Mushroom, you can translate it directly from you
159
164
2. Check that you have the latest Mushroom version on HACS
160
165
3. Check that you have the latest Mushroom version by checking the browser console
|`entity`| string | Optional | Entity for template and actions |
17
+
|`icon`| string | Optional | Icon to render. May contain [templates](https://www.home-assistant.io/docs/configuration/templating/)\*. |
18
+
|`icon_color`| string | Optional | Icon color to render. May contain [templates](https://www.home-assistant.io/docs/configuration/templating/). |
19
+
|`primary`| string | Optional | Primary info to render. May contain [templates](https://www.home-assistant.io/docs/configuration/templating/). |
20
+
|`secondary`| string | Optional | Secondary info to render. May contain [templates](https://www.home-assistant.io/docs/configuration/templating/). |
21
+
|`badge_icon`| string | Optional | Badge icon to render. May contain [templates](https://www.home-assistant.io/docs/configuration/templating/). |
22
+
|`badge_color`| string | Optional | Badge icon color to render. May contain [templates](https://www.home-assistant.io/docs/configuration/templating/). |
23
+
|`picture`| string | Optional | Picture to render. May contain [templates](https://www.home-assistant.io/docs/configuration/templating/). |
24
+
|`multiline_secondary`| boolean |`false`| Enables support for multiline text for the secondary info. |
25
+
|`layout`| string | Optional | Layout of the card. Vertical, horizontal and default layout are supported |
26
+
|`fill_container`| boolean |`false`| Fill container or not. Useful when card is in a grid, vertical or horizontal layout |
27
+
|`tap_action`| action |`none`| Home assistant action to perform on tap |
28
+
|`hold_action`| action |`none`| Home assistant action to perform on hold |
29
+
|`double_tap_action`| action |`none`| Home assistant action to perform on double_tap |
30
+
|`entity_id`|`string``list`| Optional | Only reacts to the state changes of these entities. This can be used if the automatic analysis fails to find all relevant entities. |
31
+
32
+
#### Notes
33
+
34
+
\* You can render weather svg icons using [weather state](https://developers.home-assistant.io/docs/core/entity/weather/#recommended-values-for-state-and-condition) as icon :
|`entity`| string | Optional | Entity for template and actions |
17
-
|`icon`| string | Optional | Icon to render. May contain [templates](https://www.home-assistant.io/docs/configuration/templating/)\*. |
18
-
|`icon_color`| string | Optional | Icon color to render. May contain [templates](https://www.home-assistant.io/docs/configuration/templating/). |
19
-
|`primary`| string | Optional | Primary info to render. May contain [templates](https://www.home-assistant.io/docs/configuration/templating/). |
20
-
|`secondary`| string | Optional | Secondary info to render. May contain [templates](https://www.home-assistant.io/docs/configuration/templating/). |
21
-
|`badge_icon`| string | Optional | Badge icon to render. May contain [templates](https://www.home-assistant.io/docs/configuration/templating/). |
22
-
|`badge_color`| string | Optional | Badge icon color to render. May contain [templates](https://www.home-assistant.io/docs/configuration/templating/). |
23
-
|`picture`| string | Optional | Picture to render. May contain [templates](https://www.home-assistant.io/docs/configuration/templating/). |
24
-
|`multiline_secondary`| boolean |`false`| Enables support for multiline text for the secondary info. |
25
-
|`layout`| string | Optional | Layout of the card. Vertical, horizontal and default layout are supported |
26
-
|`fill_container`| boolean |`false`| Fill container or not. Useful when card is in a grid, vertical or horizontal layout |
27
-
|`tap_action`| action |`none`| Home assistant action to perform on tap |
28
-
|`hold_action`| action |`none`| Home assistant action to perform on hold |
29
-
|`double_tap_action`| action |`none`| Home assistant action to perform on double_tap |
30
-
|`entity_id`|`string``list`| Optional | Only reacts to the state changes of these entities. This can be used if the automatic analysis fails to find all relevant entities. |
|`entity`| string | Optional | Entity for template, actions and card features |
17
+
|`area`| string | Optional | Entity for template and card features |
18
+
|`icon`| string | Optional | Icon to render. May contain [templates](https://www.home-assistant.io/docs/configuration/templating/)\*. |
19
+
|`color`| string | Optional | Color to render. Used for icon, background effect and some card features. May contain [templates](https://www.home-assistant.io/docs/configuration/templating/). |
20
+
|`picture`| string | Optional | Picture to render. It will replace the icon. May contain [templates](https://www.home-assistant.io/docs/configuration/templating/). |
21
+
|`primary`| string | Optional | Primary info displayed in the. May contain [templates](https://www.home-assistant.io/docs/configuration/templating/). |
22
+
|`secondary`| string | Optional | Secondary info to render. May contain [templates](https://www.home-assistant.io/docs/configuration/templating/). |
23
+
|`badge_icon`| string | Optional | Badge icon to render. May contain [templates](https://www.home-assistant.io/docs/configuration/templating/). |
24
+
|`badge_text`| string | Optional | Badge text to render. May contain [templates](https://www.home-assistant.io/docs/configuration/templating/). |
25
+
|`badge_color`| string | Optional | Badge color to render. May contain [templates](https://www.home-assistant.io/docs/configuration/templating/). |
26
+
|`multiline_secondary`| boolean |`false`| Enables support for multiline text for the secondary info. |
27
+
|`vertical`| boolean | Optional | Displayed the icon and the content verticaly or not |
28
+
|`tap_action`| action |`none`| Home assistant action to perform on tap |
29
+
|`hold_action`| action |`none`| Home assistant action to perform on hold |
30
+
|`double_tap_action`| action |`none`| Home assistant action to perform on double_tap |
31
+
|`icon_tap_action`| action |`none`| Home assistant action to perform on icon tap |
32
+
|`icon_hold_action`| action |`none`| Home assistant action to perform on icon hold |
33
+
|`icon_double_tap_action`| action |`none`| Home assistant action to perform on icon double_tap |
34
+
|`features`| action |`none`| Card features to displayed on the card |
35
+
|`features_position`| string |`bottom`| Where the card features should be displayed. I can be either `bottom` or `inline`. When using inline, only the first feature is displayed. |
36
+
|`entity_id`|`string``list`| Optional | Only reacts to the state changes of these entities. This can be used if the automatic analysis fails to find all relevant entities. |
0 commit comments