Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: merge mushroom 1.8.0 #11

Merged
merged 9 commits into from
May 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .hass_dev/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ fan:

lock:
- platform: demo

humidifier:
- platform: demo

person:
- name: Anne Therese
Expand Down
1 change: 1 addition & 0 deletions .hass_dev/lovelace-mushroom-showcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ views:
- !include views/media-player-view.yaml
- !include views/vacuum-view.yaml
- !include views/lock-view.yaml
- !include views/humidifier-view.yaml
47 changes: 47 additions & 0 deletions .hass_dev/views/humidifier-view.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
title: Humidifier
icon: mdi:air-humidifier
cards:
- type: grid
title: Simple
cards:
- type: custom:mushroom-humidifier-card
entity: humidifier.humidifier
- type: custom:mushroom-humidifier-card
entity: humidifier.humidifier
name: Custom name and icon
icon: mdi:robot-outline
columns: 2
square: false
- type: grid
title: Controls
cards:
- type: custom:mushroom-humidifier-card
entity: humidifier.humidifier
name: Humidity control
show_target_humidity_control: true
- type: custom:mushroom-humidifier-card
entity: humidifier.humidifier
name: Collapsible controls
collapsible_controls: true
show_target_humidity_control: true
columns: 2
square: false
- type: vertical-stack
title: Layout
cards:
- type: grid
columns: 2
square: false
cards:
- type: custom:mushroom-humidifier-card
entity: humidifier.humidifier
- type: grid
columns: 2
square: false
cards:
- type: custom:mushroom-humidifier-card
entity: humidifier.humidifier
layout: "vertical"
- type: custom:mushroom-humidifier-card
entity: humidifier.humidifier
layout: "horizontal"
10 changes: 10 additions & 0 deletions .hass_dev/views/media-player-view.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ cards:
use_media_info: true
columns: 2
square: false
- type: grid
title: Volume Level
cards:
- type: custom:mushroom-media-player-card
entity: media_player.living_room
show_volume_level: true
volume_controls:
- volume_set
columns: 2
square: false
- type: vertical-stack
title: Controls
cards:
Expand Down
26 changes: 26 additions & 0 deletions docs/cards/humidifier.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Humidifier card

![Humidifier light](../images/humidifier-light.png)
![Humidifier dark](../images/humidifier-dark.png)

## Description

A humidifier card allow you to control a humidifier entity.

## Configuration variables

All the options are available in the lovelace editor but you can use `yaml` if you want.

| Name | Type | Default | Description |
| :----------------------------- | :------ | :---------- | :---------------------------------------------------------------------------------- |
| `entity` | string | Required | Humidifier entity |
| `icon` | string | Optional | Custom icon |
| `name` | string | Optional | Custom name |
| `fill_container` | boolean | `false` | Fill container or not. Useful when card is in a grid, vertical or horizontal layout |
| `layout` | string | Optional | Layout of the card. Vertical, horizontal and default layout are supported |
| `hide_state` | boolean | `false` | Hide the entity state |
| `show_target_humidity_control` | boolean | Optional | Show target humidity control |
| `collapsible_controls` | boolean | `false` | Collapse controls when off |
| `tap_action` | action | `more-info` | Home assistant action to perform on tap |
| `hold_action` | action | `more-info` | Home assistant action to perform on hold |
| `double_tap_action` | action | `more-info` | Home assistant action to perform on double_tap |
1 change: 1 addition & 0 deletions docs/cards/media-player.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ All the options are available in the lovelace editor but you can use `yaml` if y
| `fill_container` | boolean | `false` | Fill container or not. Useful when card is in a grid, vertical or horizontal layout |
| `use_media_info` | boolean | `[]` | Use media info instead of name, state and icon when a media is playing |
| `use_media_artwork` | boolean | `[]` | Use media artwork instead of icon when a media is playing |
| `show_volume_level` | boolean | `[]` | Show volume level next to media state when media is playing |
| `media_controls` | list | `[]` | List of controls to display (on_off, shuffle, previous, play_pause_stop, next, repeat) |
| `volume_controls` | list | `[]` | List of controls to display (volume_mute, volume_set, volume_buttons) |
| `collapsible_controls` | boolean | `false` | Collapse controls when off |
Expand Down
Binary file added docs/images/humidifier-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/humidifier-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading