Skip to content

Commit

Permalink
Update version info
Browse files Browse the repository at this point in the history
  • Loading branch information
kalkih committed Feb 13, 2019
1 parent e39040a commit d535daa
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 15 deletions.
35 changes: 24 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Inspired by [Custom UI: Mini media player](https://community.home-assistant.io/t

```yaml
resources:
- url: /local/mini-media-player-bundle.js?v=1.0.0
- url: /local/mini-media-player-bundle.js?v=1.0.1
type: module
```
Expand All @@ -30,14 +30,14 @@ Inspired by [Custom UI: Mini media player](https://community.home-assistant.io/t
2. Grab `mini-media-player-bundle.js`

```console
$ wget https://github.com/kalkih/mini-media-player/releases/download/v1.0.0/mini-media-player-bundle.js
$ wget https://github.com/kalkih/mini-media-player/releases/download/v1.0.1/mini-media-player-bundle.js
```

3. Add a reference to `mini-media-player-bundle.js` inside your `ui-lovelace.yaml`.

```yaml
resources:
- url: /local/mini-media-player-bundle.js?v=1.0.0
- url: /local/mini-media-player-bundle.js?v=1.0.1
type: module
```

Expand All @@ -62,7 +62,7 @@ Inspired by [Custom UI: Mini media player](https://community.home-assistant.io/t

```yaml
resources:
- url: /local/mini-media-player-bundle.js?v=1.0.0
- url: /local/mini-media-player-bundle.js?v=1.0.1
type: module
```

Expand Down Expand Up @@ -101,14 +101,26 @@ Inspired by [Custom UI: Mini media player](https://community.home-assistant.io/t
|------|:----:|:-------:|:------------|
| when_idle | boolean | optional | Render the idle view when player state is `idle`.
| when_paused | boolean | optional | Render the idle view when player state is `paused`
| when_standby | boolean | optional | Render the idle view when player state is `standby`
| after | string | optional | Specify a number (minutes) after which the card renders as idle *(only supported on platforms exposing `media_position_updated_at`)*.

#### TTS object
| Name | Type | Default | Description |
|------|:----:|:-------:|:------------|
| platform | string | **required** | Specify [TTS platform](https://www.home-assistant.io/components/tts/), e.g. `google` or `amazon_polly`, or `alexa` for the ["Alexa as Media Player"](https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639) custom_component.
| platform | string | **required** | Specify [TTS platform](https://www.home-assistant.io/components/tts/), e.g. `google` or `amazon_polly`, `alexa` for the ["Alexa as Media Player"](https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639) custom_component or `ga` for use with [Google Assistant Webserver](https://community.home-assistant.io/t/community-hass-io-add-on-google-assistant-webserver-broadcast-messages-without-interrupting-music/37274) or [Assistant Relay](https://github.com/greghesp/assistant-relay).
| language | string | optional | The output language.
| entity_id | string | optional | The *entity_id* for the output player.
| entity_id | string/list | optional | The *entity_id* of the desired output entity or a list of *entity_id's*, can also be `all` to broadcast to all entities.

Using the `ga` platform will restrict the use of `language` & `entity_id` options.
It also requires that a custom notify service is set up with the name `ga_broadcast`, example below.

```yaml
# configuration.yaml
notify:
- name: ga_broadcast
platform: rest
resource: http://[xxx.x.x.xxx]:5000/broadcast_message
```

#### Sonos object
See [Sonos group management](#sonos-group-management) for example usage.
Expand Down Expand Up @@ -140,23 +152,24 @@ See [card with media shortcuts](#card-with-media-shortcuts) for example usage.
|------|:----:|:-------:|:------------|
| name | string | optional | A display name.
| icon | string | optional | A display icon *(any mdi icon)*.
| type | string | **required** | A media type. Must be one of `music`, `tvshow`, `video`, `episode`, `channel`, `playlist` or `source`
| id | string | **required** | A media identifier. The format of this is component dependent. For example, you can provide URLs to Sonos & Cast but only a playlist ID to iTunes & Spotify. A source name can also be specified to change source, use together with type `source`
| type | string | **required** | A media type. Must be one of `music`, `tvshow`, `video`, `episode`, `channel`, `playlist`, `source` or `script`
| id | string | **required** | A media identifier. The format of this is component dependent. For example, you can provide URLs to Sonos & Cast but only a playlist ID to iTunes & Spotify. A source name can also be specified to change source, use together with type `source` or a script entity for use with `script`.

#### Hide object
| Name | Type | Default | Description |
|------|:----:|:-------:|:------------|
| name | boolean | false | The name.
| icon | boolean | false | The icon.
| icon | boolean | false | The entity icon.
| info | boolean | false | The media information.
| power | boolean | false | The power button.
| source | boolean | false | The source button.
| controls | boolean | false | The media playback controls.
| volume | boolean | false | The volume controls.
| mute | boolean | false | The mute button.
| progress | boolean | false | The progress bar.
| artwork_border | boolean | false | The border of the `default` artwork picture.
| power_state | boolean | true | The accent of the power button when the device is powered on.
| artwork_border | boolean | true | The border of the `default` artwork picture.
| power_state | boolean | true | Dynamic color of the power button to indicate on/off.
| icon_state | boolean | true | Dynamic color of the entity icon to indicate on/off.
| shuffle | boolean | true | The shuffle button (only for players with `shuffle_set` support).


Expand Down
11 changes: 11 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## v1.0.1
- NEW: Support for Standby state in idle view, see `idle_view` -> `when_standby` (#73)
- NEW: Option `icon_state`, change icon color depending on entity state (#77)
- NEW: Shortcut items can now trigger scripts (#76)
- NEW: TTS Support for hass.io addon: Google Assistant Webserver and similar solutions
- CHANGE: Artwork border is now hidden by default
- FIXED: Sonos `sync_volume` not working as expected (#72)
- FIXED: Progress not visible with `group` option and not collapsed (#71)
- FIXED: Hide season and episode information if current media is a movie
- UPDATE: LitElement dependency to v2.0.1

## v1.0.0
- NEW: Ability to seek through media by pressing on the progress bar
- NEW: Option `hide` (#50)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mini-media-player",
"version": "v1.0.0",
"version": "v1.0.1",
"description": "A minimalistic yet customizable media player card for Home Assistant Lovelace UI",
"keywords": [
"home-assistant",
Expand Down
6 changes: 3 additions & 3 deletions tracker.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"mini-media-player-bundle": {
"updated_at": "2018-02-03",
"version": "1.0.0",
"remote_location": "https://github.com/kalkih/mini-media-player/releases/download/v1.0.0/mini-media-player-bundle.js",
"updated_at": "2019-02-14",
"version": "1.0.1",
"remote_location": "https://github.com/kalkih/mini-media-player/releases/download/v1.0.1/mini-media-player-bundle.js",
"visit_repo": "https://github.com/kalkih/mini-media-player",
"changelog": "https://github.com/kalkih/mini-media-player/releases/latest"
}
Expand Down

0 comments on commit d535daa

Please sign in to comment.