forked from piitaya/lovelace-mushroom
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream'
- Loading branch information
Showing
51 changed files
with
1,008 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
input_number: | ||
percentage: | ||
name: Percentage | ||
initial: 30 | ||
min: 0 | ||
max: 100 | ||
step: 0.5 | ||
|
||
template: | ||
- number: | ||
- name: Percentage | ||
unique_id: percentage_number | ||
step: 0.5 | ||
min: 0 | ||
max: 100 | ||
step: 0.5 | ||
state: "{{ states('input_number.percentage') }}" | ||
set_value: | ||
service: input_number.set_value | ||
target: | ||
entity_id: input_number.percentage | ||
data: | ||
value: "{{ value }}" | ||
|
||
homeassistant: | ||
customize: | ||
input_number.percentage: | ||
friendly_name: Percentage Input Number | ||
unit_of_measurement: "%" | ||
number.percentage: | ||
friendly_name: Percentage Number | ||
unit_of_measurement: "%" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
title: Number | ||
icon: mdi:numeric | ||
cards: | ||
- type: grid | ||
title: Basic | ||
cards: | ||
- type: custom:mushroom-number-card | ||
entity: input_number.percentage | ||
- type: custom:mushroom-number-card | ||
entity: input_number.percentage | ||
name: Custom name and icon | ||
icon: mdi:robot-outline | ||
columns: 2 | ||
square: false | ||
- type: grid | ||
title: Infos | ||
cards: | ||
- type: custom:mushroom-number-card | ||
entity: input_number.percentage | ||
primary_info: state | ||
secondary_info: name | ||
- type: custom:mushroom-number-card | ||
entity: input_number.percentage | ||
primary_info: name | ||
secondary_info: last-changed | ||
- type: custom:mushroom-number-card | ||
entity: input_number.percentage | ||
primary_info: name | ||
secondary_info: last-updated | ||
- type: custom:mushroom-number-card | ||
entity: input_number.percentage | ||
primary_info: name | ||
secondary_info: none | ||
- type: custom:mushroom-number-card | ||
entity: input_number.percentage | ||
icon_type: none | ||
columns: 2 | ||
square: false | ||
- type: grid | ||
title: Icon colors | ||
cards: | ||
- type: custom:mushroom-number-card | ||
entity: input_number.percentage | ||
icon_color: red | ||
- type: custom:mushroom-number-card | ||
entity: input_number.percentage | ||
icon_color: green | ||
columns: 2 | ||
square: false | ||
- type: vertical-stack | ||
title: Layout | ||
cards: | ||
- type: grid | ||
columns: 2 | ||
square: false | ||
cards: | ||
- type: custom:mushroom-number-card | ||
entity: input_number.percentage | ||
- type: grid | ||
columns: 2 | ||
square: false | ||
cards: | ||
- type: custom:mushroom-number-card | ||
entity: input_number.percentage | ||
layout: "vertical" | ||
- type: custom:mushroom-number-card | ||
entity: input_number.percentage | ||
layout: "horizontal" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Number | ||
|
||
![Entity light](../images/number-light.png) | ||
![Entity dark](../images/number-dark.png) | ||
|
||
## Description | ||
|
||
A number card allows you to control number and input_number entities. | ||
|
||
## 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 | Number or input_number Entity | | ||
| `icon` | string | Optional | Custom icon | | ||
| `icon_color` | string | `blue` | Custom color for icon when entity state is active | | ||
| `name` | string | Optional | Custom name | | ||
| `layout` | string | Optional | Layout of the card. Vertical, horizontal and default layout are supported | | ||
| `fill_container` | boolean | `false` | Fill container or not. Useful when card is in a grid, vertical or horizontal layout | | ||
| `primary_info` | `name` `state` `last-changed` `last-updated` `none` | `name` | Info to show as primary info | | ||
| `secondary_info` | `name` `state` `last-changed` `last-updated` `none` | `state` | Info to show as secondary info | | ||
| `icon_type` | `icon` `entity-picture` `none` | `icon` | Type of icon to display | | ||
| `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 | |
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { PREFIX_NAME } from "../../const"; | ||
|
||
export const NUMBER_CARD_NAME = `${PREFIX_NAME}-number-card`; | ||
export const NUMBER_CARD_EDITOR_NAME = `${NUMBER_CARD_NAME}-editor`; | ||
export const NUMBER_ENTITY_DOMAINS = ["number", "input_number"]; |
Oops, something went wrong.