diff --git a/CHANGELOG.md b/CHANGELOG.md index cc217ac..4e71f2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 \ No newline at end of file diff --git a/README.md b/README.md index 4d2c7ca..c99a05b 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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| diff --git a/info.md b/info.md index 5ecf5f8..e4f7522 100644 --- a/info.md +++ b/info.md @@ -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! @@ -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`| @@ -31,11 +33,12 @@ 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.|| @@ -43,20 +46,23 @@ resources: ### 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