Skip to content

Commit

Permalink
v2.6.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
DSorlov committed Sep 10, 2022
1 parent d80b1cb commit 6e62504
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 16 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ The format is based on [Keep a Changelog][keep-a-changelog]

## [Unreleased]

## [2.6.0] (2022-09-10)

### Added
- Implemented [hasl-sensor/integration #42](https://github.com/hasl-sensor/integration/issues/42) Bus line directions and name of bus direction
- Implemented [#12](https://github.com/hasl-sensor/lovelace-hasl-departure-card/issues/12) Only show "Last updated" info if it was updated longer than x minutes ago

### Fixed
- Fix [#15](https://github.com/hasl-sensor/lovelace-hasl-departure-card/issues/15) UpdatedDate and new HASL v3 doesn't work

### Changed
- Requires at least HA version 2021.12.0, which is same as hasl3

## [2.5.0] (2020-03-04)

- Card config fix #5
Expand Down Expand Up @@ -35,6 +47,9 @@ The format is based on [Keep a Changelog][keep-a-changelog]

[keep-a-changelog]: http://keepachangelog.com/en/1.0.0/
[Unreleased]: https://github.com/hasl-platform/lovelace-hasl-departure-card/compare/master...dev
[2.6.0]: https://github.com/hasl-platform/lovelace-hasl-departure-card/releases/tag/v2.6.0
[2.5.0]: https://github.com/hasl-platform/lovelace-hasl-departure-card/releases/tag/v2.5.0
[2.4.0]: https://github.com/hasl-platform/lovelace-hasl-departure-card/releases/tag/v2.4.0
[2.3.0]: https://github.com/hasl-platform/lovelace-hasl-departure-card/releases/tag/v2.3.0
[2.4.0]: https://github.com/hasl-platform/lovelace-hasl-departure-card/releases/tag/v2.4.0
[2.5.0]: https://github.com/hasl-platform/lovelace-hasl-departure-card/releases/tag/v2.5.0
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SL Departure Lovelace Card
# HASL Departure Lovelace Card

[![hacs_badge](https://img.shields.io/badge/HACS-Default-orange.svg)](https://github.com/custom-components/hacs)
[![ha_version](https://img.shields.io/badge/home%20assistant-0.92%2B-yellow.svg)](https://www.home-assistant.io)
Expand Down Expand Up @@ -37,6 +37,7 @@ resources:
|deviations|bool|optional|Render deviation section.|false|
|max_deviations|number|optional|Max deviations to show, defaults to all.||
|updated|bool|optional|Render the last updated time section.|false|
|updated_minutes|number|optional|If last updated minutes is less than the specified number then hide the last updated text|0|
|timeleft|bool|optional|Show as SL real time with minutes instead of time. If using **adjust_times** then this must be specified.|false|
|adjust_times|bool|optional|Calculate time left adjusted to last update.|false|
|hide_departed|bool|optional|This can hide already departured transports.|false|
Expand Down
36 changes: 21 additions & 15 deletions info.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SL Departure Lovelace Card
# HASL Departure Lovelace Card

Present departure times from HASL Combination sensors. Huge thanks to [@dimmanramone](https://github.com/dimmanramone) for pimping the card!

Expand All @@ -21,6 +21,8 @@ resources:
### Options
### Options
| Name | Type | Required? | Description | Default |
|------|------|-----------|-------------|---------|
|name|string|optional|If specified it will not render titles per entitiy in the card, but rather have this as the card name. If not speficied it will render each sensors name.|`sensor-name`|
Expand All @@ -31,32 +33,36 @@ resources:
|deviations|bool|optional|Render deviation section.|false|
|max_deviations|number|optional|Max deviations to show, defaults to all.||
|updated|bool|optional|Render the last updated time section.|false|
|updated_minutes|number|optional|If last updated minutes is less than the specified number then hide the last updated text|0|
|timeleft|bool|optional|Show as SL real time with minutes instead of time. If using **adjust_times** then this must be specified.|false|
|adjust_times|bool|optional|Calculate time left adjusted to last update.|false|
|hide_departed|bool|optional|This can hide already departured transports.|false|
|offset|number|optional|Add offset to the departures, so you can hide the ones you don't have enough time catch.|0|
|language|string|optional|The texts will be rendered in this language. Can be one of `sv-SE`, `en-EN` or `fr-FR`.||
|language|string|optional|The texts will be rendered in this language. Can be one of `sv-SE`, `en-EN`, `fr-FR`.||
|compact|bool|optional|Compact style of the card.|true|
|tap_action|string|optional|Action when tapping the card. Choose between `info` or `service`.|info|
|tap_action_entity|string|optional|The entity that the info dialog is going to show, default is the first entity of the card.||
|service_config|object|optional|If service is chosen as a tap_action, service_config has to be configured and the following must be specified `domain`, `service` and `data`.||

### Basic setup

In your lovelace dashboard, Edit Dashboard -> Add Card -> (at bottom) Manual -> Code Edit Window, paste:

```yaml
cards:
- type: "custom:hasl-departure-card"
header: false
departures: true
deviations: true
timeleft: false
updated: true
name: Departures
adjust_times: false
hide_departed: false
language: en-EN
entities:
- sensor.hasl_name
type: "custom:hasl-departure-card"
header: false
departures: true
deviations: true
timeleft: false
updated: true
name: Departures
adjust_times: false
hide_departed: false
language: en-EN
replace:
- "Hisingsängens vändplan (Jönköpings kn)": "Towards City"
entities:
- sensor.hasl_name_sensor_line_blah
```

### Tap action examples
Expand Down

0 comments on commit 6e62504

Please sign in to comment.