Skip to content

Commit

Permalink
Release 20180528
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-git committed May 28, 2018
1 parent 911cc65 commit 716b083
Show file tree
Hide file tree
Showing 16 changed files with 4,952 additions and 4,916 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Changelog

#### 2018-05-21
* New feature: [`control_element`](docs/features.md#custom-controls)
* Fix theming on Firefix/Edge.

#### 2018-05-21
* Hotfix release for HA 0.70+

Expand Down
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,10 @@ Please ask questions and post feature requests in the [forum](https://community.
## Changelog

#### 2018-05-21
* Hotfix release for HA 0.70+

#### 2018-04-29
* Add support for `action_name` attribute that can be used to change the displayed action on scene and script cards.
* Make confirmable controls protect slider on 2nd line
* New feature: [`control_element`](docs/features.md#custom-controls)
* Fix theming on Firefix/Edge.

#### 2018-04-27
* Add support for `icon_color` attribute to force-set icon color of any entity.
#### 2018-05-21
* Hotfix release for HA 0.70+

[Full Changelog](CHANGELOG.md)
20 changes: 17 additions & 3 deletions docs/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
+ [Secondary custom UI](#secondary-customui)
* [Features available for almost all domains](#features-available-for-almost-all-domains)
+ [You can always show the last-changed text](#you-can-always-show-the-last-changed-text)
* [Features available for light, cover, "plain", and "toggle" cards](#features-available-for-light-cover-plain-and-toggle-cards)
* [Features available for light, cover, climate, "plain", and "toggle" cards](#features-available-for-light-cover-climate-plain-and-toggle-cards)
- [You can hide the control altogether](#you-can-hide-the-control-altogether)
- [You can add extra data below the entity name](#you-can-add-extra-data-below-the-entity-name)
- [Add badge to the state card](#add-badge-to-the-state-card)
- [Confirmable controls](#confirmable-controls)
- [Custom controls](#custom-controls)
* [Features available for light and cover domains only](#features-available-for-light-and-cover-domains-only)
- [If there is not enough horizontal space the mode is set by `state_card_mode` parameter](#if-there-is-not-enough-horizontal-space-the-mode-is-set-by-state_card_mode-parameter)
- [If the slider got moved to a new line it will be 200 px wide.](#if-the-slider-got-moved-to-a-new-line-it-will-be-200-px-wide)
Expand Down Expand Up @@ -254,11 +255,12 @@ Use `show_last_changed: true`

Note that if you use the [extra_data_template](#you-can-add-extra-data-below-the-entity-name-requires-ha-043) below it will take precedence over `show_last_changed`

## Features available for light, cover, "plain", and "toggle" cards.
## Features available for light, cover, climate, "plain", and "toggle" cards.

The next features are available for 4 types of cards:
* Light
* Cover,
* Cover
* Climate
* "Plain" i.e. card with icon, name, and state.
* "Toggle" i.e. card with icon, name, and toggle.

Expand Down Expand Up @@ -324,6 +326,18 @@ Sometimes you don't want to flip a switch by mistake.

Use `confirm_controls_show_lock` to block the control and show a transparent lock icon over it. Tapping on the lock will open it for 5 seconds allowing to use the control. If you would like to prevent accidental flip without the visual lock hint, use `confirm_controls` instead.

#### Custom controls

You can replace the default control with another control by using `control_element` attribute.

For example:
```yaml
switch.my:
control_element: my-custom-switch-element
```

You can also use `control_element: ''` to show the state, like the "plain" card does.
## Features available for light and cover domains only
If there is enough space the card will have icon+name on the left, optional slider in the middle and toggle on the right:
Expand Down
Loading

0 comments on commit 716b083

Please sign in to comment.